
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notification */
.notification-container {
    position: relative;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.notification-bell:hover {
    background: rgba(0, 0, 0, 0.1);
}

.notification-dot {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 0.5rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
}

.notification-list {
    padding: 1rem;
}

.notification-item {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Sections */
.section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Login Section */
.login-container {
    max-width: 400px;
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.login-header h2 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.login-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.login-footer p {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Account Overview */
.account-overview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.balance-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balance-toggle {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #059669;
    margin-bottom: 0.5rem;
}

.balance-info {
    color: #6b7280;
    font-size: 0.9rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.profile-avatar {
    font-size: 3rem;
    color: #6b7280;
}

.profile-details h4 {
    margin-bottom: 0.25rem;
}

.profile-details p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    font-size: 0.9rem;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.suspended {
    background: #fef2f2;
    color: #991b1b;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.completed {
    background: #dcfce7;
    color: #166534;
}

.status.rejected {
    background: #fef2f2;
    color: #991b1b;
}

/* Quick Actions */
.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

/* Tables */
.transaction-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.transaction-table th,
.transaction-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.transaction-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.transaction-table tbody tr:hover {
    background: #f9fafb;
}

.transaction-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.transaction-type.credit {
    background: #dcfce7;
    color: #166534;
}

.transaction-type.debit {
    background: #fef2f2;
    color: #991b1b;
}

.positive {
    color: #059669;
    font-weight: 500;
}

.negative {
    color: #ef4444;
    font-weight: 500;
}

/* Recent Transactions */
.recent-transactions {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: #1f2937;
}

/* Transaction Statistics */
.transaction-stats {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.transaction-stats h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-icon.incoming {
    background: #059669;
}

.stat-icon.outgoing {
    background: #ef4444;
}

.stat-icon.transactions {
    background: #3b82f6;
}

.stat-icon.customers {
    background: #8b5cf6;
}

.stat-icon.balance {
    background: #059669;
}

.stat-icon.pending {
    background: #f59e0b;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
}

/* Loan Status */
.loan-status {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loan-status h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.loan-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.loan-header h4 {
    color: #1f2937;
}

.loan-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.loan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.loan-amount,
.loan-duration,
.loan-payment {
    display: flex;
    justify-content: space-between;
}

.loan-date {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Suspension Notice */
.suspension-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.notice-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.notice-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.notice-text h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.notice-text p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.reactivation-form {
    display: flex;
    gap: 0.5rem;
}

.reactivation-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* Admin Panel */
.admin-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.admin-tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-tab-content.active {
    display: block;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.customer-photo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
}

/* Deposit Cards */
.deposit-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.customer-info h4 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.customer-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

.deposit-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #059669;
}

.deposit-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-item .label {
    color: #6b7280;
    font-size: 0.9rem;
}

.detail-item .value {
    font-weight: 500;
}

.deposit-actions {
    display: flex;
    gap: 0.5rem;
}

/* Message Cards */
.message-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.message-content {
    margin-bottom: 1rem;
}

.message-content p {
    color: #374151;
    line-height: 1.6;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.setting-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.setting-card h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.setting-card h4 i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.setting-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
}

.modal-form {
    padding: 0 1.5rem 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    margin-bottom: 1rem;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Deposit Methods */
.deposit-methods {
    margin-bottom: 2rem;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.method-option {
    cursor: pointer;
}

.method-option input {
    display: none;
}

.method-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.method-option input:checked + .method-card {
    border-color: #3b82f6;
    background: #eff6ff;
}

.method-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.method-card span {
    display: block;
    font-weight: 500;
    color: #374151;
}

/* Bank Transfer Details */
.bank-info h4,
.bitcoin-info h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.info-item .label {
    font-weight: 500;
    color: #374151;
}

.info-item .value {
    font-family: monospace;
    color: #1f2937;
}

.info-item button {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.info-item button:hover {
    background: #eff6ff;
}

/* Bitcoin Details */
.bitcoin-address {
    margin-bottom: 1rem;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.address {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #9ca3af;
}

.qr-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Summary Cards */
.deposit-summary,
.transfer-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.deposit-summary h4,
.transfer-summary h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-item.total {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Loan Calculator */
.loan-calculator {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.loan-calculator h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.calculator-results {
    display: grid;
    gap: 0.5rem;
}

.calc-item {
    display: flex;
    justify-content: space-between;
}

.calc-item.rate {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Password Generator */
.password-generator,
.account-generator {
    display: flex;
    gap: 0.5rem;
}

.password-generator input,
.account-generator input {
    flex: 1;
}

/* Messaging */
.messaging-container {
    max-height: 500px;
    overflow-y: auto;
}

.message-actions {
    margin-bottom: 1rem;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-left-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-left-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .dashboard-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .account-overview {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .method-options {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        max-width: none;
    }
}

/* Support Modal Styles */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.support-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.support-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.support-card h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.support-card p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.support-card strong {
    display: block;
    margin-bottom: 1rem;
    color: #1f2937;
}

.faq-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.faq-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.faq-item p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Chat Styles */
.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.chat-message.user {
    background: #eff6ff;
    margin-left: 2rem;
}

.chat-message.support {
    background: #f0fdf4;
    margin-right: 2rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

/* History Styles */
.history-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.history-container {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.history-icon.transaction {
    background: #3b82f6;
}

.history-icon.login {
    background: #10b981;
}

.history-icon.creation {
    background: #8b5cf6;
}

.history-details {
    flex: 1;
}

.history-details h4 {
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.history-details p {
    color: #6b7280;
    font-size: 0.9rem;
}

.history-details .amount {
    font-weight: bold;
    color: #059669;
}

.history-status {
    text-align: right;
}

/* Receipt Styles */
.receipt {
    font-family: 'Courier New', monospace;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #333;
    padding: 20px;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.receipt-row.total {
    font-weight: bold;
    border-top: 2px solid #333;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 16px;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #333;
    font-size: 12px;
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .deposit-actions,
    .message-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .history-filters {
        flex-direction: column;
    }
}
