
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #333;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
}

.page-content {
    padding: 20px;
    flex: 1;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0f2e9;
    padding: 10px 20px;
    border-bottom: 2px solid #006400;
    flex-wrap: wrap;
}

.navbar-section {
    flex: 1;
}

.logo {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    color: #006400;
}

.menu {
    text-align: center;
}

.menu-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;   /* prevents wrapping */
    white-space: nowrap; /* extra protection */


}

.menu-item {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    color: #006400;
    font-weight: 500;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.menu-item a:hover {
    background-color: #cce5cc;
    border-radius: 4px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f0fff0;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
    min-width: 150px;
    text-align: left;
}

.menu-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #006400;
}

.submenu a:hover {
    background-color: #d4f4d4;
}

.auth {
    text-align: right;
}

.auth a {
    text-decoration: none;
    color: #006400;
    font-weight: 500;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.auth a:hover {
    background-color: #cce5cc;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-items {
        flex-direction: column;
        align-items: center;
    }

    .auth {
        text-align: center;
        margin-top: 10px;
    }
}


.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9fff9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    color: #006400;
}


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





.site-footer {
    background-color: #e0f2e9;
    border-top: 2px solid #006400;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
    color: #006400;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 14px;
    color: #333;
}



.button,
button,
input[type="submit"],
input[type="button"] {
    background-color: #006400;        /* Dark green theme color */
    color: #ffffff;                   /* White text for contrast */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;               /* Soft rounded corners */
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none;            /* For <a class="button"> */
    display: inline-block;
}

/* Hover effect */
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #008000;        /* Slightly lighter green */
    transform: translateY(-2px);      /* Subtle lift */
}

/* Active (pressed) effect */
.button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    background-color: #004d00;        /* Deeper green */
    transform: translateY(0);
}


.no-style {
    color: inherit;          /* Uses the parent’s text colour */
    text-decoration: underline;   /* Removes underline if needed */
}

.navbar-section.auth .menu-items {
    margin: 0;
    padding: 0;
}

.success {
    color: #006400;
    background: #e0f2e9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}


 /* Table container (optional but recommended) */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

/* Base table styling */
.green-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background-color: #ffffff;
    border: 1px solid #c8e6c9; /* light green border */
}

/* Header row */
.green-table thead th {
    background-color: #006400; /* dark green */
    color: #ffffff;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 3px solid #004d00; /* deeper green accent */
}

/* Table rows */
.green-table tbody tr {
    border-bottom: 1px solid #e0f2e9; /* soft green */
}

/* Alternating row color */
.green-table tbody tr:nth-child(even) {
    background-color: #f3fbf6; /* very light green tint */
}

/* Table cells */
.green-table td {
    padding: 10px;
    color: #003300; /* dark text for readability */
}

/* Hover effect */
.green-table tbody tr:hover {
    background-color: #d9f2e3; /* soft hover green */
}

/* Optional: clickable rows */
.green-table tbody tr.clickable:hover {
    cursor: pointer;
    background-color: #c2e8d0;
}



.row-menu {
    position: absolute;
    background: #e0f2e9;
    border: 1px solid #006400;
    border-radius: 5px;
    padding: 10px;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.row-menu a {
    display: block;
    padding: 6px 10px;
    color: #006400;
    text-decoration: none;
    white-space: nowrap;
}

.row-menu a:hover {
    background: #c2e8d0;
}

/* Green-themed select box */
select {
    width: 100%;
    padding: 10px;
    border: 2px solid #006400;        /* Dark green border */
    border-radius: 6px;
    background-color: #ffffff;        /* Clean white background */
    color: #003300;                   /* Deep green text */
    font-size: 15px;
    cursor: pointer;
    appearance: none;                 /* Remove default arrow (Chrome/Edge) */
    -moz-appearance: none;            /* Firefox */
    -webkit-appearance: none;         /* Safari */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23006400' height='20' width='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,12'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* Make the select box look like your green buttons */
select {
    background: #006400;          /* same green as your buttons */
    color: #ffffff;               /* white text */
    padding: 8px 14px;            /* same padding as buttons */
    border: none;                 /* remove default border */
    border-radius: 5px;           /* match button radius */
    font-size: 14px;
    cursor: pointer;
    appearance: none;             /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Add a custom white arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' width='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,12'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* Hover effect like your buttons */
select:hover {
    background: #004d00;
}

/* Selected option styling */
select option:checked {
    background: #990000;   /* same red as your close button */
    color: #ffffff;
}
