/* Reset some default browser styles */
body, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

body {
    display: flex;
    justify-content: center; /*
    align-items: center;*/
    height: 100vh; /* Full viewport height */
    margin: 0; /* Remove default margin */
    font-family: Tahoma;
    background-color: #f8f9fa; /* Optional: light background for better contrast */
}

.header {
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.head-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
}

.logo {
    flex: 1;
}

.logo-image {
    height: 60px;
}

.menu {
    display: flex;
    align-self: self-end;
    height: 100%; /* Ensure the nav fills the container */
}

    .menu ul {
        display: flex;
        align-items: flex-end; /* Align items to the bottom of the ul */
        list-style-type: none;
        padding: 0;
        margin: 0;
        height: 100%; /* Ensure ul fills the height of the nav */
    }

    .menu li {
        margin: 0 15px 15px 15px; /* Space between each menu item */
    }

        .menu li a {
            display: block;
            padding: 10px 15px; /* Add padding for better click area */
            color: #fff;
            text-decoration: none;
            transition: color 0.3s;
        }

            .menu li a:hover {
                color: #f0ad4e; /* Change color on hover */
            }

.menu-toggle {
    display: none;
    cursor: pointer;
    color: #1f1d71;
    font-size: 24px;
}

.content {
    padding: 80px 20px; /* Adjust for the fixed header height */
    flex: 1; /* Allows the content to expand and push the footer down */
}
.error {
    color: red;
    margin-left: 20px;
}
.footer {
    background-color: #007e00;
    color: white;
    text-align: center;
    padding: 5px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.login-container {
    width: 550px; /* Adjust width to make it wider */
    margin: 7em auto;
    padding: 30px; /* Add padding for better spacing */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: left;
    position: relative; /* Ensure the container remains positioned properly */
}

    .login-container h3 {
        text-align: center;
        margin-bottom: 20px;
        color: #333;
    }

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

form {
    width: 1200px;
}

.form-group {
    margin-bottom: 1.2em; /* Space between form elements */
}

    .form-group label {
        display: block;
        margin-bottom: 0.5em;
        color: #555;
    }

.form-control {
    width: 100%; /* Full width of the parent container */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .form-control:focus {
        border-color: #007bff;
        outline: none;
    }

.btn-submit {
    width: 100%; /* Full width of the button */
    padding: 12px; /* Increased padding for a larger button */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1em;
}

    .btn-submit:hover {
        background-color: #0056b3;
    }

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.btn-submit, .footer-link {
    display: inline-block !important;
    width: 100%; /* Ensure the link/button takes the full width of its container */
    padding: 10px 15px; /* Adjust padding for larger click area */
    background-color: #1f1d71;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 5px 0; /* Add vertical spacing */
    box-sizing: border-box;
}

    .footer-link:hover {
        background-color: #0056b3;
    }

/* Container for the form and table */
.table-container {
    max-width: 1600px;
    width: 100%;
    min-width: 350px;
    margin: 50px auto 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.table-ver-container {
    max-width: 800px;
    min-width: 400px;
    margin: 50px auto 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* Styling the form */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

    .form-row div {
        flex: 1 1 150px; /* Adjust input size */
        min-width: 150px;
    }

    .form-row label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #333;
    }

    .form-row input[type="text"],
    .form-row select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .form-row input[type="submit"] {
        padding: 5px 20px;
        background-color: #1f1d71;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
        margin-right: 5px;
        width: auto;
    }

        .form-row input[type="submit"].btn-danger {
            background-color: red;
        }

        .form-row input[type="submit"]:hover {
            background-color: #0056b3;
        }

        .form-row input[type="submit"].btn-danger:hover {
            background-color: darkred;
        }

/* Table styling */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

    .table-responsive input[type="text"] select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 350px
}

    .table th, .table td {
        padding: 10px;
        text-align: left;
        border: 1px solid #ddd;
    }
td[data-label] {
    font-size: 14px !important; /* Adjust this value to your desired font size */
}

    .table th {
        background-color: #f4f4f4;
        font-weight: bold;
    }

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #fff;
}

.text-center {
    text-align: center;
}

/* Button styles */
.btn-link {
    background: none;
    color: #007bff;
    text-decoration: underline;
    border: none;
    cursor: pointer;
}

    .btn-link:hover {
        color: #0056b3;
    }

/* Pagination and other details */
.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Modal styling */
#warningModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}

#modalContent {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 700px;
    text-align: left;
    border-radius: 5px;
}

#closeButton {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

    #closeButton:hover {
        background-color: #0056b3;
    }

.header-link {
    color: #333 !important;
    text-decoration: underline !important;
}

.cell {
    display: none;
}
.contentDiv {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on small screens */
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto; /* Center the content */
    padding: 20px;
    min-width: 350px;
}

.stmtDiv, .ajaxDiv{
    flex: 1; /* Take up equal width */
    margin: 10px;
    padding: 20px;
    box-sizing: border-box; /* Include padding in element's width and height */
}

.stmtDiv {
    max-width: 25%; /* Minimum width to maintain layout on small screens */
    min-width: 300px;
}
.ajaxDiv {
    max-width: 74%;
    min-width: 300px;
}
.addyUl li {
    padding: .2em
}
label {
    font-weight: bold;
    font-size: 10pt;
}

/* Adjust for small screens */
@media (max-width: 768px) {
    .stmtDiv, .ajaxDiv {
        flex-basis: 100%; /* Stack columns vertically on mobile */
    }
}
@media (max-width: 1300px) {
    form {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0 0 0 !important;
    }
    .mobileHide {
        display: none!important;
    }
    .menu {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background-color: #1f1d71;
        color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

        .menu ul {
            flex-direction: column;
            padding-top: 50px;
        }

            .menu ul li a {
                color: white;
                padding: 15px;
                text-align: center;
            }

    .menu-toggle {
        display: block;
        margin-right: .5em;
    }

    .menu.active {
        right: 0;
    }

    .menu.open ul {
        display: flex;
    }

    .form-row {
        flex-direction: column;
        width: 100%;
    }

        .form-row div {
            flex: 1 1 50px !important; /* Adjust input size */
            min-width: 150px;
        }

    .table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #ddd;
        margin-bottom: 15px;
    }

    /* Style each cell to look like a block */
    .table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
    /* Make sure the last cell does not have a bottom border */
    .table tr {
        border-bottom: none;
        background-color: #fff !important;
    }

    /* Hide table headers on mobile as rows stack */
    .table thead {
        display: none;
    }

    .cpu {
        display: none !important;
    }

    .footer {
        padding: 0 25px;
    }

    .login-container {
        width: 100% !important;
    }
    .form-control {
        width: 50%;
    }
}
