/* CSS personalizzato per il modulo CISM */

:root {
    --cism-primary: #2972a3;
    --cism-primary-dark: color-mix(in srgb, var(--cism-primary) 80%, black);
}

/* Stili per la pagina eventi */
.cism-event-page {
    background-color: #f8f9fa;
}

.cism-event-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.cism-main-card {
    border: none;
    box-shadow: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    transition: transform 0.2s ease-in-out;
}

.cism-main-card:hover {
    transform: translateY(-2px);
}

.cism-main-card .card-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cism-coordinator-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #6c757d;
}

.cism-coordinator-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.cism-coordinator-function {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Stili per il menu laterale */
.cism-sidebar-menu {
    background: white;
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
}

.cism-sidebar-menu .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.cism-sidebar-menu .nav-link:hover {
    background-color: #f8f9fa;
    border-left-color: var(--cism-primary-dark);
    color: var(--cism-primary-dark);
}

.cism-sidebar-menu .nav-link.active {
    background-color: var(--cism-primary);
    color: white;
    border-left-color: var(--cism-primary-dark);
}

.cism-sidebar-menu .nav-link i {
    width: 20px;
    text-align: center;
}

/* Stili per il form di registrazione */
.cism-registration-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.cism-form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cism-form-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cism-ticket-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cism-ticket-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.cism-ticket-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cism-ticket-price {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}

.cism-ticket-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cism-ticket-availability {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Stili per i pulsanti */
.cism-btn-primary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.cism-btn-primary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

.cism-btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cism-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Stili per le alert */
.cism-alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cism-alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.cism-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Stili responsive */
@media (max-width: 768px) {
    .cism-event-title {
        font-size: 1.5rem;
    }
    
    .cism-sidebar-menu {
        margin-bottom: 2rem;
    }
    
    .cism-registration-form {
        padding: 1rem;
    }
    
    .cism-form-section {
        padding: 1rem;
    }
    
    .cism-main-card {
        padding: 1rem;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cism-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Stili per le icone */
.cism-icon {
    color: #6c757d;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
}

.cism-icon:hover {
    color: #495057;
}

/* Stili per il testo */
.cism-text-muted {
    color: #6c757d;
}

.cism-text-primary {
    color: #6c757d;
}

.cism-text-secondary {
    color: #6c757d;
}

/* Stili per i badge */
.cism-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.cism-badge-primary {
    background-color: #667eea;
    color: white;
}

.cism-badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Stili per le tabelle */
.cism-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cism-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 1rem;
}

.cism-table td {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

.cism-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Stili specifici per sidebar */
.cism-sidebar-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.cism-sidebar-card .card-title {
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

/* Riduce drasticamente la dimensione degli h2 nella sidebar */
.cism-sidebar-card h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cism-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* Riduce anche h3 nella sidebar per coerenza */
.cism-sidebar-card h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
