/* Container principale */
.imu-calculation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.imu-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Tabs */
.imu-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.imu-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.imu-tab:hover {
    background: #f5f5f5;
}

.imu-tab.active {
    border-bottom-color: #0066CC;
    color: #0066CC;
    font-weight: 600;
}

/* Messaggio Zagarise */
.zagarise-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e9fa 100%);
    border: 1px solid #0066CC;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}

.zagarise-info:before {
    content: "🏛️";
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 20px;
}

.zagarise-info-content {
    margin-left: 40px;
}

.zagarise-info h4 {
    margin-top: 0;
    color: #0066CC;
}

.zagarise-info p {
    margin-bottom: 5px;
    font-size: 13px;
}

/* Sezioni */
.imu-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.imu-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0066CC;
    padding-bottom: 10px;
}

/* Form layout */
.imu-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.imu-col {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.imu-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.imu-col input,
.imu-col select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.imu-col input:focus,
.imu-col select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

/* Stile per il comune fisso Zagarise */
.comune-fisso {
    background-color: #e8f4fd !important;
    border: 2px solid #0066CC !important;
    padding: 10px !important;
    border-radius: 6px !important;
}

.comune-fisso strong {
    color: #0066CC;
    font-size: 16px;
}

/* Badge SPID */
.spid-badge {
    display: inline-block;
    background: #0066CC;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Messaggio informativo SPID */
.spid-info-box {
    background: #e8f4fd;
    border: 1px solid #b6d4fe;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 14px;
}

.spid-info-box .dashicons {
    color: #0066CC;
    margin-right: 5px;
}

/* Bottoni */
.imu-button,
.imu-button-primary,
.imu-button-success {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.imu-button {
    background: #f0f0f0;
    color: #333;
}

.imu-button:hover {
    background: #e0e0e0;
}

.imu-button-primary {
    background: #0066CC;
    color: white;
}

.imu-button-primary:hover {
    background: #0055aa;
}

.imu-button-success {
    background: #28a745;
    color: white;
}

.imu-button-success:hover {
    background: #218838;
}

.imu-button-success:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Lista immobili */
#imu-properties-list {
    margin: 20px 0;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.property-item:hover {
    border-color: #0066CC;
    background: #f8fbff;
}

.property-info strong {
    color: #333;
}

.property-actions button {
    margin-left: 8px;
    padding: 4px 12px;
    font-size: 12px;
}

/* Risultati */
.imu-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.imu-results-table th,
.imu-results-table td {
    padding: 10px;
    text-align: right;
    border: 1px solid #ddd;
}

.imu-results-table th:first-child,
.imu-results-table td:first-child {
    text-align: left;
}

.imu-results-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.total-row {
    background: #e8f4fd;
    font-weight: 600;
}

/* Note e avvisi */
.imu-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Tab content */
.imu-tab-content {
    display: none;
}

.imu-tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .imu-col {
        min-width: 100%;
    }
    
    .imu-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .property-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-actions {
        margin-top: 10px;
        align-self: flex-end;
    }
    
    .zagarise-info:before {
        position: relative;
        left: 0;
        top: 0;
        margin-right: 10px;
    }
    
    .zagarise-info-content {
        margin-left: 0;
    }
}