/* ============================================================
   TOP NOTCH — ADMIN PANEL STYLES
   ============================================================ */

:root {
    --admin-navy:    #1e2a3b;
    --admin-sidebar: #253447;
    --admin-green:   #37ca37;
    --admin-accent:  #188bf6;
    --admin-light:   #f4f6fa;
    --admin-border:  #dee2e6;
}

body.admin-body {
    font-family: 'Lato', sans-serif;
    background: var(--admin-light);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ---- NAVBAR ---- */
.admin-navbar {
    background: var(--admin-navy) !important;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.logo-main-sm {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--admin-green);
    letter-spacing: 1px;
}

/* ---- LAYOUT ---- */
.admin-wrapper {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
}

/* ---- SIDEBAR ---- */
.admin-sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--admin-sidebar);
    min-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 1.25rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left: 3px solid var(--admin-green);
    padding-left: calc(1.25rem - 3px);
}
.admin-sidebar .nav-link i {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0.75rem 1.25rem 0.25rem;
}

/* ---- MAIN CONTENT ---- */
.admin-main {
    min-width: 0;
    background: var(--admin-light);
}

/* ---- PAGE HEADER ---- */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin-border);
}
.admin-page-header h1 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--admin-navy);
}
.breadcrumb { font-size: 0.8rem; margin: 0; }

/* ---- STAT CARDS ---- */
.stat-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--admin-navy);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ---- CARDS ---- */
.admin-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
}
.admin-card .card-header {
    background: var(--admin-navy);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.25rem;
    border: 0;
}
.admin-card .card-body { padding: 1.25rem; }

/* ---- TABLES ---- */
.admin-table {
    width: 100%;
    font-size: 0.875rem;
    margin: 0;
}
.admin-table thead th {
    background: var(--admin-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid var(--admin-border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}
.admin-table tbody tr:hover { background: #fafafa; }
.admin-table tbody tr:last-child td { border-bottom: 0; }

/* ---- FORMS ---- */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.3rem;
}
.form-control, .form-select {
    font-size: 0.9rem;
    border-color: var(--admin-border);
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--admin-green);
    box-shadow: 0 0 0 0.2rem rgba(55,202,55,0.2);
}
.form-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--admin-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--admin-green);
}

/* ---- BUTTONS ---- */
.btn-admin-primary {
    background: var(--admin-navy);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
}
.btn-admin-primary:hover {
    background: #162030;
    color: #fff;
}

/* ---- INVOICE PRINT VIEW ---- */
@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---- STATUS BADGES ---- */
.badge { font-size: 0.72rem; font-weight: 600; padding: 0.35em 0.65em; }

/* ---- LINE ITEM TABLE ---- */
.line-item-row td { padding: 0.4rem 0.5rem; }
.line-item-row .form-control { font-size: 0.85rem; padding: 0.35rem 0.6rem; }

/* ---- TABS ---- */
.nav-tabs .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}
.nav-tabs .nav-link.active {
    color: var(--admin-navy);
    font-weight: 700;
}

/* ---- ALERT INBOX ---- */
.submission-row { cursor: pointer; }
.submission-row.unread { background: #fffbf0; font-weight: 600; }

/* Responsive sidebar collapse */
@media (max-width: 767px) {
    .admin-sidebar { display: none; }
    .admin-sidebar.show { display: flex; position: fixed; z-index: 1020; height: calc(100vh - 56px); }
}
