/* Root Variables for Theme Colors */
/* Root Variables for Cosmic Theme Colors */
:root {
    --primary-color: #1e3a8a; /* Space Blue */
    --secondary-color: #64748b; /* Slate Gray */
    --background-light: #f5f5f5; /* Gray-Washed White */
    --border-color: #d1d5db; /* Light Gray for borders */
    --hover-primary: #334155; /* Darker Slate Gray */
    --text-dark: #1e293b; /* Dark Space Blue */
    --text-muted: #94a3b8; /* Muted Slate */
    --free-time-bg: #e0f2fe; /* Light Blue Wash */
    --reserved-time-bg: #fecaca; /* Soft Red Wash */
    --selected-time-bg: #fde68a; /* Warm Yellow */
    --text-gradient-start: #a5b4fc; /* Start of the gradient */
    --text-gradient-end: #818cf8; /* End of the gradient 

/* Ensure all event descriptions are fully visible */
#events p.description,
#events div.description {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    height: auto; /* Ensure no height restrictions */
    max-height: none; /* Remove any imposed max height */
    overflow: visible; /* Ensure no content is hidden */
    white-space: normal; /* Allow text to wrap */
}
}

/* Utility Classes for Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-primary);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--hover-secondary);
}

.btn-highlight {
    background-color: var(--highlight-color);
}

/* Scoped Styles for the Events Section */
#events h3 {
    text-align: center;
    font-size: 1.5em;
    color: var(--text-dark);
}

#events p.duration,
#events div.duration {
    font-size: 1.2em;
    color: var(--text-muted);
}

#events p.description,
#events div.description {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
}

#events .selectedEvent {
    background-color: #f0f8ff;
    border: 1px solid #add8e6;
    padding: 10px;
    border-radius: 5px;
}

/* Button Styling within Events */
#events input.reserve_time_btn {
    @extend .btn;
    @extend .btn-primary;
}

#events input.select_another_btn {
    @extend .btn;
    @extend .btn-secondary;
}

/* Event Pricing */
#events .event_price {
    font-size: 1.5em;
    color: #28a745;
    font-weight: bold;
    text-align: center;
}

/* Event Form Specific Styles */
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3 {
    font-size: 1.3em;
    color: var(--text-dark);
}

#eventForm #save_button {
    @extend .btn;
    @extend .btn-highlight;
}

/* Timeline Styles */
#timeline-container table.timeline {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid var(--border-color);
}

.timeline td.not_worked_time {
    display: none;
}

.timeline td.free_time {
    background-color: var(--free-time-bg);
    text-align: center;
    padding: 8px;
}

.timeline td.selected_time {
    background-color: var(--selected-time-bg);
    text-align: center;
    padding: 8px;
}

.timeline td.reserved_time {
    background-color: var(--reserved-time-bg);
    text-align: center;
    padding: 8px;
}

/* Widget Container Styles */
#widget_container {
    margin: 0 auto;
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#widget_container #widget_header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

#widget_container #widget_header a:hover,
#widget_container #widget_footer a:hover {
    color: var(--hover-secondary);
    text-decoration: underline;
}

#widget_container #widget_footer {
    font-size: 1em;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

#widget_container h1.title a {
    color: var(--text-dark);
    text-decoration: none;
}

/* Extension Data Styling */
#eventForm dd.extention_data {
    margin-top: 10px;
    font-size: 1em;
    color: var(--text-dark);
}

dd.extention_data dl.zend_form dt,
dd.extention_data dl.zend_form dd label {
    font-size: 0.9em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

/* Custom Styles for the Calendar View */
#widget_container .calendar-view {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Show only Fridays */
    gap: 10px;
}

#widget_container .calendar-view .day {
    display: none; /* Hide all other days */
}

#widget_container .calendar-view .friday {
    display: block;
    background-color: #e8f5e9;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}

#widget_container .calendar-view .friday:hover {
    background-color: #c8e6c9;
    cursor: pointer;
}

/* Loading Indicator */
div#loading {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-muted);
}