.admin-panel {
    margin-bottom: 2.5rem;
    text-align: center;
}

#csrfCarrier {
    display: none;
}

.admin-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: .8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s ease;
    text-decoration: none;
    display: inline-block;
}

.admin-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.admin-btn--success {
    background: #4CAF50;
}

.admin-btn--success:hover {
    background: #43A047;
}

.admin-btn--warning {
    background: #FF9800;
}

.admin-btn--warning:hover {
    background: #FB8C00;
}

.admin-btn--info {
    background: #2196F3;
}

.admin-btn--info:hover {
    background: #1E88E5;
}

.admin-btn--danger {
    background: #f44336;
}

.admin-btn--danger:hover {
    background: #E53935;
}

.admin-btn--brown {
    background: #795548;
}

.admin-btn--brown:hover {
    background: #6D4C41;
}

.admin-btn--small {
    padding: .4rem .8rem;
    font-size: .9rem;
}

.calendar-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calendar {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    height: fit-content;
}

.time-slots-container {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    height: fit-content;
}

.time-slots-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.time-slots-reload {
    margin-top: .5rem;
}

.time-slots-header h3 {
    color: #333;
    margin: 0 0 .5rem 0;
}

#selectedDateInfo {
    color: #667eea;
    font-weight: 700;
    margin: 0;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-top: 1.5rem;
}

.time-slot {
    padding: .8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    background: #fff;
}

.time-slot:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.time-slot.free {
    background: #E8F5E8;
    border-color: #4CAF50;
}

.time-slot.busy {
    background: #FFEBEE;
    border-color: #F44336;
    cursor: not-allowed;
    opacity: .6;
}

.time-slot.selected {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.no-selection {
    text-align: center;
    color: #666;
    padding: 2rem;
    grid-column: 1 / -1;
}

.booking-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    display: none;
}

#bookingForm {
    display: none;
}

#bookingSummary {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: .8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s ease;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header button {
    background: #667eea;
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.calendar-header h3 {
    color: #333;
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 1rem;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 700;
    color: #667eea;
    padding: 1rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .5rem;
    cursor: pointer;
    transition: all .3s ease;
}

.calendar-day.past:hover,
.calendar-day.free:hover,
.calendar-day.busy:hover,
.calendar-day.partial:hover,
.calendar-day.off:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.calendar-day.past {
    opacity: .5;
    cursor: default;
    background: #f5f5f5;
}

.calendar-day.free {
    background: #E8F5E8;
    border-color: #4CAF50;
}

.calendar-day.partial {
    background: #FFF3E0;
    border-color: #FF9800;
}

.calendar-day.off {
    background: #FFEBEE;
    border-color: #F44336;
    cursor: default;
}

.calendar-day.selected {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.day-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.calendar-day.selected .day-number {
    color: #fff;
}

.day-status {
    font-size: .8rem;
}

.calendar-day.selected .day-status {
    color: rgba(255,255,255,.9);
}

.calendar-container .calendar {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.month-btn {
    width: 40px;
    height: 40px;
    background: #667eea;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.month-btn img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.legend {
    margin-top: 2rem;
    text-align: center;
}

.legend-items {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-color--free {
    background: #4CAF50;
}

.legend-color--partial {
    background: #FF9800;
}

.legend-color--off {
    background: #F44336;
}

.legend-color--past {
    background: #9E9E9E;
}

.booking-info {
    margin-top: 1rem;
}

.link-primary {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}
