/**
 * Open Night - Stili CSS
 */

/* Variabili */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Reset e Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.hero-section h1 {
    font-weight: 700;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .card {
    background: rgba(255, 255, 255, 0.95);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.settore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slot-card {
    border-left-width: 4px;
}

.slot-card:hover {
    transform: scale(1.02);
}

/* Bottoni */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-2px);
}

/* Form */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: 1px solid #eee;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Badge */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    margin-top: auto;
}

/* Icone settore */
.settore-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(102, 126, 234, 0.1);
}

/* Alert personalizzati */
.alert {
    border: none;
    border-radius: 10px;
}

.alert-info {
    background-color: #e8f4fd;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff8e1;
    color: #856404;
}

.alert-success {
    background-color: #e8f5e9;
    color: #155724;
}

.alert-danger {
    background-color: #ffebee;
    color: #721c24;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .settore-icon {
        width: 60px;
        height: 60px;
    }
    
    .settore-icon i {
        font-size: 2rem !important;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease forwards;
}

/* Card colori per stato disponibilità */
.slot-disponibile {
    border-left-color: var(--success-color) !important;
}

.slot-esaurito {
    border-left-color: var(--danger-color) !important;
    opacity: 0.8;
}

/* Hover effects */
.settore-card .card-footer {
    transition: all 0.3s ease;
}

.settore-card:hover .card-footer {
    background-color: rgba(102, 126, 234, 0.05) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
