/* Main styles for #events */
#events h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#events p.duration, #events div.duration {
    font-size: 16px;
    color: #888;
    font-weight: 400;
    margin-bottom: 4px;
}

#events p.description, #events div.description {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 12px;
}

#events .selectedEvent {
    background-color: #f0f0f5;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

#events input.reserve_time_btn {
    background-color: #007AFF;
    border: none;
    padding: 12px 24px;
    color: white;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#events input.reserve_time_btn:hover {
    background-color: #0051a2;
}

#events input.select_another_btn {
    background-color: #f2f2f7;
    border: none;
    padding: 12px 24px;
    color: #007AFF;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#events input.select_another_btn:hover {
    background-color: #e0e0e5;
}

/* Event form section */
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3 {
    font-size: 22px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Save button styling */
#eventForm #save_button {
    background-color: #34C759;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#eventForm #save_button:hover {
    background-color: #28a745;
}

/* Widget styling */
div.ui-widget-content {
    border-radius: 8px;
    background-color: #f7f7f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

div.ui-widget-header {
    background-color: #f0f0f5;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    color: #333;
}

/* Timeline styling */
#timeline-container table.timeline {
    width: 100%;
    border-collapse: collapse;
}

.timeline td {
    padding: 16px;
    text-align: center;
    border-radius: 12px;
}

.timeline td.not_worked_time {
    background-color: #f2f2f7;
}

.timeline td.free_time {
    background-color: #d1ffd1;
}

.timeline td.selected_time {
    background-color: #007AFF;
    color: white;
}

.timeline td.reserved_time {
    background-color: #ff3b30;
    color: white;
}

/* Loading spinner styling */
div#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #007AFF;
    font-weight: 600;
}

/* Date block and form styling */
#start_date-block-container .zend_form dt,
#start_date-block-container .zend_form dt b,
#start_date-block-container .zend_form dd label {
    font-size: 16px;
    color: #333;
}

/* General form styling */
input, select, textarea {
    font-size: 16px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #f7f7f8;
    width: 100%;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #007AFF;
    outline: none;
}

