* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #E0F7FA 0%, #FFFFFF 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    display: block;
}

.hidden {
    display: none !important;
}

/* Login Section */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.login-card h1 {
    color: #00CFFF;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
}

.login-card input:focus {
    outline: none;
    border-color: #00CFFF;
}

.login-card button {
    width: 100%;
    padding: 15px;
    background: #00CFFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-card button:hover {
    background: #00B8E6;
}

/* Modern Header */
.modern-header {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-badge {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: rgba(0, 207, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h1 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-subtitle {
    color: #666;
    font-size: 0.875rem;
    margin: 4px 0 0 0;
}

.modern-logout-btn {
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
}

.modern-logout-btn:hover {
    background: rgba(255, 87, 34, 0.1);
}

/* Dashboard Content */
.dashboard-content {
    padding: 0 20px 20px;
}

.dashboard-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Balance Grid */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.balance-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.balance-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* Profit Card */
.profit-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
}

.profit-row:last-child {
    border-bottom: none;
}

.profit-row-highlight {
    background: rgba(0, 207, 255, 0.05);
    margin: 8px -16px 0;
    padding: 8px 16px;
    border-radius: 8px;
}

.profit-label {
    font-size: 0.875rem;
    color: #666;
}

.profit-label-highlight {
    font-weight: 600;
    color: #00CFFF;
}

.profit-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.profit-value-highlight {
    font-size: 1.125rem;
    color: #00CFFF;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

/* DBS Container */
.dbs-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dbs-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.dbs-stat-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.dbs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#dbs-pending-card.active {
    background: #FFF8F0;
    border-color: #FF9800;
}

#dbs-approved-card.active {
    background: #F0FFF4;
    border-color: #4CAF50;
}

#dbs-declined-card.active {
    background: #FFF5F5;
    border-color: #F44336;
}

.dbs-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0 4px;
}

.dbs-stat-label {
    font-size: 0.688rem;
    color: #666;
    text-align: center;
}

.dbs-list {
    max-height: 500px;
    overflow-y: auto;
}

.dbs-item {
    padding: 15px;
    margin-bottom: 12px;
    background: #F8F9FA;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dbs-item:hover {
    background: #E9ECEF;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dbs-item.pending {
    border-left-color: #FF9800;
    background: #FFF8F0;
}

.dbs-item.approved {
    border-left-color: #4CAF50;
    background: #F0FFF4;
}

.dbs-item.declined {
    border-left-color: #F44336;
    background: #FFF5F5;
}

.dbs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dbs-name {
    font-weight: 600;
    font-size: 16px;
    color: #2D3748;
}

.dbs-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.dbs-status.pending { background: #FF9800; }
.dbs-status.approved { background: #4CAF50; }
.dbs-status.declined { background: #F44336; }

.dbs-info {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

.dbs-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
    margin: 10px 0;
}

.dbs-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.approve-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.approve-btn:hover {
    background: #45A049;
    transform: scale(1.05);
}

.decline-btn {
    padding: 8px 16px;
    background: #F44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.decline-btn:hover {
    background: #D32F2F;
    transform: scale(1.05);
}

.view-dbs-btn {
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-dbs-btn:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* Insurance Container */
.insurance-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insurance-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.insurance-stat-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.insurance-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#insurance-pending-card.active {
    background: #FFF8F0;
    border-color: #FF9800;
}

#insurance-approved-card.active {
    background: #F0FFF4;
    border-color: #4CAF50;
}

#insurance-declined-card.active {
    background: #FFF5F5;
    border-color: #F44336;
}

.insurance-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0 4px;
}

.insurance-stat-label {
    font-size: 0.688rem;
    color: #666;
    text-align: center;
}

.insurance-list {
    max-height: 500px;
    overflow-y: auto;
}

.insurance-item {
    padding: 15px;
    margin-bottom: 12px;
    background: #F8F9FA;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.insurance-item:hover {
    background: #E9ECEF;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.insurance-item.pending {
    border-left-color: #FF9800;
    background: #FFF8F0;
}

.insurance-item.approved {
    border-left-color: #4CAF50;
    background: #F0FFF4;
}

.insurance-item.declined {
    border-left-color: #F44336;
    background: #FFF5F5;
}

.insurance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.insurance-name {
    font-weight: 600;
    font-size: 16px;
    color: #2D3748;
}

.insurance-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.insurance-status.pending { background: #FF9800; }
.insurance-status.approved { background: #4CAF50; }
.insurance-status.declined { background: #F44336; }

.insurance-info {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

.insurance-info div {
    margin: 4px 0;
}

.insurance-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
    margin: 10px 0;
}

.insurance-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.view-insurance-btn {
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-insurance-btn:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.rejection-reason {
    margin-top: 10px;
    padding: 10px;
    background: #FFF5F5;
    border-left: 3px solid #F44336;
    border-radius: 4px;
    font-size: 13px;
    color: #D32F2F;
}

/* Right to Work Container */
.rtw-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.rtw-stat-card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.rtw-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rtw-stat-card.active {
    border-color: #00CFFF;
    background: #F0FDFF;
}

.rtw-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2D3748;
}

.rtw-stat-label {
    font-size: 14px;
    color: #718096;
    text-align: center;
}

.rtw-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rtw-item {
    background: white;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #CBD5E0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.rtw-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rtw-item.pending {
    border-left-color: #FF9800;
    background: #FFF8F0;
}

.rtw-item.approved {
    border-left-color: #4CAF50;
    background: #F0FFF4;
}

.rtw-item.declined {
    border-left-color: #F44336;
    background: #FFF5F5;
}

.rtw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rtw-name {
    font-weight: 600;
    font-size: 16px;
    color: #2D3748;
}

.rtw-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.rtw-status.pending { background: #FF9800; }
.rtw-status.approved { background: #4CAF50; }
.rtw-status.declined { background: #F44336; }

.rtw-info {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

.rtw-info div {
    margin: 4px 0;
}

.rtw-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

.rtw-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.view-rtw-btn {
    padding: 8px 16px;
    background: #00CFFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.view-rtw-btn:hover {
    background: #00B8E6;
}

/* Support Container */
.support-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.support-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.support-stat-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.support-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#support-escalated-card.active {
    background: #FFF3E0;
    border-color: #FF9800;
}

.support-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 8px 0 4px;
}

.support-stat-label {
    font-size: 0.688rem;
    color: #666;
    text-align: center;
}

.alert-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #FF5722;
}

/* Escalations List */
.escalations-list {
    max-height: 600px;
    overflow-y: auto;
}

.escalation-item {
    padding: 15px;
    margin-bottom: 12px;
    background: #F8F9FA;
    border-left: 4px solid #FF9800;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.escalation-item:hover {
    background: #E9ECEF;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.escalation-item.priority-1 {
    border-left-color: #FF4444;
    background: #FFF5F5;
}

.escalation-item.priority-2 {
    border-left-color: #FF9800;
    background: #FFF8F0;
}

.escalation-item.priority-3 {
    border-left-color: #2196F3;
    background: #F0F7FF;
}

.escalation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.escalation-user {
    font-weight: 600;
    font-size: 16px;
    color: #2D3748;
}

.escalation-priority {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.priority-1-badge { background: #FF4444; }
.priority-2-badge { background: #FF9800; }
.priority-3-badge { background: #2196F3; }

.escalation-reason {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.escalation-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
    margin: 10px 0;
}

.escalation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.resolve-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resolve-btn:hover {
    background: #45A049;
    transform: scale(1.05);
}

.view-chat-btn {
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-chat-btn:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
}

/* Withdrawal Card */
.withdrawal-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#withdrawal-form input {
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

#withdrawal-form input:focus {
    outline: none;
    border-color: #00CFFF;
}

.withdraw-btn {
    padding: 14px 20px;
    background: #00CFFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.withdraw-btn:hover {
    background: #00B8E6;
}

/* Messages */
.error-message {
    color: #E53E3E;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    padding: 12px;
    background: #FEE;
    border-radius: 8px;
}

.success-message {
    color: #48BB78;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    padding: 12px;
    background: #F0FFF4;
    border-radius: 8px;
}

/* Transactions Card */
.transactions-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

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

.transaction-description {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.transaction-date {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
}

/* Responsive */
@media (max-width: 768px) {
    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .support-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modern-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .balance-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .support-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
