/* Alert Styles */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 9999;
    animation: slideInDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.alert-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert span {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.alert-close:hover {
    background: rgba(255,255,255,0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading-calendar,
.loading-slots,
.no-slots,
.error-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
}

.loading-calendar:before,
.loading-slots:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-slots,
.error-slots {
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.error-slots {
    color: #f44336;
    border-color: #f44336;
    background: #ffebee;
}

/* Mobile Responsive for Alerts */
@media (max-width: 768px) {
    .alert {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .alert i {
        font-size: 1rem;
    }
    
    .alert-close {
        width: 20px;
        height: 20px;
        font-size: 1.2rem;
    }
}