/* Loader for slots */
.abp-loader{display:flex;align-items:center;gap:12px;justify-content:center;padding:16px;color:#444}
.abp-spinner{width:20px;height:20px;border:3px solid #e5e5e5;border-top-color:#0073aa;border-radius:50%;animation:abp-spin 1s linear infinite}
@keyframes abp-spin{to{transform:rotate(360deg)}}
.abp-loader-text{font-weight:600}
/**
 * Frontend Styles for Astro Booking Pro
 */

.astro-booking-form-wrapper {
    
}

.astro-booking-form-wrapper h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: #666;
    color: var(--white);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Custom Date Picker */
.astro-date-picker-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 0;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.calendar-navigation h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary);
    text-align: center;
    flex: 1;
}

.calendar-nav-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: var(--primary);
}

.calendar-nav-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
}

.calendar-weekdays > div {
    text-align: center;
}

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

.calendar-day {
    text-align: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.3s;
}

.calendar-day:hover {
    background: #e0f0ff;
    border-color: var(--primary);
}

.calendar-day.selected {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.calendar-day.disabled {
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.past {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary);
    background: #f0f8ff;
}

.time-slot.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.time-slot.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ffcccc;
    color: var(--red);
    text-decoration: line-through;
    border-color: var(--red);
}

.time-slot.unavailable-pending {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--white)4cc;
    color: var(--yellow);
    text-decoration: line-through;
    border-color: var(--yellow);
}

.time-slot.available-pending {
    background: var(--white)be5;
    border-color: var(--yellow);
    color: var(--yellow);
}

.time-slot.available {
    cursor: pointer;
    transition: all 0.3s ease;
    background: #90EE90;
    border-color: #008000;
}

.time-slot.available:hover {
    background: #e0f0ff;
    border-color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.time-slot .slot-status {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.8;
    padding: 0;
    color: inherit;
}

.time-slot.selected .slot-status {
    color: rgba(255, 255, 255, 0.9);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.alert-error p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 22px;
    line-height: 30px;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--dark);
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}
.modal-content .close{
    position: absolute;
    right: 20px;
}

.close {
    color: #000;
    float: right;
    font-size: 32px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Login Form */
.astro-booking-login {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.astro-booking-login h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* User Dashboard */
.astro-user-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.booking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.booking-tabs li {
    list-style: none;
}

.tab-link {
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.booking-header h3 {
    margin: 0;
    color: var(--primary);
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-pending {
    background-color: var(--yellow);
    color: var(--dark);
}

.status-badge.status-confirmed {
    background-color: #28a745;
    color: var(--white);
}

.status-badge.status-cancelled {
    background-color: #dc3545;
    color: var(--white);
}

.booking-details p {
    margin: 10px 0;
}

/* Full Width Blocked Message */
.blocked-message-fullwidth {
    width: 100%;
    margin-bottom: 20px;
    clear: both;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .calendar-day{
        padding: 5px;
    }
    
    .blocked-alert-fullwidth {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .blocked-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .blocked-content h4 {
        font-size: 18px;
    }
    
    .blocked-content p {
        font-size: 14px;
    }
}

