/* SDL Booking Form Styles */

.booking-form {
    font-family: Arial, sans-serif;
}

.member-input {
    transition: border-color 0.3s ease;
}

.member-input:focus {
    border-color: #2E7D32;
    outline: none;
}

.booking-container {
    width: 900px;
    margin: 0 auto;
    border: 1px solid #ccc;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.booking-header {
    background: #2E7D32;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-content {
    padding: 30px;
}

.time-section {
    margin-bottom: 30px;
}

.time-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.time-label {
    width: 60px;
    margin-right: 15px;
    font-weight: bold;
    font-size: 16px;
}

.time-dropdown {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 150px;
    font-size: 14px;
}

.members-section {
    margin-bottom: 30px;
}

.members-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.member-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.member-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 14px;
}

.remove-button {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.remove-button:hover {
    background: #1976D2;
}
.booking-button {
    width: 100%;
    background: #2E7D32;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .booking-button:hover {
        background: #1B5E20;
    }

.validation-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #f44336;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Autocomplete styling */
.student-selected {
    background-color: #e8f5e8 !important;
    border-color: #4caf50 !important;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    position: absolute;
    cursor: default;
}

.ui-autocomplete .ui-menu-item {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.ui-autocomplete .ui-menu-item:hover {
    background-color: #f5f5f5;
}

/* Calendar Booking Display Styles */
.sdl-booking-description {
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

.sdl-booking-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 3px;
}

.sdl-booking-detail {
    color: #666;
    margin-bottom: 2px;
}

.sdl-booking-group-members {
    color: #000;
}

/* Blocked Booking Styles */
.blocked-booking-description {
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

.blocked-booking-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 3px;
}

.blocked-booking-detail {
    color: #000;
    margin-bottom: 2px;
}

/* SDL Booking Action Buttons */
.sdl-booking-actions {
    display: flex;
    gap: 3px;
}

.sdl-booking-actions .btn {
    padding: 1px 4px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: normal;
}

.sdl-booking-actions .btn img {
    width: 12px;
    height: 12px;
}

.sdl-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

/* SDL Booking Edit Page Styles */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-close:hover {
    background-color: #218838;
}

.btn-update {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-right: 15px;
    min-width: 120px;
}

.btn-update:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    min-width: 120px;
}

.btn-cancel:hover {
    background-color: #218838;
}


.owner-label {
    color: #666;
    font-style: italic;
}

.booking-footer {
    padding: 15px 30px;
}

.owner-input {
    background-color: #f5f5f5;
    color: #666;
}

/* Section header styles */
.section-header th {
    height: 26px;
}

/* Message panel styles */
.message-panel {
    margin: 15px 30px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.alert .close {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* JavaScript validation error styles */
.validation-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
