.tncn-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.tncn-calculator {
    background: linear-gradient(135deg, #009688 0%, #4CAF50 100%)!important;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tncn-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.tncn-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.tncn-icon svg {
    color: white;
}

.tncn-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color:#fff;
}

.tncn-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.tncn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .tncn-form-grid {
        grid-template-columns: 1fr;
    }
}

.tncn-input-section,
.tncn-result-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 0 15px;
    font-size: 15px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f7fafc;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea !important;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-text {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
}

.btn-calculate {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4CAF50 0%, #4caf50 100%)!important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-calculate:active {
    transform: translateY(0);
}

.result-highlight {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.result-income {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.result-tax {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

.result-value {
    font-size: 36px;
    font-weight: 800;
    animation: fadeIn 0.5s ease;
}

.result-box {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: #4a5568;
}

.result-row strong {
    color: #2d3748;
    font-weight: 700;
}

.result-total {
    background: white;
    margin: 10px -20px -20px -20px;
    padding: 15px 20px;
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.result-total strong {
    color: #4CAF50;
    font-size: 16px;
}

.result-highlight-row {
    background: #eef2ff;
    margin: 10px -20px -20px -20px;
    padding: 15px 20px;
    border-radius: 0 0 12px 12px;
}

.tncn-tax-table {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tncn-tax-table h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
}

.table-responsive {
    overflow-x: auto;
}

.tncn-tax-table table {
    width: 100%;
    border-collapse: collapse;
}

.tncn-tax-table thead {
    background: linear-gradient(135deg, #4CAF50 0%, #4caf50 100%);
    color: white;
}

.tncn-tax-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.tncn-tax-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
}

.tncn-tax-table tbody tr:hover {
    background: #f7fafc;
}

.tncn-tax-table tbody tr:last-child td {
    border-bottom: none;
}

.tax-rate {
    font-weight: 700;
    color: #667eea;
    text-align: center;
}

.tncn-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    padding: 25px 30px;
    border-left: 5px solid #f59e0b;
}

.tncn-note h4 {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 15px 0;
}

.tncn-note ul {
    margin: 0;
    padding-left: 20px;
}

.tncn-note li {
    color: #78350f;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.updated {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #8BC34A;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    cursor: help;
    margin-left: 5px;
    font-weight: bold;
}

.custom-tooltip {
    position: absolute;
    background: #8BC34A;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2d3748;
}

@media (max-width: 768px) {
    .tncn-calculator {
        padding: 20px;
    }
    
    .tncn-input-section,
    .tncn-result-section {
        padding: 20px;
    }
    
    .tncn-header h2 {
        font-size: 24px;
    }
    
    .result-value {
        font-size: 28px;
    }
    
    .tncn-tax-table {
        padding: 20px;
    }
    
    .tncn-tax-table th,
    .tncn-tax-table td {
        padding: 10px;
        font-size: 12px;
    }
}

@media print {
    .tncn-calculator {
        background: white;
        box-shadow: none;
    }
    
    .btn-calculate {
        display: none;
    }
    
    .result-income,
    .result-tax {
        background: white;
        color: black;
        border: 2px solid #e2e8f0;
    }
}