:root {
    --usf-green:      #006747;
    --usf-green-dark: #00543a;
    --usf-gold:       #CFC493;
    --usf-gold-light: #e8ddb5;
    --sidebar-width:  240px;
}

/* ── Body & Layout ── */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    background: #f4f6f9;
    color: #2c2c2c;
}

/* ── Top Navbar ── */
.navbar-top {
    background: var(--usf-green);
    height: 60px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.navbar-top .brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-top .brand-badge {
    background: var(--usf-gold);
    color: var(--usf-green-dark);
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.navbar-top .user-info {
    margin-left: auto;
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 14px;
}
.navbar-top .user-info .user-name {
    color: #fff;
    font-weight: 600;
}
.navbar-top .btn-logout {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .82rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}
.navbar-top .btn-logout:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    background: #1a2a22;
    overflow-y: auto;
    z-index: 1030;
    padding-top: 10px;
}
.sidebar-section {
    padding: 14px 16px 4px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.35);
    font-weight: 700;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: .9rem;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}
.sidebar a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.sidebar a.active {
    background: rgba(207,196,147,.12);
    color: var(--usf-gold);
    border-left-color: var(--usf-gold);
    font-weight: 600;
}
.sidebar a i {
    width: 18px;
    text-align: center;
    font-size: .95rem;
}

/* ── Main Content ── */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 60px;
    padding: 28px 32px;
    min-height: calc(100vh - 60px - 52px);
}

/* ── Page Header ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--usf-green);
    margin: 0;
}
.page-header .breadcrumb {
    margin: 0;
    font-size: .82rem;
}

/* ── Cards ── */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.09);
}
.card-header {
    background: #fff;
    border-bottom: 2px solid var(--usf-gold-light);
    border-radius: 10px 10px 0 0 !important;
    padding: 14px 20px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--usf-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Stat Cards (Dashboard) ── */
.stat-card {
    border-radius: 10px;
    padding: 22px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,.13);
}
.stat-card .stat-icon {
    font-size: 2rem;
    opacity: .8;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: .82rem;
    opacity: .85;
    margin-top: 2px;
}
.stat-green  { background: linear-gradient(135deg, #006747, #008a5e); }
.stat-gold   { background: linear-gradient(135deg, #9a8a3a, #c4ae52); }
.stat-blue   { background: linear-gradient(135deg, #1a6fa8, #2196F3); }
.stat-teal   { background: linear-gradient(135deg, #00695c, #26a69a); }

/* ── Buttons ── */
.btn-usf {
    background: var(--usf-green);
    border-color: var(--usf-green);
    color: #fff;
}
.btn-usf:hover {
    background: var(--usf-green-dark);
    border-color: var(--usf-green-dark);
    color: #fff;
}

/* ── Tables ── */
.table thead th {
    background: var(--usf-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    white-space: nowrap;
}
.table tbody tr:hover {
    background: #f0f7f4;
}
.table td, .table th {
    vertical-align: middle;
    font-size: 0.875rem;
}
.badge-role {
    background: var(--usf-gold-light);
    color: #5a4e1a;
    font-size: .75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin: 1px;
    display: inline-block;
}

/* ── Footer ── */
.main-footer {
    background: #fff;
    border-top: 1px solid #e0e4e8;
    padding: 14px 32px;
    margin-left: var(--sidebar-width);
    font-size: .8rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-footer strong { color: var(--usf-green); }

/* ── Login Page ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
}
.login-left {
    width: 45%;
    background: linear-gradient(160deg, #004d35 0%, #006747 50%, #008a5e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.login-left::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.login-left .logo-circle {
    width: 90px; height: 90px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--usf-gold);
    margin-bottom: 24px;
}
.login-left h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
}
.login-left p {
    color: rgba(255,255,255,.7);
    text-align: center;
    font-size: .9rem;
    line-height: 1.6;
    max-width: 280px;
}
.login-left .features {
    margin-top: 32px;
    width: 100%;
    max-width: 280px;
}
.login-left .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(255,255,255,.8);
    font-size: .87rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.login-left .feature-item i {
    color: var(--usf-gold);
    width: 16px;
}
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    padding: 40px;
}
.login-card {
    background: #fff;
    border-radius: 14px;
    padding: 44px 42px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
}
.login-card h3 {
    color: var(--usf-green);
    font-weight: 700;
    margin-bottom: 6px;
}
.login-card .subtitle {
    color: #888;
    font-size: .88rem;
    margin-bottom: 28px;
}
.login-card .form-label {
    font-weight: 600;
    font-size: .88rem;
    color: #444;
}
.login-card .form-control {
    border-radius: 8px;
    padding: 11px 14px;
    border: 1.5px solid #dce0e6;
    font-size: .93rem;
    transition: border-color .2s;
}
.login-card .form-control:focus {
    border-color: var(--usf-green);
    box-shadow: 0 0 0 3px rgba(0,103,71,.12);
}
.btn-login {
    background: var(--usf-green);
    border: none;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s;
    margin-top: 8px;
}
.btn-login:hover { background: var(--usf-green-dark); color: #fff; }

/* ── Form pages ── */
.form-label { font-weight: 600; font-size: .88rem; color: #444; }
.form-control, .form-select {
    border: 1.5px solid #dce0e6;
    border-radius: 7px;
    font-size: .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--usf-green);
    box-shadow: 0 0 0 3px rgba(0,103,71,.1);
}

/* ── Action buttons in tables ── */
.btn-action {
    padding: 4px 10px;
    font-size: .78rem;
    border-radius: 5px;
}

/* ── Flat icon-only action buttons (no border, no background) ── */
.btn-flat-edit,
.btn-flat-delete {
    background: none;
    border: none;
    padding: 2px 5px;
    font-size: inherit;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    transition: color .15s, background .15s;
}
.btn-flat-edit   { color: #0d6efd; }
.btn-flat-edit:hover   { color: #0a4fc4; background: rgba(13,110,253,.08); }
.btn-flat-delete { color: #dc3545; }
.btn-flat-delete:hover { color: #a71d2a; background: rgba(220,53,69,.08); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-left { display: none; }
    .sidebar { transform: translateX(-100%); }
    .main-content, .main-footer { margin-left: 0; }
}
