/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.4), transparent 55%),
        radial-gradient(circle at bottom right, rgba(248, 113, 22, 0.45), transparent 55%),
        linear-gradient(135deg, #3b1f0f 0%, #7c2d12 35%, #c05621 70%, #f97316 100%);
    color: rgb(240, 240, 240);
}

/* ===== Layout Containers ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.site-main {
    max-width: 1200px;
    margin: 1.75rem auto 2.75rem;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(
        40deg,
        #792a0d 0%,
        #8b3f14 35%,
        #c76a1f 75%,
        #f59e0b 100%
    );
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo area */
.site-logo {
    height: 100px;   /* adjust size here if needed */
    width: auto;
    display: block;
}

.site-logo-link {
    display: inline-block;
}

.site-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #F9FAFB;
}

/* ===== Navigation ===== */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Main nav links (pills) */
.site-nav a {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(155, 154, 154, 0.322);
    color: #F9FAFB;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.18s ease, color 0.18s ease,
                transform 0.08s ease, box-shadow 0.15s ease;
}
.site-nav-admin {
    background: #BBF7D0;
}

.site-nav a:hover,
.site-nav a:focus {
    background: linear-gradient(135deg, #22C55E, #0EA5E9, #6366F1);
    color: #020617;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.7);
}

/* ===== Vendor Dropdown ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: rgb(240, 74, 9);
    border: 1px solid #d1d5db;
    padding: 0.45rem 1rem;      /* match pill size */
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.nav-dropdown-toggle button {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: rgba(237, 241, 8, 0.404);
    color: #F9FAFB;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.18s ease, color 0.18s ease,
                transform 0.08s ease, box-shadow 0.15s ease;
}

/* Keep dropdown panel light for contrast against header */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.4rem 0.7rem;
    text-decoration: none;
    color: #111827;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f3f4f6;
}

/* Show dropdown on hover/focus */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

/* ===== Optional Account Dropdown (if used elsewhere) ===== */
.nav-account {
    position: relative;
}

.nav-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-account-toggle:hover,
.nav-account-toggle:focus-visible {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.4);
}

.nav-account-icon {
    font-size: 1.1rem;
}

.nav-account-caret {
    font-size: 0.7rem;
}

.nav-account-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 230px;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.55);
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

.nav-account:hover .nav-account-menu,
.nav-account:focus-within .nav-account-menu {
    display: block;
}

.nav-account-section {
    padding: 0.35rem 0.75rem 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.nav-account-section:first-child {
    border-top: none;
}

.nav-account-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.nav-account-link {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #e5e7eb;
    text-decoration: none;
}

.nav-account-link:hover,
.nav-account-link:focus-visible {
    color: #f97316;
    text-decoration: underline;
}

/* ===== Cards ===== */
.card {
    background:
        radial-gradient(circle at top left, rgba(2, 79, 112, 0.63), transparent 55%),
        radial-gradient(circle at bottom right, rgba(195, 119, 208, 0.74), transparent 55%),
        #979595a2;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.95);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    color: rgb(255, 255, 255);
}

.card p {
    margin: 0.4rem 0;
}

/* ===== Buttons ===== */
.btn,
button,
input[type="submit"] {
    font-family: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease,
                transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #22C55E, #0EA5E9, #6366F1);
    border-color: rgba(94, 234, 212, 0.7);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.7);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: #020617;
    border-color: #4B5563;
    color: rgb(255, 255, 255);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #111827;
}

.btn-sm {
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
}
.btn-xsm {
    padding: 0.25rem 0.65rem;
    font-size: 0.6rem;
    align-self: center;
}
/* ===== Alerts ===== */
.alert {
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.9);
    color: #BBF7D0;
}

.alert-danger {
    background: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.95);
    color: #FECACA;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label,
label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #E5E7EB;
}

.form-group .form-help {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: rgba(0, 28, 78, 0.758);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    background: #de9f39e1;
    color: rgb(33, 33, 33);
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #22C55E;
    outline-offset: 2px;
    border-color: #22C55E;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #22C55E;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

th,
td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #1F2937;
    text-align: left;
}

th {
    background: #020617;
    color: rgb(201, 201, 201);
    font-weight: 600;
}

tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.9);
}

.table-actions {
    white-space: nowrap;
}

.text-right {
    text-align: right;
}

/* ===== Badges (Paid / Unpaid) ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #4B5563;
    color: #E5E7EB;
}

.badge-paid {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(34, 197, 94, 0.9);
    color: #BBF7D0;
}

.badge-unpaid {
    background: rgba(185, 28, 28, 0.2);
    border-color: rgba(239, 68, 68, 0.9);
    color: #FECACA;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #1F2937;
    padding: 1rem 1.5rem 1.6rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .site-main {
        padding: 0 1rem;
    }

    table {
        font-size: 0.85rem;
    }
}
/* ===== FIXED VENDOR DROPDOWN (MATCHES PILL NAV BUTTONS) ===== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Make the Vendors toggle look like the other nav pills */
.nav-dropdown-toggle {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14); /* same as main nav buttons */
    color: #F9FAFB;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease,
                transform 0.08s ease, box-shadow 0.15s ease;
}

/* Hover effect identical to main nav */
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
    background: linear-gradient(135deg, #22C55E, #0EA5E9, #6366F1);
    color: #020617;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.7);
}

/* Dropdown menu dark theme instead of plain white */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #a5a5a596; /* dark background to match your site */
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    padding: 0.4rem 0;
    display: none;
    z-index: 1000;
    border-radius: 0.75rem;
}

/* Dropdown links styled to match dark theme */
.nav-dropdown-menu a {
    display: block;
    padding: 0.3rem 0.7rem;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
    background: rgba(182, 24, 24, 0.192);
    color: #F9FAFB;
    border:#020617;
}

/* Show the dropdown on hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.alert-warning {
    background: linear-gradient(135deg, rgb(238, 105, 105) 0%, rgb(243, 179, 76) 70%, #FFA94D 100%);
    color: #4A2A00;
    border: 3px solid rgba(0,0,0,0.2);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-weight: 600;
}
