/* 
 * SGR-2026 Client Portal Light Design System 
 * Exact Mirror of Admin Dashboard Visual Style (Light Version)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
    /* Base Colors - LIGHT THEME */
    --clr-bg-base: 220, 33%, 98%;      
    --clr-bg-card: 0, 0%, 100%;        
    --clr-primary: 222, 100%, 61%;     
    --clr-accent: 250, 84%, 54%;       
    --clr-text-main: 220, 40%, 12%;    
    --clr-text-muted: 220, 15%, 45%;   
    --clr-glass-bg: rgba(255, 255, 255, 0.9);
    --clr-glass-border: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadow matching Admin depth but for Light */
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

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

body {
    background-color: hsl(var(--clr-bg-base));
    color: hsl(var(--clr-text-main));
    font-family: var(--font-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Glass Panel - IDENTICAL STRUCTURE TO ADMIN */
.glass-panel {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* Dashboard Grid - IDENTICAL TO ADMIN */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card - IDENTICAL TO ADMIN */
.card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 160px;
    transition: all var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: hsla(var(--clr-primary), 0.3);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 1rem;
    color: hsl(var(--clr-text-muted));
    font-weight: 500;
    text-transform: none; /* Admin doesn't uppercase here */
}

.card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: hsl(var(--clr-text-main));
    font-family: var(--font-heading);
    margin-top: 0.25rem;
}

/* =========================================================================
   Admin-style Sidebar but Light
   ========================================================================= */

.admin-layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--clr-glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 100;
}

.sidebar-header { padding: 0 1.5rem 2rem; border-bottom: 1px solid var(--clr-glass-border); margin-bottom: 1rem; }

.sidebar-brand {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: hsl(var(--clr-text-main));
    text-decoration: none;
}

.sidebar-brand span { color: hsl(var(--clr-primary)); }

.sidebar-nav { flex: 1; padding: 0 1rem; overflow-y: auto; }

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: hsl(var(--clr-text-muted));
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(0, 0, 0, 0.03);
    color: hsl(var(--clr-text-main));
}

.sidebar-link.active {
    border-left: 3px solid hsl(var(--clr-primary));
    padding-left: calc(1rem - 3px);
}

.admin-main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; position: relative; }

.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.content-area { padding: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }

/* Table Style Mirroring Admin */
.data-table { width: 100%; border-collapse: collapse; color: hsl(var(--clr-text-main)); font-size: 0.95rem; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--clr-glass-border); }
.data-table th { font-weight: 600; color: hsl(var(--clr-text-muted)); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; background: rgba(0, 0, 0, 0.02); }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.badge-success { background: rgba(0, 230, 118, 0.1); color: #00c853; border: 1px solid rgba(0, 230, 118, 0.2); }

@media (max-width: 768px) {
    .sidebar { position: fixed; left: -260px; transition: transform 0.3s; }
    body.sidebar-open .sidebar { transform: translateX(260px); }
    .topbar { padding: 0 1rem; }
}
