/* ===========================================
    VAT Calculator - Tool Specific Styles (Compact)
    =========================================== */

.vat-box {
    max-width: 750px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.vat-form {
    padding: 15px; 
    border: 1px solid #673ab7; /* Deep Purple Border */
    border-radius: 6px;
    background-color: #ede7f6; /* Light Purple Background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.vat-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #512da8; 
    border-bottom: 2px solid #673ab7;
    padding-bottom: 3px; 
    margin-top: 15px; 
    margin-bottom: 10px; 
}
.input-instruction, .text-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

/* Mode Selector (Radio Buttons) */
.mode-selector {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    border: 1px dashed #9575cd;
    border-radius: 4px;
    background-color: #f3e5f5;
    font-size: 0.9rem;
}
.mode-selector label {
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
}
.mode-selector input[type="radio"] {
    margin-right: 5px;
}


/* Compact Grid Setup (2 Columns, with one full-width) */
.vat-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.vat-compact-grid .vat-input-group.full-width {
    width: 100%; /* For the main amount input */
}
.vat-compact-grid.columns-2 .vat-input-group {
    width: 48.5%; /* Two per row */
}


.vat-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.vat-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.vat-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.vat-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #673ab7; /* Primary for action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.vat-calculate-btn:hover {
    background-color: #512da8;
}

/* Results Display */
.vat-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #673ab7; 
    border-radius: 6px;
    background-color: #d1c4e9; /* Lighter Purple Background */
    text-align: center;
}

.vat-results-title {
    color: #4527a0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid (Net, VAT, Gross) */
.vat-data-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px; 
    margin-bottom: 20px; 
}

.vat-data-segment.total-result {
    flex-basis: 32%;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    transition: border 0.3s;
}

/* Default color for results */
.vat-data-segment .vat-data-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #7b1fa2; /* Contrast color for values */
    margin-top: 5px;
}

.vat-data-segment .vat-data-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.vat-data-segment .vat-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}


.vat-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #ff9800; /* Orange secondary button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vat-data-grid {
        flex-wrap: wrap;
        gap: 15px;
    }
    .vat-data-segment.total-result {
        flex-basis: 100%; /* Stack results on smaller screens */
    }
}
@media (max-width: 600px) {
    .vat-compact-grid.columns-2 {
        flex-direction: column;
        gap: 10px;
    }
    .vat-compact-grid.columns-2 .vat-input-group {
        flex-basis: 100%;
        width: 100% !important;
    }
    .mode-selector {
        flex-direction: column;
    }
}