.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    height: 40px;
}

.update-button {
    background-color: #8B7355;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    height: 30px;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.update-button:hover {
    background-color: #A0826D;
}

.update-button:active {
    background-color: #6B5A47;
}

/* Style date inputs and containers */
.date-input-container {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px; /* Standardize container height */
}

/* Standardized container class */
.standard-container {
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Standardized date input class */
.standard-date-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 150px !important;
    height: 30px !important;
    background-color: #F5F1E8 !important;
    color: #5D4E37 !important;
    border: 1px solid #8B7355 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.date-input-container label {
    min-width: 80px;
    font-weight: bold;
}

/* Base styling for date inputs (overridden by .standard-date-input) */
input[type="date"] {
    background-color: #F5F1E8;
    color: #5D4E37;
    border: 1px solid #8B7355;
    border-radius: 4px;
    padding: 5px 10px;
    font-family: inherit;
    width: 150px;
    height: 30px;
    box-sizing: border-box;
}

/* Calendar picker styling for different browsers */
input[type="date"]::-webkit-calendar-picker-indicator,
.standard-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
    cursor: pointer !important;
    margin-left: 5px !important;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button,
.standard-date-input::-webkit-inner-spin-button,
.standard-date-input::-webkit-clear-button {
    display: none !important;
}

/* Firefox specific styling */
input[type="date"]::-moz-calendar-picker-indicator,
.standard-date-input::-moz-calendar-picker-indicator {
    filter: invert(1) !important;
    cursor: pointer !important;
}

/* Edge/IE specific styling */
input[type="date"]::-ms-clear,
input[type="date"]::-ms-reveal,
.standard-date-input::-ms-clear,
.standard-date-input::-ms-reveal {
    display: none !important;
}

/* Style for loading indicators */
._dash-loading {
    margin: 50px auto;
    color: #8B7355 !important;
}

/* Make loading spinner more visible */
._dash-loading-callback {
    border: 3px solid rgba(139, 115, 85, 0.3) !important;
    border-top: 3px solid #8B7355 !important;
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
