/* =========================
   UP Police AI - Roster CSS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0b1220;
    color: #fff;
    overflow-x: hidden;
}

/* ================= HEADER ================= */

.topbar {
    height: 75px;
    background: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    border-bottom: 2px solid #1f6feb;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.logo h2 {
    font-size: 22px;
    color: #4ea8ff;
}

.logo p {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 3px;
}

.top-right {
    display: flex;
    gap: 10px;
}

.top-right button {
    background: #1f6feb;
    border: none;
    padding: 10px 18px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: .3s;
}

.top-right button:hover {
    background: #0056d6;
}

/* ================= WRAPPER ================= */

.wrapper {
    display: flex;
    min-height: calc(100vh - 75px);
}

/* ================= SIDEBAR ================= */

.sidebar {
    width: 250px;
    background: #111827;
    padding: 25px 15px;
}

.sidebar h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #4ea8ff;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 13px 15px;
    border-radius: 8px;
    transition: .3s;
}

.sidebar ul li a:hover {
    background: #1f6feb;
}

.sidebar .active a {
    background: #1f6feb;
}

/* ================= CONTENT ================= */

.content {
    flex: 1;
    padding: 25px;
}

.content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.date {
    color: #cbd5e1;
    margin-bottom: 25px;
}

/* ================= CARDS ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
    transition: .3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 38px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 35px;
    margin-bottom: 8px;
}

.card p {
    font-size: 15px;
}

.blue {
    background: #1976d2;
}

.green {
    background: #16a34a;
}

.red {
    background: #dc2626;
}

.orange {
    background: #ea580c;
}

/* ================= FILTER ================= */

.filter-box {
    background: #111827;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.filter-box h2 {
    margin-bottom: 20px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filters input,
.filters select {
    padding: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 8px;
    outline: none;
}

.filters button {
    background: #1f6feb;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

.filters button:hover {
    background: #0056d6;
}

/* ================= SUMMARY ================= */

.summary {
    margin-bottom: 25px;
}

.summary-box {
    background: #111827;
    padding: 20px;
    border-radius: 12px;
}

.summary-box h3 {
    margin-bottom: 15px;
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    padding: 10px 0;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
}

/* ================= TABLE ================= */

.table-section {
    background: #111827;
    padding: 20px;
    border-radius: 12px;
}

.table-section h2 {
    margin-bottom: 20px;
}

.table-responsive {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

thead {
    background: #1f6feb;
}

thead th {
    padding: 15px;
    font-size: 15px;
}

tbody td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #2d3748;
}

tbody tr:nth-child(even) {
    background: #162033;
}

tbody tr:hover {
    background: #1e3a5f;
}

/* ================= STATUS ================= */

.day {
    background: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.night {
    background: #dc2626;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.active {
    background: #22c55e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

/* ================= BUTTON ================= */

.viewBtn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
}

.viewBtn:hover {
    background: #1d4ed8;
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #1f6feb;
    border-radius: 20px;
}

/* ================= MOBILE ================= */

@media(max-width:992px) {

    .sidebar {
        display: none;
    }

    .content {
        padding: 15px;
    }

    .topbar {
        padding: 10px;
    }

    .logo h2 {
        font-size: 18px;
    }

    .logo p {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }

}