/* Previo Availability Box Widget */
:root {
    --previo-bg: #ffffff;
    --previo-text: #1e293b;
    --previo-accent: #38bdf8;
    --previo-border: #e2e8f0;
    --previo-success: #22c55e;
    --previo-danger: #ef4444;
}

.previo-widget {
    background-color: var(--previo-bg);
    border: 1px solid var(--previo-border);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 20px auto;
}

.previo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--previo-border);
    padding-bottom: 10px;
}

.previo-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--previo-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.previo-week {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.previo-content {
    min-height: 100px;
}

/* Loading State */
.previo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #64748b;
    font-size: 0.9rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--previo-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results State */
.previo-days {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.previo-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.previo-day:last-child {
    border-bottom: none;
}

.previo-day-date {
    display: flex;
    flex-direction: column;
}

.day-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--previo-text);
}

.day-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.previo-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.status-available {
    background-color: #dcfce7;
    color: #166534;
}

.status-full {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer & Button */
.previo-footer {
    margin-top: 20px;
    text-align: center;
}

.previo-btn {
    display: inline-block;
    width: 100%;
    background-color: var(--previo-accent);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: center;
}

.previo-btn:hover {
    background-color: #0ea5e9;
    text-decoration: none;
}