:root {
    /* Brand */
    --brand-primary: #e24a2b; /* extracted orange-red */
    --brand-primary-soft: #f6b2a4;
    --brand-dark: #1e1e1e;
    /* Neutrals */
    --gray-50: #f9f9f9;
    --gray-100: #f2f2f2;
    --gray-200: #e5e5e5;
    --gray-300: #d6d6d6;
    --gray-400: #bfbfbf;
    --gray-600: #6f6f6f;
    --gray-800: #2b2b2b;
    /* UI */
    --border-radius: 0.5rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}


html, body {
    background-color: var(--gray-100);
    color: var(--gray-800);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
    padding: 1.5rem;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.navbar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {

}


.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}


.nav-link {
    color: var(--gray-800);
    font-weight: 500;
    background: transparent;
}

    .nav-link.active,
    .nav-link:hover {
        color: var(--brand-primary);
    }

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0;
    background: #fff;
    color: #212529;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    display: none;
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 0.375rem 1rem;
    color: #212529;
    text-decoration: none;
}

    .dropdown-item:hover {
        background: #f8f9fa;
    }

.dropdown.show .dropdown-menu {
    display: block;
}

.user-panel i {
    font-size: 1.1rem;
}

.user-panel .logout {
    color: var(--brand-primary);
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #cc3f23;
        border-color: #cc3f23;
    }

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

    .btn-outline-primary:hover {
        background-color: var(--brand-primary);
        color: #fff;
    }

.card {
    padding: 25px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background-color: var(--gray-50);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
}

.table {
    background-color: #fff;
}

    .table thead th {
        background-color: var(--gray-50);
        font-weight: 600;
        border-bottom: 2px solid var(--gray-200);
    }

.table-hover tbody tr:hover {
    background-color: rgba(226, 74, 43, 0.05);
}

.form-control {
    border-radius: var(--border-radius);
    border-color: var(--gray-300);
}

    .form-control:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 0.15rem rgba(226, 74, 43, 0.25);
    }

.alert-primary {
    background-color: rgba(226, 74, 43, 0.1);
    border-color: rgba(226, 74, 43, 0.25);
    color: var(--brand-dark);
}

footer {
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 1rem;
    font-size: 0.85rem;
    flex-shrink: 0; /* footer stays at bottom */
}
