/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* TOPBAR */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e293b;
    color: #fff;
    padding: 10px 15px;
}

.menu-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.brand {
    font-weight: bold;
}

.logout {
    color: #fff;
    text-decoration: none;
}

/* LAYOUT */
.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #0f172a;
    color: #fff;
    padding-top: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}

.sidebar li a:hover {
    background: #1e40af;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 15px;
    background: #f1f5f9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100%;
        z-index: 999;
        transition: 0.3s;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        padding: 15px;
    }
}

/* DASHBOARD CARD */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 28px;
    color: #1e40af;
}

.card p {
    margin-top: 8px;
    font-weight: bold;
}
.sidebar ul li.active a {
    background: #2563eb;
    color: #fff;
}
.form-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    background: #fff;
}

.form-table th {
    text-align: left;
    padding: 10px;
    width: 30%;
    background: #f5f5f5;
    vertical-align: middle;
}

.form-table td {
    padding: 10px;
}

.form-table th[colspan] {
    background: #eaeaea;
    font-weight: bold;
}

.form-table input,
.form-table select {
    width: 100%;
    padding: 8px;
}

.form-action {
    text-align: right;
}

.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th {
    background: #f0f0f0;
    padding: 10px;
    text-align: left;
}

.data-table td {
    padding: 10px;
    border-top: 1px solid #ddd;
}

.data-table tr:hover {
    background: #fafafa;
}

.table-responsive {
    overflow-x: auto;
}
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
}

.alert.success {
    background: #e8f7ee;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 350px;
}

.modal-box button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
