/* ========================
   General Body & Font
======================== */
body {
    font-family: 'Arial', sans-serif;
    font-size: 14px; /* reduced overall font */
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ========================
   Header / Navbar
======================== */
header {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 0; /* square corners */
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
}

header nav a:hover {
    text-decoration: underline;
}

/* ========================
   Buttons
======================== */
.btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #a71d2a;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-outline-primary {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* Full-width buttons in dashboard */
.w-100 {
    width: 100% !important;
}

/* ========================
   Page Titles / Headings
======================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    color: #007bff; /* primary color for titles */
    margin-bottom: 15px;
    font-weight: 700;
}

h1 {
    font-size: 28px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

h2 {
    font-size: 24px;
    border-bottom: 1px solid #007bff;
    padding-bottom: 4px;
}

h3 {
    font-size: 20px;
    color: #28a745; /* green for sub-sections */
}

h4 {
    font-size: 18px;
    color: #ffc107; /* yellow for minor headings */
}

h5 {
    font-size: 16px;
    color: #17a2b8; /* teal color */
}

h6 {
    font-size: 14px;
    color: #6c757d; /* muted gray */
}

/* Optional: Title with background highlight */
.title-highlight {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}


/* ========================
   Tables
======================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
}

/* ========================
   Forms / Inputs
======================== */
input[type="text"], input[type="password"], input[type="email"], select {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

/* ========================
   Dropdown
======================== */
.dropdown-menu {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    min-width: 150px;
}

.dropdown-menu a {
    color: #333;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #007bff;
    color: #fff;
}

/* ========================
   Footer
======================== */
footer {
   /* position: fixed;*/
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000; /* black background */
    color: #fff;
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
    header nav a {
        display: block;
        margin: 5px 0;
    }

    table th, table td {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ========================
   Cards / Dashboard panels
======================== */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* ========================
   Alerts / Messages
======================== */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #28a745;
    color: #fff;
}

.alert-danger {
    background-color: #dc3545;
    color: #fff;
}

.alert-warning {
    background-color: #ffc107;
    color: #212529;
}
