/* CSS */

/* Stili per il Calcolatore TIG */
.tig-calculator-container * {
    box-sizing: border-box;
}

.tig-calculator-container {
    max-width: 1400px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	  padding: 0px;
}

.tig-calculator-container .calculator-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 30px;
    text-align: center;
    /* Aggiunta dei bordi arrotondati */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.tig-calculator-container .calculator-header h1 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.tig-calculator-container .calculator-header p {
    opacity: 0.9;
    font-size: 1.1em;
    margin: 0;
}

.tig-calculator-container .calculator-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tig-calculator-container .controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tig-calculator-container .control-group {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.tig-calculator-container .control-group:hover {
    transform: translateY(-2px);
}

.tig-calculator-container .control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.tig-calculator-container select, 
.tig-calculator-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: auto;
}

.tig-calculator-container select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

.tig-calculator-container select:focus, 
.tig-calculator-container input:focus {
    outline: none;
    border-color: #667eea;
}

.tig-calculator-container .result-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.tig-calculator-container .result-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: white;
}

.tig-calculator-container .amperage-display {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.tig-calculator-container .electrode-info {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Il resto del CSS rimane invariato */
.tig-calculator-container .table-section { padding: 30px; background: #fff; }
.tig-calculator-container .table-controls { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.tig-calculator-container .filter-btn { padding: 10px 20px; border: none; border-radius: 25px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; background: #e9ecef; color: #495057; }
.tig-calculator-container .filter-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; transform: scale(1.05); }
.tig-calculator-container .data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }
.tig-calculator-container .data-table th { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; padding: 15px; text-align: left; font-weight: 600; }
.tig-calculator-container .data-table td { padding: 12px 15px; border-bottom: 1px solid #e9ecef; }
.tig-calculator-container .data-table tr:hover { background: #f8f9fa; }
.tig-calculator-container .material-acciaio { border-left: 4px solid #e74c3c; }
.tig-calculator-container .material-alluminio { border-left: 4px solid #3498db; }
.tig-calculator-container .material-rame { border-left: 4px solid #f39c12; }
.tig-calculator-container .material-titanio { border-left: 4px solid #9b59b6; }
.tig-calculator-container .notes-section { background: #2c3e50; color: white; padding: 30px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;}
.tig-calculator-container .notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tig-calculator-container .note-card { background: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 10px; border-left: 4px solid #667eea; }
.tig-calculator-container .note-card h4 { margin-bottom: 15px; color: #667eea; }
.tig-calculator-container .note-card ul { list-style: none; padding-left: 0; }
.tig-calculator-container .note-card li { margin-bottom: 8px; padding-left: 15px; position: relative; }
.tig-calculator-container .note-card li::before { content: "→"; position: absolute; left: 0; color: #667eea; }

/* === UPDATED MEDIA QUERY === */
@media (max-width: 768px) { 
    .tig-calculator-container .controls { 
        grid-template-columns: 1fr; 
    } 
    
    .tig-calculator-container .table-controls { 
        justify-content: center; 
    } 

    /* START: New styles for mobile table */
    .tig-calculator-container .table-wrapper {
        display: block;
        width: 100%;
        overflow-x: auto; /* This creates the horizontal scroll */
        -webkit-overflow-scrolling: touch; /* Optional: Smooth scrolling on iOS */
    }
    
    .tig-calculator-container .data-table { 
        font-size: 14px; 
        width: 100%; /* Keeps the table from shrinking below its content */
        min-width: 650px; /* Force table to be at least this wide, triggering the scroll */
    }
    /* END: New styles for mobile table */
}