
/* =======================
   BASE RESET
======================= */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
}

/* =======================
   MAIN LAYOUT
======================= */
.main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    min-height: 100vh;
    border: none;
}

/* =======================
   HEADER
======================= */
.header {
    width: 100%;
    height: 150px;
    background-image: url('image/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header h1 {
    color: red;
    margin: 0;
}

/* =======================
   MODERN NAVBAR
======================= */
.nav {
    background: #1f2937;
    color: #fff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 5px;
}

.nav-links a {
    text-decoration: none;
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 14px;
}

.nav-links a:hover {
    background: #374151;
    color: #fff;
}

.nav-links a.active {
    background: #facc15;
    color: #000;
}

/* =======================
   CONTENT SECTIONS
======================= */
.sub_menu {
    background: #e5e7eb;
    padding: 10px;
}

.content {
    background: #ffffff;
    padding: 15px;
    min-height: 500px;
}

.footer {
    text-align: center;
    padding: 10px;
    background: #f3f4f6;
    color: #374151;
}

/* =======================
   FORMS / INPUTS
======================= */
.inputbox {
    font-size: 14px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 8px;
    width: 100%;
    max-width: 250px;
}

.textarea {
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
}

.submit_button {
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: bold;
    height: 32px;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
}

.submit_button:hover {
    background: #1d4ed8;
}

.error {
    color: #dc2626;
    font-size: 13px;
}

/* =======================
   TABLE (RESPONSIVE)
======================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

table td, table th {
    border: 1px solid #e5e7eb;
    padding: 8px;
}

table .header {
    background: #1f2937;
    color: white;
}

table #list_head {
    background: #fef9c3;
    font-weight: bold;
}

tr.odd td {
    background: #f9fafb;
}

/* =======================
   MESSAGE BOX
======================= */
#msg {
    border: 1px solid #93c5fd;
    background: #eff6ff;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 6px;
}

/* =======================
   DROPDOWN
======================= */
.dd {
    font-size: 14px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.footer {
    width: 100%;
    background: #111827;
    color: #e5e7eb;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;   /* 🔥 removes extra space nicely */
    flex-wrap: wrap;
}

.footer a {
    color: #facc15;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

.footer span {
    margin: 0;
    padding: 0;
}

table{
 width:100%;
 border-collapse:collapse;
}

td{
 text-align:center;
 padding:5px;
}

.menu-bar {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    padding: 10px;
    border-radius: 8px;
    gap: 8px;
}

.menu-btn {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.menu-btn:hover {
    background: #ffffff;
    color: #2a5298;
    transform: translateY(-2px);
}

.menu-btn.active {
    background: #ff9800;
    color: #fff;
    font-weight: bold;
}

.menu-btn.logout {
    background: #e53935;
}

.menu-btn.logout:hover {
    background: #c62828;
    color: #fff;
}
.menu-table {
    border: none;
    border-collapse: collapse;
}

.menu-table td {
    border: none;
}

.foot-table{
    width: 40vw;          /* 40% of screen width */
    margin-left: auto;    /* align table to right */
    margin-right: 20px;   /* optional right spacing */
    border-collapse: collapse;
}

.foot-table td{
    padding: 8px;
    font-weight: bold;
    width: 50%;
}

.foot-table input,
.foot-table select{
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}
.btn-save {
    background-color: #28a745;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-save.due {
    background-color: #0b7741; /* red if due */
}

.btn-save.paid {
    background-color: #28a745; /* green if fully paid */
}
.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add {
    background-color: #fd7e14;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-box
{
    position:absolute;
    background:#fff;
    border:1px solid #ccc;
    width:300px;
    max-height:200px;
    overflow-y:auto;
    z-index:9999;
}

.search-item
{
    padding:8px;
    cursor:pointer;
    border-bottom:1px solid #eee;
}

.search-item:hover
{
    background:#f5f5f5;
}
/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {

    .header {
        height: 100px;
    }

    .header h1 {
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1f2937;
    }

    .nav-links li {
        margin: 0;
        border-top: 1px solid #374151;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .nav-links.show {
        display: flex;
    }
}

@media (max-width: 480px) {

    .header {
        height: 80px;
    }

    .header h1 {
        font-size: 16px;
    }
}
