/* ========================================
   1. LAYOUT DI BASE
   ======================================== */

/* Rimozione margini tra colonne */
.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
    padding-right: 0;
    padding-left: 0;
}

/* Classe utilità per rimuovere padding */
.no-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Container principale dei contenuti con footer sticky */
.content-container {
    padding: 20px 30px;
    min-height: calc(100vh - 80px); /* Altezza totale meno header */
    background-color: #f5f5f5;
    position: relative;
    padding-bottom: 70px; /* Spazio per footer */
}

/* ========================================
   2. HEADER E FOOTER
   ======================================== */

/* Header container */
.header-container {
    height: 80px;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Footer con posizionamento assoluto */
.footer-container {
    width: 100%;
    background-color: #f5f5f5;
    border-top: 1px solid #e7e7e7;
    padding: 15px 0;
    font-size: 12px;
    color: #777;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Contenuto del footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

/* Link nel footer */
.footer-links a {
    color: #777;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #079181;
}

.footer-links .separator {
    margin: 0 5px;
}

/* Navbar fissa in basso */
.fixed-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e7e7e7;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.fixed-bottom-navbar .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
}

.navbar-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.navbar-buttons .btn {
    min-width: 150px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   3. CONTENUTI PAGINA
   ======================================== */

/* Riga dell'header della pagina */
.page-header-row {
    margin-bottom: 20px;
}

/* Stile breadcrumb */
.breadcrumb {
    background: none;
    padding: 8px 0;
    margin-bottom: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #333;
}

.breadcrumb > .active {
    color: #333;
    font-weight: 600;
}

/* Titolo della pagina */
.page-title {
    margin: 0 0 15px 0;
    color: #00427f;
    font-size: 24px;
    font-weight: 600;
    display: block;
    text-align: left;
}

/* Pulsanti di azione */
.action-buttons {
    text-align: right;
    margin-top: 10px;
}

/* Pulsante indietro */
.back-button {
    display: inline-block;
}

/* Riga con titolo e pulsanti */
.title-actions-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.title-actions-row .page-title {
    margin: 0;
}

.title-actions-row .action-buttons {
    text-align: right;
}

.title-actions-row .action-buttons .btn {
    margin-left: 10px;
}

/* Stile tabelle */
.table th {
    text-align: center;
    background-color: #f5f5f5;
}

.table td {
    text-align: center;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-bordered {
    border: 1px solid #ddd;
}

/* Menu dropdown */
.dropdown-menu {
    width: 220px;
    padding: 0;
}

.dropdown-menu > li > a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.dropdown-menu > li > a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.dropdown-menu > li > a.disabled {
    color: #aaa;
    cursor: not-allowed;
}

/* Stato vuoto */
.empty-state {
    padding: 50px 20px;
    color: #888;
}

.empty-state i {
    margin-bottom: 20px;
    color: #ddd;
}

/* ========================================
   4. CARD E CONTAINER
   ======================================== */

/* Container card generico */
.card-container {
    display: block;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Container immagine con aspect ratio quadrato */
.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Crea un aspect ratio quadrato */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay dell'immagine */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,112,119,.6);
    pointer-events: none;
}

/* Titolo della card */
.card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 10px 15px;
    text-align: center;
    font-weight: 500 !important;
    font-size: 25px !important;
    color: white;
    z-index: 2;
    width: 80%;
    transition: all 0.3s ease;
}

.card-container:hover .card-title {
    transform: translate(-50%, -50%) scale(1.05);
}

.card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.card-container:hover .card-title:after {
    width: 50px;
}

/* ========================================
   5. COMPONENTI PER PROFILO CLIENTE
   ======================================== */

/* Layout profilo moderno */
.profile-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-header {
    background-color: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.profile-header h3 {
    color: #00427f;
    font-weight: 600!important;
    margin: 0;
    font-size: 22px;
}

.profile-header .subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

.profile-body {
    padding: 25px 30px;
}

/* Sezioni del profilo */
.profile-section {
    margin-bottom: 30px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.section-title h4 {
    color: #00427f;
    font-weight: 600!important;
    margin: 0;
    font-size: 18px;
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    opacity: 0.8;
}

/* Avatar del profilo */
.profile-avatar {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.profile-avatar img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

/* Componenti per upload */
.upload-container {
    padding: 20px;
}

.upload-btn {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.upload-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.upload-btn i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-btn p {
    margin: 0;
    color: #495057;
}

.file-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.file-info p {
    margin: 0;
    font-size: 14px;
}

/* Stile dei form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500!important;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    height: 42px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    font-size: 15px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.field-error {
    border-color: #dc3545;
}

/* Messaggi di errore */
.alert-validation {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

/* Barre di progresso */
.progress {
    height: 8px;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #28a745;
}

/* Footer delle azioni */
.action-footer {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #eaeaea;
    text-align: right;
}

.action-footer .btn {
    margin-left: 10px;
}

/* Layout per profilo cliente */
.customer-profile-layout {
    display: flex;
    margin: 0 -15px;
}

/* Colonna per il logo */
.customer-logo-column {
    width: 250px;
    padding: 0 15px;
    position: relative;
}

/* Container per l'anteprima del logo con effetto hover */
.logo-preview-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.logo-preview-container img {
    max-height: 200px;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Overlay del logo */
.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 66, 127, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-overlay span {
    color: white;
    font-weight: bold!important;
    font-size: 18px;
    text-transform: uppercase;
}

.logo-preview-container:hover .logo-overlay {
    opacity: 1;
}

.logo-upload-btn {
    display: none;
}

/* Colonna informazioni cliente */
.customer-info-column {
    flex: 1;
    padding: 0 15px;
}

/* Sezione nome cliente */
.customer-name-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.customer-name-section .form-group {
    margin-bottom: 0;
}

.section-title {
    font-size: 22px;
    font-weight: 600!important;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Sezione informazioni cliente */
.customer-info-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.customer-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Disclaimer logo */
.logo-disclaimer {
    margin-top: 10px;
    text-align: center;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

/* Stile input nome azienda */
.business-name-input {
    font-size: 18px !important;
    font-weight: 600 !important;
    height: 50px !important;
    padding: 10px 15px !important;
}

/* ========================================
   6. LAYOUT QUOTE/PREVENTIVI
   ======================================== */

/* Card preventivo moderna - Layout orizzontale */
.quote-card {
    background: #fff;
    border-radius: 0; /* Angoli quadrati anziché arrotondati */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.quote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Layout orizzontale della card */
.quote-card.horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative; /* Per il bordo indicatore di completamento */
}

/* Indicatore bordo di completamento */
.quote-card.horizontal:before {
    content: '';
    position: absolute;
    left: 120px; /* Larghezza dell'immagine */
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #ccc; /* Grigio di default per incompleto */
}

.quote-card.horizontal.complete:before {
    background-color: #079181; /* Colore primario per completo */
}

/* Immagine della card */
.quote-card-image {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 120px;
    overflow: hidden;
}

.quote-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay dell'immagine diverso per preventivi completi/incompleti */
.quote-card:not(.complete) .quote-card-image img {
    filter: grayscale(100%) opacity(0.9);
    transition: filter 0.3s ease;
}

.quote-card:not(.complete) .image-overlay {
    background: rgba(0,0,0,0.2); /* Overlay più leggero per preventivi non completi */
}

.quote-card.complete .image-overlay {
    background: rgba(0,112,119,.6); /* Overlay colore primario per completi */
}

/* Contenuto della card preventivo */
.quote-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 5px; /* Spazio per l'indicatore di completamento */
    position: relative; /* Per posizionare correttamente la barra di azioni */
    padding-bottom: 50px; /* Spazio per la barra di azioni */
}

/* Header della card preventivo */
.quote-card-header {
    margin-top: 0;
    display: flex;
    padding: 15px 15px 5px;
    justify-content: space-between;
}

.quote-card-title {
    flex: 1;
}

/* Quote card title and metadata styling updates */
.quote-card-title h4 {
    margin: 0 0 5px 0;
    font-weight: 600!important;
    font-size: 18px; /* Increased from 16px */
    color: #333;
}

.quote-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px; /* Increased from 12px */
    color: #777;
    margin-top: 5px;
}

/* Status badge styling updates */
.quote-status {
    margin-left: 10px;
    flex-shrink: 0; /* Impedisce al badge di restringersi */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px; /* Slightly wider padding */
    border-radius: 20px;
    font-size: 12px; /* Increased from 11px */
    font-weight: 600!important;
    margin-top: 8px;
}

span.quote-date.ng-binding {
    padding-right: 4px;
}

.status-public {
    background-color: rgba(0,112,119,.6); /* Colore primario per badge pubblici */
    color: white;
}

.status-private {
    background-color: #f5f5f5;
    color: #616161;
}

/* Corpo della card preventivo */
.quote-card-body {
    padding: 5px 15px 15px;
    flex: 1;
}

/* Metadati del preventivo */
.quote-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.meta-separator {
    margin: 0 5px;
    color: #ccc;
}

/* Barra delle azioni del preventivo */
.quote-action-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-wrap: wrap;
    padding: 8px 15px;
    border-top: 1px solid #f0f0f0;
    z-index: 10;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

/* Link di azione */
.action-link {
    display: inline-flex;
    align-items: center;
    color: #079181;
    padding: 5px 10px; /* Increased padding */
    font-size: 13px; /* Increased from 12px */
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
    white-space: nowrap;
}

.action-link:hover {
    background-color: #f5f5f5;
    color: #057a6b;
    text-decoration: none;
}

.action-link i {
    margin-right: 5px;
}

.action-link.danger {
    color: #d9534f;
}

.action-link.danger:hover {
    color: #c9302c;
}

.action-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.action-divider {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
    margin: 0 5px;
}

/* ========================================
   7. RESPONSIVE MEDIA QUERIES
   ======================================== */

@media (max-width: 768px) {
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 10px;
    }
    
    /* Profilo responsive */
    .profile-header, 
    .profile-body {
        padding: 20px;
    }
    
    .action-footer {
        padding: 15px 20px;
    }
    
    /* Layout profilo cliente responsive */
    .customer-profile-layout {
        flex-direction: column;
    }
    
    .customer-logo-column {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .logo-preview-container {
        height: 180px;
    }
    
    /* Quote card responsive */
    .quote-card.horizontal {
        flex-direction: column;
    }
    
    .quote-card-image {
        width: 100%;
        height: 120px;
    }
    
    /* Barra azioni preventivo responsive */
    .quote-action-bar {
        position: relative;
        left: 0;
        order: 3;
        border-top: 1px solid #f0f0f0;
        border-bottom: none;
        padding: 10px;
        overflow-x: auto;
        box-shadow: none; /* Rimuovi ombra su mobile */
    }
    
    .quote-card-body {
        padding: 5px 15px 15px; /* Reimposta padding su mobile */
    }
}

/* ========================================
   7. NEW QUOTE LAYOUT
   ======================================== */

/* Stili per eventnotifier */
eventnotifier {
    position: fixed !important;
    bottom: 100px !important; 
    right: 30px !important; /* Allineato a destra invece di centrato */
    left: auto !important; /* Rimuove l'allineamento a sinistra */
    z-index: 1050 !important;
    display: flex !important;
    justify-content: flex-end !important; /* Allinea a destra */
    width: auto !important; /* Larghezza automatica invece di 100% */
}

/* Quando eventnotifier ha contenuto */
eventnotifier:not(:empty) {
    background: linear-gradient(135deg, #079181 0%, #00427f 100%) !important; /* Gradiente blu-verde */
    margin: 0 !important;
    padding: 15px 25px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
    max-width: 350px !important; /* Larghezza massima fissa */
    border-left: none !important; /* Rimuove il bordo */
    color: white !important; /* Testo bianco */
    font-weight: 500 !important; /* Spessore medium */
    font-size: 20px !important; /* Testo più grande */
    animation: slideUp 0.3s ease-out forwards !important;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ========================================
   8. PIANO DI LAVORO STYLES
   ======================================== */

/* Stile per il titolo modificabile del piano di lavoro */
.piano-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.piano-title-input {
    font-size: 24px;
    font-weight: 600!important;
    color: #00427f;
    border: none;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    padding: 0 30px 5px 0; /* Spazio a destra per l'icona */
    width: 100%;
    transition: all 0.3s ease;
}

.piano-title-input:focus {
    outline: none;
    border-bottom: 1px solid #079181;
}

.piano-title-input:hover {
    border-bottom: 1px solid #ddd;
}

.edit-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.edit-icon:hover {
    color: #079181;
}

/* Stile per il box informazioni cliente */
.client-info-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.client-info-content {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 15px;
}

.client-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.client-name {
    font-size: 16px;
    font-weight: 600!important;
    color: #00427f;
    margin-bottom: 2px;
}

.client-details {
    font-size: 12px;
    color: #6c757d;
}

.client-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-info-box {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    
    .client-info-content {
        margin-right: 0;
        margin-top: 10px;
        text-align: left;
    }
    
    .client-logo {
        margin-bottom: 5px;
    }
}


/* Stili selezione cliente piani di lavoro */

/* Stile per la selezione moderna del cliente */
.modern-select-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.selected-client {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px;
    cursor: pointer;
    text-align: left !important;
}

.selected-client .client-logo {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

.selected-client i {
    margin-left: auto;
    transition: transform 0.3s;
}

.client-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-box {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.client-list {
    padding: 5px 0;
}

.client-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left !important;
}

.client-item:hover {
    background-color: #f5f5f5;
}

.client-item .client-logo {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

/* Stile per il toggle switch */
.logo-toggle-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.toggle-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600!important;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.toggle-label-left, .toggle-label-right {
    font-size: 0.9em;
    color: #666;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 15px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #079181;
}

input:focus + .slider {
    box-shadow: 0 0 1px #079181;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.logo-preview {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 80px;
}

/* Stile per l'icona placeholder del logo */
.client-logo-placeholder {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #999;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
}

.logo-placeholder-large {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #999;
    text-align: center;
    line-height: 80px;
    font-size: 36px;
    margin: 0 auto;
}

/* Stile per il pulsante di salvataggio fisso */
.fixed-save-button {
    position: fixed;
    bottom: 17px;
    right: 360px; /* Posizionato prima del pulsante indietro */
    z-index: 1001; /* Superiore alla navbar */
}

.btn-save {
    min-width: 250px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background-color: #00427F; /* Colore blu */
    border-color: #00427F;
    color: #fff !important;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
}

.btn-save:hover, .btn-save:focus, .btn-save:active {
    color: #fff !important;
    background-color: #00427F;
    border-color: #00427F;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
}

/* Stile per il banner di alert del salvataggio manuale */
.manual-save-alert {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alert-icon {
    font-size: 24px;
    color: #ffc107;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.alert-content {
    color: #856404;
    font-weight: 500;
    font-size: 16px;
}

/* Stile per i pulsanti di aggiunta modernizzati */
.modern-add-button {
    display: inline-flex;
    align-items: center;
    background-color: #00427F;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    margin: 10px 0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modern-add-button i {
    margin-right: 8px;
}

.modern-add-button:hover {
    background-color: #003366;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.modern-add-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}