:root {
    --notion-bg: #ffffff;
    --notion-side: #f7f7f5;
    --notion-text: #37352f;
    --notion-border: rgba(55, 53, 47, 0.08);
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-blur: blur(14px) saturate(160%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    --primary: #2563eb;
    --accent: #f59e0b;
    --radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--notion-bg);
    color: var(--notion-text);
    -webkit-font-smoothing: antialiased;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* --- Notion-Style Sidebar --- */
.sidebar {
    background: var(--notion-side);
    border-right: 1px solid var(--notion-border);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar .brand {
    padding: 0 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .brand img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.sidebar .brand h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--notion-text);
}

.sidebar-heading {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(55, 53, 47, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar .nav-link {
    padding: 0.5rem 1.5rem;
    color: var(--notion-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(55, 53, 47, 0.04);
}

.sidebar .nav-link.active {
    background: rgba(55, 53, 47, 0.08);
    font-weight: 700;
}

.sidebar .nav-link i {
    font-size: 1rem;
    opacity: 0.6;
}

/* --- Workspace Area --- */
.workspace {
    padding: 4rem 10% 4rem 4rem; /* Wide airiness like Notion */
}

.ws-header {
    margin-bottom: 4rem;
}

.ws-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

/* --- Glassmorphic Cards --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.stat-val {
    font-size: 2rem;
    font-weight: 900;
    margin: 10px 0;
    background: linear-gradient(135deg, #37352f 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.bg-blue-glass { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.bg-amber-glass { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* --- Notion Styled Table --- */
.notion-table-wrap {
    border-top: 1px solid var(--notion-border);
    margin-top: 2rem;
}

.notion-table {
    width: 100%;
    font-size: 0.9rem;
}

.notion-table th {
    text-align: left;
    padding: 1rem 0;
    color: rgba(55, 53, 47, 0.5);
    font-weight: 500;
    border-bottom: 1px solid var(--notion-border);
}

.notion-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--notion-border);
}

/* --- Mobile View --- */
@media (max-width: 991px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .workspace { padding: 2rem 1.5rem; }
}
