body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

/* Make all input fields, selects, and textareas consistent width */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 400px; /* Set a maximum width */
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Specific date input styling while maintaining width */
input[type="date"] {
    position: relative;
    background: white;
    color: black;
    -webkit-appearance: none;
    padding: 8px;
    padding-right: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: transparent;
    background: transparent;
    user-select: none;
}

/* Show placeholder when no date is selected */
input[type="date"]:not([data-date]) {
    color: transparent;
}

input[type="date"]:not([data-date]):before {
    color: #757575;
    content: "dd/mm/yyyy";
    position: absolute;
    left: 10px;
}

/* Show formatted date when date is selected */
input[type="date"][data-date] {
    color: transparent;
}

input[type="date"][data-date]:before {
    color: #000000;
    content: attr(data-date);
    position: absolute;
    left: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

#invoicePreview {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#headerLogo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    margin-left: 20px;
}

.header h1 {
    font-size: 2em;
    margin-right: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #da190b;
}

.charges-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

/* Updated header styles */
.charges-table tr:first-child,
.charges-table tr:first-child th,
.table-header,
.table-header th {
    background-color: #4CAF50 !important;
    color: white !important;
}

.charges-table .total-row {
    background-color: #f9f9f9;
    border-top: 2px solid #ddd;
}

.charges-table td:last-child,
.charges-table th:last-child {
    text-align: right;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

#loginLogo {
    max-height: 100px;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-form button:hover {
    background-color: #45a049;
}

.admin-menu {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.admin-menu h2 {
    color: #333;
    margin-bottom: 30px;
}

.menu-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s, background-color 0.2s;
}

.menu-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.menu-btn span {
    text-align: center;
}