/* ============================================
   CSS MODULI IMPOSTE (IVA e Soggiorno)
   ============================================ */

.imposte-container {
    padding: 0;
}

/* Eredita gli stili base da web-docs.css */
/* Qui aggiungiamo solo gli stili specifici per imposte */

/* Row per aliquote IVA */
.row {
    display: flex;
    gap: 20px;
    margin: 0 -10px;
}

.col-md-6 {
    flex: 1;
    padding: 0 10px;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

/* IVA Result Box */
.iva-result-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 2px solid #dee2e6;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.total {
    border-top: 3px solid #333;
    padding-top: 20px;
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
}

.result-row .label {
    color: #555;
}

.result-row .value {
    font-weight: 700;
    color: #27ae60;
    font-size: 18px;
}

.result-row.total .value {
    font-size: 24px;
    color: #667eea;
}

/* Switch Toggle per aliquote attive */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.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: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

input:focus + .slider {
    box-shadow: 0 0 3px rgba(102, 126, 234, 0.5);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Lista Esenzioni */
.esenzioni-list {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
}

.esenzione-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.esenzione-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.esenzione-item:last-child {
    margin-bottom: 0;
}

.esenzione-item label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.esenzione-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.esenzione-item p {
    margin: 5px 0 0 30px;
    font-size: 13px;
}

/* Table Active Row */
.table-active {
    background: #e9ecef !important;
    font-weight: 600;
}

/* Card con header colorato */
.card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #333;
    border: none;
}

.card-header.bg-warning h3 {
    color: #333;
}

/* Responsive per griglia row */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    .col-md-6 {
        width: 100%;
    }
    
    .iva-result-box {
        padding: 20px 15px;
    }
    
    .result-row {
        font-size: 14px;
    }
    
    .result-row.total {
        font-size: 18px;
    }
}

/* Personalizzazioni per input numero piccoli */
input[type="number"].form-control-sm {
    padding: 6px 10px;
    font-size: 14px;
}

/* Migliora visualizzazione tabelle */
#aliquote-iva-table td {
    vertical-align: middle;
}

#aliquote-iva-table input[type="number"] {
    text-align: center;
    font-weight: 600;
}

/* Stile per sezione calcolo imposta soggiorno */
.imposta-calculator .calc-section .form-group label {
    font-size: 13px;
    color: #666;
}

.imposta-calculator .calc-section input {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Stats con colori differenziati per imposte */
.imposte-container .stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.imposte-container .stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.imposte-container .stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.imposte-container .stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Dettagli per periodo report IVA */
#report-iva-tbody tr:last-child {
    border-top: 3px solid #333;
    background: #f8f9fa;
}