body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

h3 {
    background-color: #5CE1E6;
    padding: 10px;
    border-radius: 5px;
    color: white;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.car-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.item-row:last-child {
    border-bottom: none;
}

.item-row span {
    flex: 1;
    font-size: 1em;
}

.item-row select {
    flex: 0 0 200px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.item-row .date-field {
    flex: 0 0 150px;
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

.action-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.action-item:last-child {
    border-bottom: none;
}

#weeklyActionItems {
    margin-top: 50px;
}

.header {
    background-color: #5CE1E6;
    padding: 20px;
    text-align: center;
    color: white;
    position: relative;
}

.logo {
    position: absolute;
    left: 20px;
    top: 20px;
    height: 60px;
}

/* Office Selector Styles */
.office-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-top: 10px;
    border-radius: 8px;
}

.office-selector-container label {
    color: white;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

#office-selector {
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 8px;
    background-color: white;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

#office-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Center the navigation buttons */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px; /* Adjusted margin to lower the buttons */
    margin-top: 30px;
}

.nav button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: black; /* Change buttons to black */
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav button:hover {
    background-color: #333; /* Darker shade on hover */
}

/* Center the week picker */
.week-picker-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.week-picker-container label {
    font-weight: bold;
    margin-right: 10px;
}

.week-picker-container input[type="week"] {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.date-pickers {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

input[type="date"],
input[type="week"] {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    background-color: #0DADE3;
    color: black;
}

th {
    background-color: #5CE1E6;
    color: white;
    text-transform: uppercase;
}

#weekly-recap {
    margin-top: 40px;
}

#weekly-recap div {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    background-color: #0DADE3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#weekly-recap h2 {
    text-align: center;
    color: #5CE1E6;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: white;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inventory-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 2;
    font-weight: bold;
}

.item-total-in-stock,
.item-new-inventory,
.item-end-of-month-total,
.item-total-months-usage {
    flex: 1;
    text-align: center;
}

.item-new-inventory input,
.item-end-of-month-total input {
    width: 80%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.item-new-inventory button,
.item-actions button {
    padding: 8px 12px;
    background-color: #5CE1E6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.item-new-inventory button:hover,
.item-actions button:hover {
    background-color: #0DADE3;
}

.item-actions {
    flex: 0.5;
    text-align: center;
}

/* Undo/Redo Buttons */
.undo-redo-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.undo-redo-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #5CE1E6;
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.undo-redo-buttons button:hover {
    background-color: #0DADE3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .nav {
        flex-direction: column;
    }

    .nav button {
        margin-bottom: 10px;
    }

    .inventory-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .inventory-item > div {
        margin-bottom: 10px;
        width: 100%;
    }

    .inventory-buttons {
        flex-direction: column;
    }

    .inventory-buttons button {
        margin-bottom: 10px;
    }

    table, th, td {
        font-size: 14px;
        padding: 10px;
    }

    .header {
        padding: 10px;
    }

    .logo {
        height: 40px;
    }

    h1 {
        font-size: 20px;
    }

    h3 {
        font-size: 1em;
    }

    .car-section {
        padding: 15px;
    }

    .undo-redo-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .office-selector-container {
        padding: 10px;
    }

    #office-selector {
        padding: 8px 15px;
        font-size: 1em;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }

    h1 {
        font-size: 18px;
    }

    table, th, td {
        font-size: 12px;
        padding: 8px;
    }

    .nav button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .office-selector-container {
        flex-direction: column;
        gap: 8px;
    }

    .office-selector-container label {
        margin-right: 0;
    }

    #office-selector {
        min-width: 160px;
    }
}