  /* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
}

/* ================= NAVBAR ================= */
.navbar {
    width: 100%;
    height: 60px;
    background-color: #007bff; /* primary blue */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    gap: 10px;
}

.nav-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.toggle-btn {
    font-size: 26px;
    cursor: pointer;
}

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

/* ================= SIDEBAR ================= */
.sidebar {
    width: 250px;
    background: #ffffff;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    left: 0;
    padding-top: 20px;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 0;
    transition: 0.3s;
}

.sidebar.hide {
    left: -250px;
}

.sidebar h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

/* ================= MENU BUTTONS ================= */
.menu-btn {
    padding: 14px 20px;
    font-size: 17px;
    color: #007bff;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: 0.2s;
}

.menu-btn:hover {
    background: #cce5ff;
    color: #0056b3;
}

.submenu {
    display: none;
    background: #f0f8ff;
}

.submenu a {
    display: block;
    padding: 12px 35px;
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: 0.2s;
}

.submenu a:hover {
    background: #cce5ff;
    color: #004085;
}
.no-record {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    color: #555;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}


/* ================= LOGOUT ================= */
.sidebar-logout {
    margin-top: auto;
    padding: 10px 16px;
    background: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    color: white;
}

.sidebar-logout:hover {
    background: #a2cdfa;
}

.logout-icon {
    width: 22px;
    height: 22px;
}

/* ================= MAIN CONTENT ================= */
.main {
    margin-left: 260px;
    padding: 30px;
    width: calc(100% - 260px);
    margin-top: 80px;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

a {
    text-decoration: none;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 95%;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-add {
    background-color: #28a745;
    display: inline-block;
    margin-bottom: 20px;
}

.btn-update {
    background-color: #007bff;
}

.btn-delete {
    background-color: #dc3545;
}

/* ================= TABLE ================= */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: right;
    white-space: nowrap;
}

th {
    background-color: #007bff;
    color: white;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f0f8ff;
}

td:first-child,
th:first-child {
    text-align: left;
}

.action-cell form {
    display: inline-block;
    margin-left: 5px;
}

/* ================= BACK BUTTON ================= */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    background: #007bff;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #0056b3;
}