/**
 * =============================================================================
 * FinCustomer Customer Portal Styles (Light Theme)
 * =============================================================================
 */

/* Customer Header */
.customer-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.customer-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.customer-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.customer-nav a:hover, .customer-nav a.active {
    color: var(--primary);
    background: #eff6ff;
    font-weight: 600;
}

/* License Status Hero Banner */
.license-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.license-banner::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.license-info h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.license-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-avatar-wrap {
    position: relative;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-details h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Document Folder Grid */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.folder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.folder-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.folder-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #bfdbfe;
}

.folder-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.folder-count {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Service Query Stepper */
.query-tracker {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.query-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.track-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-bubble {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.track-step.done .step-bubble {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.track-step.active .step-bubble {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.track-step.active .step-label, .track-step.done .step-label {
    color: var(--text-main);
    font-weight: 700;
}

/* Family Members Grid */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.family-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.family-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.family-info h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.family-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
