/* LowTax Calculator Frontend Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.calculator-card h2 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

/* Form styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group, .operation-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.5rem;
}

input[type="number"], select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="number"]:hover, select:hover {
    border-color: #cbd5e0;
}

/* Button styles */
.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #083963 100%);
    color: white;
    border: none;
    padding: 25px 20px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    background: #8CC63E;
    transition: all 0.3s ease;
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result display */
.result-display {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-display.success {
    background: #f0fff4;
    border: 2px solid #68d391;
    color: #22543d;
}

.result-display.error {
    background: #fed7d7;
    border: 2px solid #fc8181;
    color: #742a2a;
}

.result-display.loading {
    background: #ebf8ff;
    border: 2px solid #63b3ed;
    color: #2a4365;
}

/* API Info section */
.api-info {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.api-info h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.api-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4a5568;
}

.api-info code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.api-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.api-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .calculator-form {
        gap: 15px;
    }
}

/* Mode Toggle Switch */
.mode-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.mode-toggle {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 50px;
    cursor: pointer;
}

.mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #94c4ec 100%);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 42px;
    width: 96px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 21px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.slider-label.left {
    left: 20px;
}

.slider-label.right {
    right: 20px;
}

input:checked + .slider:before {
    transform: translateX(96px);
}

input:checked + .slider .slider-label.left {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

input:checked + .slider .slider-label.right {
    color: #667eea;
    text-shadow: none;
}

input:not(:checked) + .slider .slider-label.left {
    color: #667eea;
    text-shadow: none;
}

input:not(:checked) + .slider .slider-label.right {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Form sections */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.revenue-section, .expenses-section {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
}

.revenue-section h4, .expenses-section h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Readonly input styles */
.input-group.readonly input {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.input-group.readonly label {
    color: #64748b;
}

/* Enhanced input styles for better UX */
input[type="number"]:invalid {
    border-color: #fc8181;
}

input[type="number"]:valid {
    border-color: #68d391;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Enhanced result display for tax calculations */
.result-display.tax-result {
    background: #f0fff4;
    border: 2px solid #68d391;
    color: #22543d;
    text-align: left;
    padding: 25px;
}

.result-display.tax-comparison {
    background: #f0fff4;
    border: 2px solid #68d391;
    color: #22543d;
    text-align: left;
    padding: 20px;
}

.tax-result h3, .tax-comparison h3 {
    margin-bottom: 12px;
    text-align: center;
    color: #2d3748;
}

.tax-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.tax-comparison {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.comparison-section h4 {
    margin-bottom: 10px;
    text-align: center;
    color: #2d3748;
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.difference-section {
    background: #f8fafc;
    border: 2px solid #667eea;
}

.difference-section h4 {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.tax-item:last-child {
    border-bottom: none;
}

.tax-item:last-child .tax-item-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
}

.tax-label {
    font-weight: 500;
}

.tax-value {
    font-weight: 600;
    color: #667eea;
}

.tax-value.positive {
    color: #8CC53E;
}

.tax-value.negative {
    color: #e53e3e;
}

/* Corporate Tax Comparison Layout */
.corporate-tax-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 15px 0;
}

.tax-country {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.tax-country h4 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
}

.tax-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 6px;
}

.tax-rate {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.vs-separator {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    background: #f7fafc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.savings-section {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #667eea;
    margin-top: 15px;
}

.savings-section h4 {
    margin-bottom: 10px;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
}

.savings-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8CC53E;
    margin-bottom: 6px;
}

.savings-amount.savings-negative,
.savings-percentage.savings-negative {
    color: #f56565;
}

.savings-rate {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.savings-percentage {
    font-size: 1.1rem;
    color: #8CC53E;
    font-weight: 600;
}

.savings-amount.savings-positive,
.savings-percentage.savings-positive {
    color: #8CC53E;
}

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    min-height: 48px;
}

.dropdown-trigger:hover {
    border-color: #cbd5e0;
}

.dropdown-trigger:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.selected-text {
    flex: 1;
    color: #4a5568;
    font-weight: 500;
}

.dropdown-arrow {
    color: #a0aec0;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.dropdown-trigger:focus .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-container {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.dropdown-items-container {
    max-height: 250px; /* Increased to accommodate 50 items (50 * 45px = 225px) */
    overflow-y: auto;
    position: relative;
}

.dropdown-items {
    position: relative;
    min-height: 100%;
}

.virtual-scroll-spacer {
    display: none;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.dropdown-item.active {
    background-color: #667eea;
    color: white;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    background: #f8fafc;
}

/* Responsive adjustments for new layout */
@media (max-width: 600px) {
    .mode-toggle {
        width: 160px;
        height: 45px;
    }
    
    .slider:before {
        height: 37px;
        width: 37px;
    }
    
    input:checked + .slider:before {
        transform: translateX(115px);
    }
    
    .slider-label {
        font-size: 0.8rem;
    }
    
    .slider-label.left {
        left: 15px;
    }
    
    .slider-label.right {
        right: 15px;
    }
    
    .tax-breakdown {
        grid-template-columns: 1fr;
    }
    
    .tax-comparison {
        gap: 15px;
    }
    
    .comparison-section {
        padding: 12px;
    }
    
    .revenue-section, .expenses-section {
        padding: 15px;
    }
    
    .corporate-tax-comparison {
        flex-direction: column;
        gap: 10px;
    }
    
    .vs-separator {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .tax-amount {
        font-size: 1.3rem;
    }
    
    .savings-amount {
        font-size: 1.2rem;
    }
    
    .savings-percentage {
        font-size: 1rem;
    }
    
    .tax-country {
        padding: 12px 8px;
    }
    
    .savings-section {
        padding: 12px;
    }
    
    .dropdown-trigger {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Info Icon and Tooltip Styles */
.info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.info-icon:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.info-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-bottom-color: #2d3748;
}

.info-icon:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive adjustments for info icon */
@media (max-width: 600px) {
    .info-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: 6px;
        right: 6px;
    }
    
    .info-tooltip {
        font-size: 0.75rem;
        padding: 6px 10px;
        right: -10px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
    color: #2d3748;
    line-height: 1.6;
}

#modal-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

#modal-content p:last-child {
    margin-bottom: 0;
}

/* Modal content sections */
.calculation-summary,
.calculation-details,
.additional-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.calculation-summary {
    background: #f0fff4;
    border-left-color: #8CC53E;
}

.calculation-details {
    background: #ebf8ff;
    border-left-color: #3182ce;
}

.additional-info {
    background: #faf5ff;
    border-left-color: #805ad5;
}

.calculation-summary h4,
.calculation-details h4,
.additional-info h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.calculation-summary h4 {
    color: #22543d;
}

.calculation-details h4 {
    color: #2a4365;
}

.additional-info h4 {
    color: #44337a;
}

/* Dynamic explanation sections */
.explanation-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.explanation-summary {
    background: #f0fff4;
    border-left-color: #8CC53E;
}

.explanation-breakdown {
    background: #ebf8ff;
    border-left-color: #3182ce;
}

.explanation-assumptions {
    background: #fff5f5;
    border-left-color: #e53e3e;
}

.explanation-assessment {
    background: #faf5ff;
    border-left-color: #805ad5;
}

.explanation-kiva_info {
    background: #f7fafc;
    border-left-color: #4a5568;
}

.explanation-location {
    background: #edf2f7;
    border-left-color: #2d3748;
}

.explanation-notes {
    background: #faf5ff;
    border-left-color: #805ad5;
}

.explanation-system_info {
    background: #e6fffa;
    border-left-color: #319795;
}

.explanation-section h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.explanation-section p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.explanation-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.explanation-section li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Tax breakdown items */
.tax-breakdown-items {
    margin-top: 10px;
}

.tax-breakdown-items .tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.tax-item-label {
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.tax-item-amount {
    font-weight: 700;
    color: #667eea;
    margin-left: 10px;
}

.tax-item-rate {
    font-size: 0.9rem;
    color: #4a5568;
    margin-left: 10px;
    min-width: 60px;
}

.tax-item-description {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 4px;
    font-style: italic;
    flex-basis: 100%;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-close {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    #modal-content p {
        font-size: 0.9rem;
    }
}

/* PDF Download Button */
.download-pdf-btn {
    background: linear-gradient(135deg, #8CC63E 0%, #8CC63E 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    width: 100%;
    display: block;
}

.download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.download-pdf-btn:active {
    transform: translateY(0);
}

.download-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

/* Loading state for PDF button */
.download-pdf-btn:disabled::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Real-time Form Validation Styles */

/* Required field asterisks */
.required-asterisk {
    color: #e53e3e;
    font-weight: bold;
    margin-left: 2px;
}

/* Initial state - all fields start neutral */
input[type="number"], 
.searchable-dropdown .dropdown-trigger {
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}

/* Validation icons */
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 10;
}

.validation-icon.valid {
    color: #68d391;
}

.validation-icon.invalid {
    color: #fc8181;
}

/* Input group with validation icon */
.input-group {
    position: relative;
}

/* Validation icons for dropdowns */
.searchable-dropdown {
    position: relative;
}

.searchable-dropdown .validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    z-index: 100;
    pointer-events: none;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.input-group input[type="number"] {
    padding-right: 40px; /* Make room for validation icon */
}

/* Button states */
.calculate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

.calculate-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Validation helper text */
.validation-helper {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.validation-helper.ready {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #68d391;
    font-size: 1.5rem;
}

.validation-helper.missing {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.validation-helper.neutral {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.validation-helper.warning {
    background: #fef5e7;
    color: #c05621;
    border: 1px solid #f6ad55;
}

/* Dropdown validation states - no colored borders, only icons */
.searchable-dropdown.field-valid .dropdown-trigger {
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

.searchable-dropdown.field-invalid .dropdown-trigger {
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

.searchable-dropdown.field-neutral .dropdown-trigger {
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

/* Revenue group validation indicator */
.revenue-section .validation-group-indicator {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    border-left: 3px solid #e2e8f0;
}

.revenue-section .validation-group-indicator.valid {
    color: #22543d;
    background: #f0fff4;
    border-left-color: #68d391;
}

.revenue-section .validation-group-indicator.invalid {
    color: #742a2a;
    background: #fed7d7;
    border-left-color: #fc8181;
}

/* Animation for validation state changes */
.field-valid, .field-invalid {
    transition: all 0.3s ease;
}

.validation-helper {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
