@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);

body {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

#widget_container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#widget_container #widget_header {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

#widget_container #widget_footer {
    background-color: #f5f5f5;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

#widget_container h1.title a {
    font-family: 'Noto Sans TC', sans-serif;
    color: #333;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

#events h3 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 20px;
    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;
    margin-bottom: 5px;
}

#events p.description, #events div.description {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    margin-top: 8px;
    max-height: 4.2em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-out;
}

#events p.description::after, #events div.description::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 3px;
    background-color: #fff;
}

#events p.description.expanded, #events div.description.expanded {
    max-height: none;
}

#events p.description.expanded::after, #events div.description.expanded::after {
    display: none;
}

#events .selectedEvent {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

#events input.reserve_time_btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
}

#events input.reserve_time_btn:hover {
    background-color: #45a049;
}

#events input.select_another_btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
}

#events input.select_another_btn:hover {
    background-color: #d32f2f;
}

#eventForm #start_date-block-container h3, #eventForm #timeline-container h3 {
    font-size: 18px;
    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;
    width: 100%;
    margin-top: 15px;
    border-radius: 4px;
}

#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 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#timeline-container table.timeline {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.timeline td {
    padding: 8px;
    font-size: 14px;
    text-align: center;
}

.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;
}

#events .event_price {
    font-size: 16px;
    color: #e91e63;
    font-weight: bold;
    margin-top: 8px;
}

#eventForm dd.extention_data {
    margin-left: 0;
    margin-bottom: 15px;
}

dd.extention_data dl.zend_form dt, 
dd.extention_data dl.zend_form dd label {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.toggle-details {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    padding: 5px 0;
    font-size: 14px;
    display: block;
    width: 100%;
    text-align: left;
    margin-top: 5px;
}

.toggle-details:focus {
    outline: none;
}

@media (max-width: 768px) {
    #widget_container {
        padding: 5px;
    }

    #widget_container h1.title a {
        font-size: 20px;
    }

    #events h3 {
        font-size: 18px;
    }

    #events p.description, #events div.description {
        font-size: 13px;
    }

    #events input.reserve_time_btn,
    #events input.select_another_btn,
    #eventForm #save_button {
        font-size: 14px;
        padding: 10px;
    }

    .timeline td {
        padding: 6px;
        font-size: 12px;
    }

    #events .event_price {
        font-size: 14px;
    }
}