﻿/* accounts.css - My accounts, insurance info, document requests */

/* ==================== MY ACCOUNTS PAGE STYLES ==================== */
.account-selector-wrapper {
    min-width: 300px;
}

.account-selector {
    border: 2px solid #198754;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    background-color: #fff;
}

.account-selector:focus {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
    border-color: #198754;
}

/* My Account(s) page background */
#page-my-accounts {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

#page-my-accounts .page-header {
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.account-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .account-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .account-kpis-grid {
        grid-template-columns: 1fr;
    }
}

.account-kpi-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #198754;
}

.account-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.account-kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.account-kpi-icon.claims { background: #dbeafe; color: #3b82f6; }
.account-kpi-icon.funded { background: #dcfce7; color: #198754; }
.account-kpi-icon.pending { background: #fef3c7; color: #f59e0b; }
.account-kpi-icon.time { background: #f3e8ff; color: #9333ea; }

.account-kpi-content {
    display: flex;
    flex-direction: column;
}

.account-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.account-kpi-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.account-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .account-details-grid {
        grid-template-columns: 1fr;
    }
}

.account-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    border-top: 3px solid #198754;
}

.account-card-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d1fae5;
}

.account-card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.account-card-header i.fa-chevron-up,
.account-card-header i.fa-chevron-down {
    cursor: pointer;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.account-card-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.account-card-body {
    padding: 1.5rem;
}

.account-card-body.collapsed {
    display: none;
}

.account-field {
    margin-bottom: 1rem;
}

.account-field:last-child {
    margin-bottom: 0;
}

.account-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.account-field-value {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #1f2937;
    font-size: 0.95rem;
    border: 1px solid #e9ecef;
}

.notification-pref-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.notification-pref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notification-pref-item:first-child {
    padding-top: 0;
}

.notification-pref-header {
    margin-bottom: 0.5rem;
}

.notification-pref-title {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.notification-pref-desc {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}

.notification-pref-value {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #166534;
    font-size: 0.9rem;
    border: 1px solid #bbf7d0;
}

.update-request-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
}

.update-request-item:last-child {
    border-bottom: none;
}

.update-request-status {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-request-status.completed {
    background: #dcfce7;
    color: #198754;
}

.update-request-status.pending {
    background: #fef3c7;
    color: #f59e0b;
}

.update-request-content {
    flex: 1;
}

.update-request-text {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.update-request-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

/* ==================== INSURANCE COMPANY INFO PANEL ==================== */
.ic-info-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: 1rem;
    display: none;
}

.ic-info-panel.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ic-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bae6fd;
}

.ic-info-icon {
    width: 40px;
    height: 40px;
    background: #0284c7;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.ic-info-title {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 1rem;
    margin: 0;
}

.ic-info-subtitle {
    font-size: 0.8rem;
    color: #0369a1;
}

.ic-info-grid {
    display: grid;
    gap: 0.75rem;
}

.ic-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ic-info-item-label {
    font-size: 0.8rem;
    color: #0369a1;
    font-weight: 500;
    min-width: 200px;
}

.ic-info-item-value {
    font-size: 0.85rem;
    color: #0c4a6e;
    font-weight: 600;
}

.ic-info-item-value.yes {
    color: #198754;
}

.ic-info-item-value.no {
    color: #dc3545;
}

.ic-info-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.ic-info-note i {
    color: #f59e0b;
    margin-right: 0.25rem;
}

.ic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.ic-badge.success {
    background: #dcfce7;
    color: #166534;
}

.ic-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.ic-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.ic-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== DOCUMENT REQUESTS SECTION ==================== */
.doc-requests-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 1rem;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    overflow: hidden;
}

.doc-requests-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.doc-requests-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-requests-title h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.doc-requests-title p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.doc-requests-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.doc-requests-icon.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.doc-requests-badge {
    text-align: center;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
}

.doc-requests-badge .badge-count {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

.doc-requests-badge .badge-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-requests-list {
    padding: 0.5rem 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.doc-request-item {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid #d1d5db;
    transition: all 0.2s ease;
}

.doc-request-item:last-child {
    margin-bottom: 0;
}

.doc-request-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.doc-request-item.urgent {
    border-left-color: #dc2626;
    background: linear-gradient(to right, #fef2f2, #fff);
}

.doc-request-item.high {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb, #fff);
}

.doc-request-item.medium {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, #eff6ff, #fff);
}

.doc-request-item.low {
    border-left-color: #10b981;
    background: linear-gradient(to right, #ecfdf5, #fff);
}

.doc-request-urgency {
    flex-shrink: 0;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.urgency-badge.urgent {
    background: #dc2626;
    color: #fff;
}

.urgency-badge.high {
    background: #f59e0b;
    color: #fff;
}

.urgency-badge.medium {
    background: #3b82f6;
    color: #fff;
}

.urgency-badge.low {
    background: #10b981;
    color: #fff;
}

.doc-request-info {
    flex: 1;
}

.doc-request-claim {
    margin-bottom: 0.5rem;
}

.doc-request-claim strong {
    color: #1f2937;
}

.doc-request-ic {
    display: inline-block;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.doc-request-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.doc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    color: #374151;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    border: 1px dashed #d1d5db;
}

.doc-request-note {
    font-size: 0.8rem;
    color: #6b7280;
}

.doc-request-note i {
    color: #3b82f6;
}

.doc-request-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.doc-requests-footer {
    background: #fffbeb;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #fde68a;
}

.doc-requests-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
}

.doc-requests-help a {
    color: #d97706;
    font-weight: 500;
}
