/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


/* Sovrascrittura variabili CSS Bootstrap per tema URBE */
:root {
    /* Colori primari basati sul design URBE */
    --bs-primary: #e53e3e; /* Rosso del bottone "Progetti" */
    --bs-primary-rgb: 229, 62, 62;

    /* Colori secondari */
    --bs-secondary: #4a5568; /* Grigio scuro per contrasto */
    --bs-secondary-rgb: 74, 85, 104;

    /* Colori di successo (verde compatibile) */
    --bs-success: #38a169;
    --bs-success-rgb: 56, 161, 105;

    /* Info (blu compatibile con il tema) */
    --bs-info: #3182ce;
    --bs-info-rgb: 49, 130, 206;

    /* Warning (arancione che richiama i toni caldi) */
    --bs-warning: #dd6b20;
    --bs-warning-rgb: 221, 107, 32;

    /* Danger (rosso più scuro del primary) */
    --bs-danger: #c53030;
    --bs-danger-rgb: 197, 48, 48;

    /* Colori di sfondo */
    --bs-light: #f7fafc;
    --bs-light-rgb: 247, 250, 252;

    --bs-dark: #2d3748;
    --bs-dark-rgb: 45, 55, 72;

    /* Gradazioni del primary per hover, focus, etc. */
    --bs-primary-text-emphasis: #a91e1e;
    --bs-primary-bg-subtle: #fdf2f2;
    --bs-primary-border-subtle: #f5c6c6;

    /* Link colors */
    --bs-link-color: #e53e3e;
    --bs-link-hover-color: #c53030;

    /* Border colors */
    --bs-border-color: #e2e8f0;
}

/* Classi aggiuntive per il tema URBE */
.btn-urbe-primary {
    background-color: #e53e3e;
    border-color: #e53e3e;
    color: white;
}

.btn-urbe-primary:hover {
    background-color: #c53030;
    border-color: #c53030;
    color: white;
}

.btn-urbe-secondary {
    background-color: white;
    border-color: #e2e8f0;
    color: #2d3748;
}

.btn-urbe-secondary:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    color: #1a202c;
}

/* Colori di testo personalizzati */
.text-urbe-primary {
    color: #e53e3e !important;
}

.text-urbe-dark {
    color: #2d3748 !important;
}

.text-urbe-muted {
    color: #718096 !important;
}

/* Background personalizzati */
.bg-urbe-primary {
    background-color: #e53e3e !important;
}

.bg-urbe-light {
    background-color: #f7fafc !important;
}

.bg-urbe-overlay {
    background: linear-gradient(rgba(45, 55, 72, 0.7), rgba(45, 55, 72, 0.7));
}

/* Alert personalizzati */
.alert-urbe {
    color: #2d3748;
    background-color: #fdf2f2;
    border-color: #f5c6c6;
}

/* Card con stile URBE */
.card-urbe {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0 !important; /* Angoli squadrati anche per le card */
}

.card-urbe:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease-in-out;
}

/* Override globale per tutti gli elementi arrotondati Bootstrap */
.card {
    border-radius: 0 !important;
}

.alert {
    border-radius: 0 !important;
}

.form-control {
    border-radius: 0 !important;
}

.form-select {
    border-radius: 0 !important;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.membership-form {
    margin: 0;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.card {
    border: 1px solid #dee2e6;
}

.card-header {
    border-bottom: 1px solid #dee2e6;
}

.btn-group .btn {
    border-radius: 0 !important;
}

.btn-group .btn:not(:last-child) {
    margin-right: 2px;
}

.btn {
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .table-responsive {
        max-height: 400px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        margin-bottom: 2px;
        margin-right: 0;
    }
}