/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
}

.top-header .header-logo {
    width: 50px;
    height: auto;
}

.logout-button {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #cc0000;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    /*border-bottom: 2px solid #ccc;*/
}

header .logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

header, h1 {
    font-family: "Georgia", serif;
    color: #333;
    margin: 10px 0;
    font-size: 58px;
}

header, h2 {
    font-family: "Georgia", serif;
    color: #666;
    font-size: 18px;
    margin: 10px 0;
}


header p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.nav-bar button {
    background-color: #D4AF37;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-bar button:hover {
    color: black;
    background-color: #e6b800;
}

button {
    background-color: #D4AF37;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    color: black;
    background-color: #e6b800;
}

/* Table */
main {
    padding: 20px;
    text-align: center;
}

.table-container {
    margin: 20px auto;
    text-align: center;
}


table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

table th {
    background-color: #D4AF37;
    /*color: #000;*/
    font-size: 15px;
    color: #345;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ffeb99;
}

/* Responsive Design */
@media (max-width: 600px) {
    .nav-bar {
        flex-direction: column;
        align-items: center;
    }

    table {
        width: 100%;
    }
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
}
.popup-content {
    max-height: 80vh;
    overflow-y: auto;
}
.close-button {
    float: right;
    font-size: 20px;
    cursor: pointer;
}
.status-update {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
#status-dropdown {
    padding: 5px;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



.items-container {
    /*display: flex;*/
    /*flex-direction: column;*/
/*    align-items: flex-start;  */
/*    gap: 10px;
    padding: 10px 0;*/
}


.checkbox-wrapper input[type="checkbox"] {
    margin: 0;  
}

.checkbox-wrapper label {
    cursor: pointer;
    margin: 0;
}

#items-table {
    width: 100%;
    border-collapse: collapse;
}

#items-table th, #items-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#items-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

#items-table input[type="number"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 80%;
}

.checkbox-wrapper {
    margin-bottom: 10px; /* Space between each package */
    /*display: contents;*/
    text-align: left;
/*    flex-direction: column;  Stack vertically 
    align-items: flex-start;  Align everything to the left */
}

.checkbox-wrapper label {
    display: contents;
    align-items: left;  
    margin-bottom: 5px;  
    text-align: left;
}

.product-description {
    font-size: 12px;
    color: #555;   
    margin-left: 20px;
    margin-bottom: 20px;  
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;  
}

#amount-paid {
    height: calc(1.5em + 10px); /* Adjust based on default size */
    padding: 0px; /* Optional: Adjust padding for better appearance */
    font-size: 16px;
}

#confirm-payment, #update-status-button, #add-new-product-button{
    background: green;
}
#confirm-payment:hover, #update-status-button:hover, #add-new-product-button:hover{
    background: limegreen;
}
#cancel-invoice, #cancel-new-product-button{
    background: #cc0000;
}
#cancel-invoice:hover, #cancel-new-product-button:hover{
    background: orangered;
}
#close-update-invoice-popup, #close-client-details-popup{
    background: #FF4033;
}
#close-update-invoice-popup:hover, close-client-details-popup:hover{
    background: #FF5F1F;
}
h2 {
    font-size: 16px;
    color: #777;
}
p {
    font-size: 14px;
    color: #777;
}
#amount-paid, #status-dropdown, #notesTextarea{
    border: 0.1px solid #777;
}
#invoice-table {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    text-align: center; /* Ensures text is centered */
    padding: 20px;
}

.checkbox-group {
    display: flex;
    justify-content: center; /* Center checkboxes horizontally */
    gap: 15px;
    margin-bottom: 10px; /* Spacing between checkboxes and table */
}
.checkbox-group label{
    font-size: 16px;
}


input[type="checkbox"] {
    margin-left: 10px;
    /*margin-right: 8px;*/
    width: 14px;
    height: 14px;
    accent-color: green;
}
