/* Dashboard for Check Availability */
.rnb-availability-link-wrapper {
    margin: 10px 0;
}

.rnb-check-availability {
    color: #007bff;
    text-decoration: underline;
    font-size: 0.9em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rnb-check-availability:hover {
    color: #0056b3;
}

/* Modal Styling */
.rnb-availability-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.rnb-availability-modal.active {
    display: flex;
}

.rnb-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: modalScaleUp 0.3s ease-out;
}

@keyframes modalScaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.rnb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.rnb-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

.rnb-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.rnb-modal-close:hover {
    color: #333;
}

/* Modal Body */
.rnb-qty-selector {
    margin-bottom: 20px;
}

.rnb-qty-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.rnb-qty-selector input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

/* Calendar Styling */
.rnb-calendar-wrapper {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.rnb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rnb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.rnb-day-labels span {
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
    color: #888;
    padding: 5px 0;
}

.rnb-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.rnb-day-number {
    font-weight: 600;
    margin-bottom: 2px;
}

.rnb-day-avail {
    font-size: 0.75em;
    font-weight: normal;
    opacity: 0.85;
}

.rnb-day:hover {
    background: #e0e0e0;
}

.rnb-day.empty {
    cursor: default;
}

.rnb-day.empty:hover {
    background: none;
}

.rnb-day.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.rnb-day.available:hover {
    background: #c8e6c9;
}

.rnb-day.partial {
    background: #fff3e0;
    color: #ef6c00;
}

.rnb-day.full {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.rnb-day.selected {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

.rnb-day-dot {
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

/* Time Slots */
.rnb-time-slots {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.rnb-time-slots.active {
    display: block;
}

.rnb-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.rnb-time-item:last-child {
    border-bottom: none;
}

.rnb-time-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.rnb-time-status.available { background: #4caf50; }
.rnb-time-status.booked { background: #f44336; }

.rnb-time-info {
    display: flex;
    align-items: center;
}

.rnb-time-avail-text {
    font-size: 0.85em;
    color: #666;
}

/* Loading animation */
.rnb-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.rnb-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 123, 255, 0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    -webkit-animation: rnb-spin 1s linear infinite !important;
    animation: rnb-spin 1s linear infinite !important;
}

@keyframes rnb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
