/* ========================
   GENERAL LAYOUT & BODY
======================== */
body {
    background-color: #f3f4f6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.main-content {
    margin-left: 220px;
    padding: 20px;
    max-width: calc(100% - 240px);
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
}

/* ========================
   SIDEBAR MENU
======================== */
/* ========================
   SIDEBAR MENU
======================== */
#sidebar {
    width: 200px;
    background-color: #003366;
    color: white;
    padding: 15px 12px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    font-size: 13px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu > li {
    margin-bottom: 10px;
}

.menu-group {
    font-weight: bold;
    color: #a3c4ff;
    margin: 10px 0 4px 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.submenu {
    list-style: none;
    margin: 0 0 10px 0;
    padding-left: 0;
}

.submenu li a,
.nav-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.submenu li a:hover,
.nav-menu > li > a:hover {
    background-color: #004c99;
}

.submenu li a.active,
.nav-menu > li > a.active {
    background-color: #66b3ff;
    color: #003366;
    font-weight: bold;
}


/* ========================
   HEADINGS
======================== */
h1, h2 {
    color: #1e3a8a;
    margin-top: 0;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 18px;
}

/* ========================
   FORMS
======================== */
form {
    margin-top: 15px;
    width: 100%;
}

form label {
    margin-top: 10px;
    font-size: 13px;
}

input[type="text"],
input[type="date"],
input[type="email"],
select,
textarea {
    padding: 6px;
    font-size: 13px;
}

input[type="submit"],
button {
    padding: 8px 16px;
    font-size: 14px;
}

/* ========================
   FORM ENHANCEMENTS
======================== */
form {
    max-width: 600px;
    margin-top: 15px;
}

form label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: bold;
    display: block;
    color: #1e3a8a;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 6px 10px;
    margin-top: 4px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 80px;
    resize: vertical;
}

input[type="submit"],
button {
    margin-top: 20px;
    font-size: 13px;
    padding: 8px 14px;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
    background-color: #3b5cb8;
}


/* ========================
   TABLES
======================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #1e3a8a;
    color: white;
}

/* Image thumbnails */
img.thumb {
    max-width: 22px;
    height: auto;
}

/* ========================
   DASHBOARD CARDS
======================== */
.dashboard-cards {
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-card {
    padding: 20px;
    font-size: 14px;
}

.dashboard-card h2 {
    font-size: 32px;
}

.dashboard-card p {
    font-size: 14px;
}

/* ========================
   BUTTONS & MESSAGES
======================== */
.button,
.btn-primary {
    font-size: 13px;
    padding: 6px 10px;
}

.message {
    font-size: 13px;
}

.message.success {
    background-color: #e0fbe2;
    color: #155724;
    border-left: 8px solid #28a745;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 128, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ========================
   PAGINATION
======================== */
.pagination {
    margin-top: 15px;
}

.pagination a {
    padding: 6px 10px;
    font-size: 13px;
}

.pagination-info {
    margin-top: 8px;
    font-size: 13px;
}
