/* Schedule View Wrapper */
.wpsb-schedule-calendar {
    font-family: 'Quicksand', sans-serif;
    margin: 20px auto;
    max-width: 900px;
}

/* Passcode Form */
.wpsb-passcode-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center;
}
.wpsb-passcode-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.wpsb-passcode-form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.wpsb-passcode-form button {
    padding: 10px 20px;
    border: none;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
.wpsb-error-message {
    color: #d9534f;
    font-weight: bold;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header h2 {
    margin: 0;
    font-weight: 700;
}
.calendar-header a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}

/* Calendar Table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar-table th, .calendar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
    height: 120px;
}
.calendar-table th {
    background-color: #f5f5f5;
    font-weight: 700;
    text-align: center;
}
.calendar-table td {
    background-color: #fff;
}
.calendar-table td:empty {
    background-color: #f9f9f9;
}

/* Day Number */
.day-number {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-align: right;
}

/* Events List */
.day-events {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    font-size: 12px;
}
.day-events li {
    background-color: #e7f5ff;
    border-left: 3px solid #0073aa;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
}
.day-events li:hover {
    background-color: #d0e9f8;
}
.day-events li.assigned {
    border-left-color: #4CAF50; /* Green for assigned */
    background-color: #e8f5e9;
}


/* --- MODAL STYLES --- */
.wpsb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wpsb-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}
.wpsb-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wpsb-modal-header h2 {
    margin: 0;
    font-size: 18px;
}
.wpsb-modal-close {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    cursor: pointer;
    opacity: 0.3;
}
.wpsb-modal-close:hover {
    opacity: 1;
}
.wpsb-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.wpsb-modal-body hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #eee;
}
#wpsb-appointment-details p {
    margin: 0 0 10px 0;
}
#wpsb-appointment-details strong {
    font-weight: 700;
}
.wpsb-modal-body .form-group {
    margin-bottom: 15px;
}
.wpsb-modal-body .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}
.wpsb-modal-body .form-group select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.wpsb-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}
.wpsb-modal-footer .button {
    margin-left: 10px;
}
