﻿/* ══════════════════════════════════════════════
   BannerStyleSheet.css – USAP_2022 Unified
   ══════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Segoe UI, Arial, sans-serif;
    margin: 0;
    background: #F2F5FE url("../design/bg.gif") 0 0 repeat-x;
    color: #192666;
    line-height: 1.6;
}

/* ── Page Banner ───────────────────────────── */
.page-banner {
    background: url("../design/header.jpg") center center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 18px 16px 14px;
}

    .page-banner h2 {
        margin: 0;
        font-size: 1.4em;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

.page-banner-img {
    background: url("../design/header.jpg") center center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 24px 16px 20px;
    position: relative;
}

    .page-banner-img::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 45, 117, 0.6);
    }

    .page-banner-img h2 {
        margin: 0;
        font-size: 1.5em;
        font-weight: 700;
        letter-spacing: 0.5px;
        position: relative;
        z-index: 1;
    }

/* ── Navbar ─────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a2d75;
    color: #fff;
    padding: 0 16px;
    height: 54px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

    .navbar a {
        color: #cfd8dc;
        text-decoration: none;
        padding: 8px 14px;
        border-radius: 4px;
        font-size: 0.92em;
        transition: background 0.2s;
    }

        .navbar a:hover,
        .navbar a.active {
            background-color: #3a6ea5;
            color: #fff;
        }

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.user-icon {
    width: 32px;
    height: 32px;
    background-color: #3a6ea5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95em;
    color: #fff;
}

.nav-logout {
    color: #e57373 !important;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: underline;
    padding: 8px 10px;
}

    .nav-logout:hover {
        color: #ff8a80 !important;
    }

/* ── Hamburger ─────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

/* ── Page Body ─────────────────────────────── */
.page-body {
    padding: 20px 16px;
/*    max-width: 960px;*/
    margin: 0 auto;
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 28px 32px;
    margin-bottom: 22px;
}

    .card h2 {
        font-size: 1.25em;
        margin-bottom: 18px;
        color: #1a2d75;
        border-bottom: 2px solid #e0e6f0;
        padding-bottom: 8px;
    }

/* ── Hero (Welcome page) ──────────────────── */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a2d75, #3a6ea5);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 22px;
}

    .hero h2 {
        font-size: 1.8em;
        color: #fff;
        border: none;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 1em;
        margin-bottom: 22px;
        opacity: 0.9;
    }

/* ══════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════ */
.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 0.88em;
        color: #333;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #c0c8d8;
        border-radius: 5px;
        font-size: 0.9em;
        font-family: inherit;
        color: #192666;
        background: #fff;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #3a6ea5;
            outline: none;
            box-shadow: 0 0 0 3px rgba(58,110,165,0.12);
        }

.inline-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

    .inline-group .form-group {
        flex: 1;
        min-width: 180px;
    }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 10px 26px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    color: #fff;
    line-height: 1.4;
}

    .btn:active {
        transform: scale(0.97);
    }

.btn-primary {
    background: #3a6ea5;
}

    .btn-primary:hover {
        background: #2c5a8a;
    }

.btn-danger {
    background: #c0392b;
}

    .btn-danger:hover {
        background: #96281b;
    }

.btn-success {
    background: #27ae60;
}

    .btn-success:hover {
        background: #1e8c4c;
    }

.btn-secondary {
    background: #7f8c8d;
}

    .btn-secondary:hover {
        background: #636e72;
    }

/* ══════════════════════════════════════════════
   DATA TABLES
   ══════════════════════════════════════════════ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #fff;
}

    .data-table th {
        background: linear-gradient(135deg, #1a2d75, #2a4494);
        color: #fff;
        padding: 10px 14px;
        text-align: left;
        font-size: 0.78em;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        font-weight: 600;
    }

    .data-table td {
        padding: 9px 14px;
        border-bottom: 1px solid #e8ecf4;
        font-size: 0.86em;
        color: #2c3e50;
    }

    .data-table tr:nth-child(even) {
        background: #f8f9fc;
    }

    .data-table tr:hover {
        background: #eaf0fa;
    }

/* ══════════════════════════════════════════════
   MESSAGES
   ══════════════════════════════════════════════ */
.msg-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid #27ae60;
    font-size: 0.9em;
}

.msg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid #c0392b;
    font-size: 0.9em;
}

.msg-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid #e2a800;
    font-size: 0.9em;
}

/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.badge-green {
    background: #27ae60;
}

.badge-red {
    background: #c0392b;
}

.badge-orange {
    background: #e67e22;
}

.badge-blue {
    background: #2980b9;
}

.badge-gray {
    background: #95a5a6;
}

.badge-purple {
    background: #8e44ad;
}

/* ══════════════════════════════════════════════
   STATS ROW (Manage Users dashboard)
   ══════════════════════════════════════════════ */
.stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(135deg, #1a2d75, #3a6ea5);
    color: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(26,45,117,0.2);
}

    .stat-box .stat-num {
        font-size: 1.7em;
        font-weight: 700;
        line-height: 1.2;
    }

    .stat-box .stat-lbl {
        font-size: 0.72em;
        opacity: 0.85;
        margin-top: 3px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* ══════════════════════════════════════════════
   TABS (Manage Users)
   ══════════════════════════════════════════════ */
.tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
}

    .tab-bar .tab {
        padding: 11px 22px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.86em;
        border: 1px solid #c0c8d8;
        border-bottom: none;
        background: #e8ecf4;
        color: #555;
        border-radius: 8px 8px 0 0;
        margin-right: 2px;
        transition: background 0.2s, color 0.2s;
        text-decoration: none;
    }

        .tab-bar .tab:hover {
            background: #dce3f0;
            color: #1a2d75;
        }

        .tab-bar .tab.active {
            background: #fff;
            color: #1a2d75;
            border-bottom: 1px solid #fff;
            margin-bottom: -1px;
            position: relative;
            z-index: 2;
            box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
        }

.tab-panel {
    display: none;
    border: 1px solid #c0c8d8;
    background: #fff;
    padding: 28px 32px;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .tab-panel.active {
        display: block;
    }

/* ══════════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════════ */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
}

    .search-bar input[type="text"],
    .search-bar select {
        padding: 9px 12px;
        border: 1px solid #c0c8d8;
        border-radius: 5px;
        font-size: 0.88em;
        font-family: inherit;
        color: #192666;
        background: #fff;
    }

    .search-bar input[type="text"] {
        flex: 1;
        min-width: 200px;
    }

    .search-bar input:focus,
    .search-bar select:focus {
        border-color: #3a6ea5;
        outline: none;
        box-shadow: 0 0 0 3px rgba(58,110,165,0.12);
    }

/* ══════════════════════════════════════════════
   ACTION LINKS (grid row buttons)
   ══════════════════════════════════════════════ */
.action-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

    .action-links a,
    .action-links button {
        font-size: 0.72em;
        padding: 4px 10px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        color: #fff;
        font-weight: 500;
        transition: opacity 0.2s;
    }

        .action-links a:hover,
        .action-links button:hover {
            opacity: 0.85;
        }

    .action-links .a-edit {
        background: #2980b9;
    }

    .action-links .a-reset {
        background: #8e44ad;
    }

    .action-links .a-toggle {
        background: #e67e22;
    }

    .action-links .a-lock {
        background: #d35400;
    }

    .action-links .a-delete {
        background: #c0392b;
    }

/* ══════════════════════════════════════════════
   SECTION TITLES & PASSWORD RULES
   ══════════════════════════════════════════════ */
.section-title {
    font-size: 1em;
    font-weight: 600;
    color: #1a2d75;
    margin: 22px 0 12px;
    border-bottom: 2px solid #e0e6f0;
    padding-bottom: 6px;
}

.pwd-rules {
    background: #eef2fa;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.85em;
    color: #3a4a6a;
    border-left: 4px solid #3a6ea5;
}

/* ══════════════════════════════════════════════
   QUICK EDIT LOOKUP BAR
   ══════════════════════════════════════════════ */
.quick-edit-bar {
    background: #eef2fa;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    border: 1px solid #d0d8e8;
}

    .quick-edit-bar .form-group {
        margin-bottom: 0;
        flex: 1;
        min-width: 220px;
    }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.75em;
    color: #999;
    margin-top: 40px;
}

/* ══════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════ */
@media screen and (max-width: 700px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        background-color: #1a2d75;
        padding: 8px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 10px 20px;
            border-radius: 0;
        }

    .nav-user {
        gap: 6px;
        font-size: 0.8em;
    }

    .user-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85em;
    }

    .page-body {
        padding: 14px 10px;
    }

    .card {
        padding: 18px 16px;
    }

    .inline-group {
        flex-direction: column;
    }

    .stats-row {
        gap: 8px;
    }

    .stat-box {
        min-width: 90px;
        padding: 12px 10px;
    }

        .stat-box .stat-num {
            font-size: 1.3em;
        }

    .tab-bar {
        gap: 0;
    }

        .tab-bar .tab {
            padding: 8px 12px;
            font-size: 0.78em;
        }

    .tab-panel {
        padding: 18px 14px;
    }

    .search-bar {
        flex-direction: column;
    }

        .search-bar input[type="text"] {
            min-width: unset;
            width: 100%;
        }

    .data-table th,
    .data-table td {
        padding: 6px 8px;
        font-size: 0.78em;
    }

    .action-links {
        gap: 3px;
    }

        .action-links a,
        .action-links button {
            padding: 3px 8px;
            font-size: 0.68em;
        }

    .quick-edit-bar {
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════ */
@media print {
    .page-banner,
    .page-banner-img,
    .navbar,
    .hamburger {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-body {
        max-width: none;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
