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

:root {
    /* Claude-Inspired Palette - Warm, Elegant Light Theme */
    --bg-dark: #fbfaf8; /* Warm Off-white */
    --bg-card: #ffffff;
    --primary: #d97757; /* Terracotta Accent */
    --primary-glow: rgba(217, 119, 87, 0.1);
    --secondary: #6b6b6b;
    --accent: #543b34;
    --text-main: #1d1816; /* Deep Charcoal/Brown */
    --text-muted: #666666;
    --border-glass: rgba(0, 0, 0, 0.05);
    --border-peach: #f4dbcc;
    
    /* Transitions */
    --success: #2d7a5f;
    --warning: #b45309;
    --error: #b91c1c;
    
    /* Layout Tokens */
    --sidebar-width: 240px;
    --header-height: 60px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow-premium: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .logo {
    font-family: 'Lora', 'Georgia', serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Base Layout Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: white;
}

/* Utilities */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
}

.text-gradient {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #c26549;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.2);
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.btn-secondary {
    background: #fdfcfb;
    color: var(--text-main);
    border: 1.5px solid var(--border-peach);
}

.btn-secondary:hover {
    background: #fbfaf8;
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-peach);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #fdfcfb;
    border-color: var(--primary);
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Layout Specifics */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    padding-top: calc(var(--header-height) + 1rem);
    transition: margin-left 0.3s ease;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#page-content {
    flex: 1;
    min-height: 0;
    margin-top: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem; /* Space for scrollbar */
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: calc(var(--header-height) + 1rem);
    }
}
