/* Frontend styles */
.calendar-reservation-form {
    max-width: 800px;
    margin: 0 auto;
}

.reservation-calendar {
    margin-bottom: 20px;
}

.ui-datepicker {
    width: 100%;
    max-width: 100%;
}

.ui-datepicker table {
    width: 100%;
    font-size: 0.9em;
}

.ui-datepicker-calendar .ui-state-default {
    text-align: center;
}

/* Reserved dates styling */
.ui-datepicker td.reserved,
.ui-datepicker td.ui-datepicker-unselectable.reserved {
    background-color: #ffcccc !important;
    opacity: 1 !important;
}

.ui-datepicker td.reserved a,
.ui-datepicker td.reserved span,
.ui-datepicker td.reserved .ui-state-default,
.ui-datepicker td.ui-datepicker-unselectable.reserved span {
    background: #ff0000 !important;
    color: #ffffff !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    border: none !important;
    font-weight: bold !important;
}

/* Selected dates (green) */
.ui-datepicker-calendar .selected .ui-state-default {
    background: #aaffaa !important;
    color: #333 !important;
}

.selected-dates {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
}

.selected-dates h4 {
    margin-top: 0;
}

#selected-dates-list {
    list-style: none;
    padding: 0;
}

#selected-dates-list li {
    margin-bottom: 5px;
}

.remove-date {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    margin-left: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
}

/* Submit button style */
#submit-reservation {
    color: white;
    border: 2px solid #e3a56c;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 3px 3px 5px black;
    font-size: 24px;
    text-shadow: 1px 1px 2px black;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    background: #000000;
    transition: background-color 0.3s ease;
}

#submit-reservation:hover {
    background: #7e3535;
    background: linear-gradient(110deg, #7e3535 0%, #e3a56c 69%);
    color: rgb(255, 255, 255);
}

#reservation-message .success {
    background: #dff0d8;
    color: #3c763d;
    padding: 10px;
    margin-top: 10px;
}

#reservation-message .error {
    background: #f2dede;
    color: #a94442;
    padding: 10px;
    margin-top: 10px;
}

/* Admin styles */
.admin-calendar-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

#admin-calendar,
.reservation-details,
.admin-add-reservation {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
}

.reservation-details,
.admin-add-reservation {
    margin-top: 20px;
}

#reservation-data h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#reservation-data p {
    margin: 8px 0;
    line-height: 1.5;
}

#reservation-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#admin-reservation-message {
    margin-top: 15px;
}

.notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid;
}

.notice-success {
    border-color: #46b450;
    background-color: #ecf7ed;
}

.notice-error {
    border-color: #dc3232;
    background-color: #fbeaea;
}