/* ===== CSS VARIABLES ===== */
:root {
    --bg-page: #F7F7F5;
    --bg-card: #FFFFFF;
    --bg-hero: #EEF2F7;
    --border: #E0E0DC;
    --border-hover: #C8C8C4;
    --text-primary: #2D2D2D;
    --text-secondary: #6B6B6B;
    --text-tertiary: #9B9B9B;
    --accent: #5B7FE8;
    --accent-hover: #4A6BD4;
    --accent-light: #EEF1FB;
    --success: #4CAF82;
    --warning-bg: #FFF8E7;
    --warning-border: #F0D68A;
    --warning-text: #8B6914;
    --error-bg: #FFF0F0;
    --error-border: #F5A8A8;
    --error-text: #C0392B;
    --info-bg: #EEF5FF;
    --info-border: #A8C8F5;
    --info-text: #2B5EA0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 20px;
    --navbar-height: 64px;
    --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-page);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-style: italic;
    color: var(--text-primary);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.brand-link:hover {
    color: var(--accent);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

#user-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* ===== STATUS TOAST ===== */
.status-toast {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    right: 2rem;
    max-width: min(420px, calc(100vw - 2rem));
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 1200;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.2s ease;
}

.status-toast.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.status-toast.info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

/* ===== LOGIN MESSAGE ===== */
.login-message {
    width: 100%;
    max-width: var(--max-width);
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--warning-text);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .navbar {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .status-toast {
        right: 1rem;
    }
}
