/* Sri Lankan Tax Calculator Styles */
.sltc-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.sltc-logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.sltc-logo {
    max-height: 80px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Card Styles */
.sltc-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sltc-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Input Section */
.sltc-input-section {
    margin-bottom: 2rem;
}

.sltc-input-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.sltc-input-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.sltc-input-description {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.sltc-input-field-wrapper {
    margin-bottom: 1rem;
}

.sltc-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.sltc-currency-note {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.sltc-input-wrapper {
    position: relative;
    margin-bottom: 0;
}

.sltc-currency-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.sltc-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 2;
}

.sltc-input:focus {
    border-color: var(--sltc-primary-color, #f97316);
    background: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.sltc-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Results Grid */
.sltc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sltc-results-card {
    padding: 1.5rem;
}

.sltc-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sltc-card-icon {
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
    color: #64748b;
}

.sltc-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.sltc-summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sltc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.sltc-summary-item.sltc-tax-item {
    background: #fef3e2;
    border: 1px solid #fed7aa;
}

.sltc-summary-item.sltc-net-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.sltc-summary-label {
    font-weight: 500;
    color: #374151;
}

.sltc-summary-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
}

.sltc-tax-item .sltc-summary-value {
    color: #ea580c;
}

.sltc-net-item .sltc-summary-value {
    color: #16a34a;
}

/* Breakdown Table */
.sltc-breakdown-card {
    margin-bottom: 2rem;
}

.sltc-breakdown-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.sltc-table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.sltc-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sltc-breakdown-table th {
    background: #f8fafc;
    padding: 1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.sltc-breakdown-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.sltc-breakdown-table tr:hover {
    background: #f8fafc;
}

.sltc-breakdown-table tr:last-child {
    background: #f1f5f9;
    font-weight: 600;
}

.sltc-th-left, .sltc-td-left {
    text-align: left;
}

.sltc-th-center, .sltc-td-center {
    text-align: center;
}

.sltc-th-right, .sltc-td-right {
    text-align: right;
}

/* Actions */
.sltc-actions {
    display: flex;
    justify-content: center;
}

.sltc-reset-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--sltc-primary-color, #f97316);
    border: 2px solid var(--sltc-primary-color, #f97316);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.sltc-reset-button:hover {
    background: var(--sltc-primary-color, #f97316);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sltc-calculator-container {
        padding: 1rem;
    }
    
    .sltc-input-title {
        font-size: 1.25rem;
    }
    
    .sltc-input-description {
        font-size: 0.875rem;
    }
    
    .sltc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .sltc-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sltc-breakdown-table {
        font-size: 0.75rem;
    }
    
    .sltc-breakdown-table th,
    .sltc-breakdown-table td {
        padding: 0.5rem;
    }
}

/* Animation Classes */
.sltc-fade-in {
    animation: sltcFadeIn 0.5s ease-out;
}

@keyframes sltcFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sltc-highlight {
    animation: sltcHighlight 0.6s ease-out;
}

@keyframes sltcHighlight {
    0% {
        background-color: rgba(249, 115, 22, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Loading State */
.sltc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sltc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--sltc-primary-color, #f97316);
    border-radius: 50%;
    animation: sltcSpin 1s linear infinite;
}

@keyframes sltcSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}