/*
	Custom CSS
	Please make sure your CSS rules are 
	more particular / have higher priority
	then other page styles
*/
#events h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

#events p.duration, #events div.duration {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

#events p.description, #events div.description {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    margin-top: 10px;
}

#events .selectedEvent {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 10px;
    margin-bottom: 15px;
}

#events input.reserve_time_btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#events input.reserve_time_btn:hover {
    background-color: #45a049;
}

#events input.select_another_btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#events input.select_another_btn:hover {
    background-color: #d32f2f;
}

#eventForm #start_date-block-container h3, #eventForm #timeline-container h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

#eventForm #save_button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#eventForm #save_button:hover {
    background-color: #1976D2;
}

div.ui-widget-content {
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
}

div.ui-widget-header {
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
    font-weight: bold;
}

#timeline-container table.timeline {
    width: 100%;
    border-collapse: collapse;
}

.timeline td.not_worked_time {
    background-color: #f0f0f0;
}

.timeline td.free_time {
    background-color: #e8f5e9;
    cursor: pointer;
}

.timeline td.selected_time {
    background-color: #c8e6c9;
    border: 2px solid #4CAF50;
}

.timeline td.reserved_time {
    background-color: #ffcdd2;
}

div#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#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;
    margin-bottom: 5px;
}