/* --- VARIABLES & THEME --- */
:root {
    --bg: #ffffff;
    --text: #000000;
    --nav-border: #929292;
    --blue: #0066cc;
    --green: #009a61;
    --danger: #ef4444;
}

[data-theme="dark"] {
    --bg: #0c0c0c;
    --text: #ffffff;
    --nav-border: #646363;
}

/* --- GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    padding-top: 70px;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer sits at bottom */
}

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hide {
    display: none !important;
}

.text-blue { color: var(--blue); }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border);
    padding: 12px 0;
    background-color: var(--bg);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

/* --- BUTTONS & ICONS --- */
.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.btn-logout {
    text-decoration: none;
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: 8px;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
}

.btn-logout:hover {
    opacity: 0.8;
}

/* --- FOOTER --- */
.footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--nav-border);
    margin-bottom: 24px;
}

/* Update the Brand class to center items nicely */
.brand {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and text */
    text-decoration: none;
    color: var(--text);
}

/* Style the new Image Logo */
.nav-logo {
    width: 36px;       /* Good size for navbar */
    height: 36px;
    object-fit: contain;
    border-radius: 8px; /* Matches your design's rounded corners */
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 850px) {
    .brand-name {
        display: none;
    }
}