/* Base Light Mode */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #2e2e2e;
}

a {
    color: #5E5B4C;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #3e3b2f;
    text-decoration: underline;
}

.container {
    max-width: 500px;
    margin: 40px auto;
    background: #DCDAD0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #ccc;
}

.logo,
#logo {
    height: 100px;
    margin-bottom: 20px;
    content: url("logo.png");
}

form label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="email"],
form select {
    width: 95%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    margin-top: 6px;
}

button {
    background-color: #5E5B4C;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #4a483c;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
}

.wide-admin {
    max-width: 800px;
}

input.small-field {
    width: 100px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #5E5B4C;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #444;
}

#rateField {
    transition: all 0.2s ease;
}

#rateField.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

table tr {
    background-color: #f9f9f9;
    color: #000;
}

footer {
    color: #2e2e2e;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

.theme-button {
    background-color: #5E5B4C;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-block;
}

.theme-button:hover {
    background-color: #3e3b2f;
    color: white;
}

.flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.form-section {
    flex: 1 1 300px;
    min-width: 300px;
}

.report-section {
    flex: 1 1 300px;
    min-width: 200px;

 
}

/* Pay Form Enhancements */
#payForm {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #DCDAD0;
    border-radius: 12px;
    padding: 10px;
/* 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #bbb;
    color: #2e2e2e;
 */
}

#payForm fieldset {
    border: 1px solid var(--border-color, #ccc);
    border-radius: 8px;
    padding: 10px;
    background-color: #F2EFE5;
}

#payForm legend {
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #5E5B4C;
}

#payForm label {
    display: block;
    margin-top: 20px;
    font-weight: 500;
}

#payForm input[type="number"],
#payForm input[type="text"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    margin-top: 6px;
}

#payForm input[name="misc_note"] {
    max-width: 100%;
}

#total-pay {
    text-align: center;
    margin-top: 30px;
    background-color: #F2EFE5;
    border: 1px solid #999;
    border-radius: 8px;
    padding: 15px;
    font-weight: bold;
    font-size: 1em;
}

#total-pay h4 {
    margin-top: 0;
    color: #5E5B4C;
    font-size: 1.2em;
}

#total-pay div {
    margin: 5px 0;
}

#payForm button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    background-color: #5E5B4C;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    align-self: center;
    margin-top: 10px;
}

#payForm button:hover {
    background-color: #3e3b2f;
}

#save-status {
    text-align: center;
    font-size: 0.95em;
}

/* Responsive Layout */
@media (max-width: 600px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    #payForm fieldset {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    #payForm label {
        flex: 1 1 150px;
        margin: 0;
    }

    #payForm input[type="number"],
    #payForm input[type="text"] {
        flex: 1 1 auto;
        margin-bottom: 10px;
    }

    #payForm input[name="misc_note"] {
        flex: 1 1 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #2b2b2b;
        color: #e0e0e0;
    }

    .container {
        background: #3a3a3a;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    }

    form input[type="text"],
    form input[type="password"],
    form input[type="email"],
    form input[type="number"],
    form select {
        background-color: #1e1e1e;
        border: 1px solid #777;
        color: #eee;
    }

    button {
        background-color: #888066;
    }

    button:hover {
        background-color: #a89f7c;
    }

    #logo {
        content: url("logo_w.png");
    }

    table tr {
        background-color: #2e2e2e;
        color: #eaeaea;
    }

    table th {
        background-color: #444030;
        color: #fff;
    }

    a {
        color: #c6c2b6;
    }

    a:hover {
        color: #ffffff;
    }

    .top-header {
        background-color: #444035;
        border-bottom-color: #666;
    }

    .theme-button:hover {
        background-color: #5e5b4c;
        color: #f5f5f5;
    }

    footer {
        color: #ddd !important;
    }

    .page-footer a.theme-button,
    footer .theme-button {
        background-color: #5e5b4c !important;
        color: white !important;
    }

    .page-footer a.theme-button:hover,
    footer .theme-button:hover {
        background-color: #888066 !important;
        color: white !important;
    }

    #payForm {
        background-color: #3a3a3a;
        border: 0px solid transparent;
        color: #e0e0e0;
    }

    #payForm input[type="number"],
    #payForm input[type="text"] {
        background-color: #1e1e1e !important;
        color: #f0f0f0 !important;
        border: 1px solid #555 !important;
    }

    #payForm fieldset {
        background-color: #2a2a2a;
        border-color: #444;
    }

    #payForm legend {
        color: #fff;
    }

    #payForm label {
        color: #ddd;
    }

    #total-pay {
        background-color: #2e2e2e;
        border-color: #444;
        color: #fff;
    }

    #payForm button {
        background-color: #888066;
    }

    #payForm button:hover {
        background-color: #a89f7c;
    }
}

.report-section {
    flex: 1 1 200px;
    min-width: 200px;
    padding: 10px;
    border-left: 1px solid #ccc;
}

.full-width-button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #5E5B4C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.full-width-button:hover {
    background-color: #3e3b2f;
}

.report-title {
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}


.report-container {
    border: 0px 
    padding: 0px;
    border-radius: 0px;
    background: transparent;
    margin-top: 00px;
}


/* Dark mode support for report section */
@media (prefers-color-scheme: dark) {
    .report-section {
        border-left: 1px solid #555;
    }


    .report-title {
        color: #ddd;
    }
}

.pay-estimates {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    font-size: 0.9em;
}

.estimate-box {
    background-color: var(--main-bg);
    border: 1px solid var(--border-color, #ccc);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 140px;
    text-align: center;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
    color: var(--text-color);
}

/* Responsive: show side-by-side on smaller screens */
@media screen and (max-width: 768px) {
    .pay-estimates {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}

