/**
 * Kapsamlı Hesaplama Araçları CSS
 * Emrah Kütükcü Website - 5 Farklı Hesaplama Aracı
 * Mevcut site CSS renklerine uyumlu hesaplama stilleri
 */

/* Tab Navigation Styles */
.calculator-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 46, 91, 0.1);
}

.nav-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 97, 165, 0.15);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(42, 97, 165, 0.3);
    transform: translateY(-1px);
}

.nav-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Calculator Sections */
.calculator-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.calculator-section.active {
    display: block;
}

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

.calculator-body {
    padding: 0;
}

/* Hesaplama sonuçları için özel stiller */
.results-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(42, 97, 165, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.summary-card:hover::before {
    left: 100%;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(42, 97, 165, 0.3);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.card-amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 46, 91, 0.1);
}

.results-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.results-table th,
.results-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.results-table th {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
}

.results-table tbody tr {
    transition: all 0.3s ease;
}

.results-table tbody tr:hover {
    background-color: rgba(42, 97, 165, 0.05);
    transform: scale(1.01);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table .amount {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.05rem;
}

.total-row {
    background: linear-gradient(135deg, rgba(42, 97, 165, 0.1), rgba(0, 46, 91, 0.05));
    font-weight: 600;
}

.total-row:hover {
    background: linear-gradient(135deg, rgba(42, 97, 165, 0.15), rgba(0, 46, 91, 0.08));
}

.total-row .amount {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Yıllık döküm tablosu stilleri */
.yearly-breakdown-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 46, 91, 0.15);
    border-left: 5px solid var(--secondary-color);
}

.yearly-breakdown-section h4 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 46, 91, 0.1);
}

.yearly-breakdown-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
}

.yearly-breakdown-table thead {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.yearly-breakdown-table th {
    padding: 1rem 0.8rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.yearly-breakdown-table th:last-child {
    border-right: none;
}

.yearly-breakdown-table td {
    padding: 1rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.yearly-breakdown-table td:last-child {
    border-right: none;
}

.yearly-breakdown-table tbody tr:nth-child(even) {
    background: rgba(42, 97, 165, 0.02);
}

.yearly-breakdown-table tbody tr:hover {
    background: rgba(42, 97, 165, 0.08);
    transform: scale(1.005);
}

.yearly-breakdown-table tbody tr:last-child {
    border-top: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(253, 228, 40, 0.1), rgba(42, 97, 165, 0.05));
    font-weight: 600;
}

.yearly-breakdown-table tbody tr:last-child td {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

.yearly-breakdown-table .amount {
    font-weight: 600;
    color: var(--accent-color);
}

/* Calculation details styling */
.calculation-details {
    margin-top: 2rem;
}

.calculation-details h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Info boxes */
.info-box,
.warning-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.info-box {
    background: linear-gradient(135deg, rgba(42, 97, 165, 0.05), rgba(0, 46, 91, 0.02));
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border-left-color: #ffc107;
}

.info-box::before {
    content: '💡';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
}

.info-box,
.warning-box {
    padding-left: 3rem;
}

.info-box h5,
.warning-box h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.info-box p,
.warning-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0.5rem 0;
}

.calculation-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(253, 228, 40, 0.1), rgba(42, 97, 165, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.calculation-note::before {
    content: '💡';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
}

.calculation-note {
    padding-left: 3rem;
}

.calculation-note p {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.calculation-note p:last-child {
    margin-bottom: 0;
}

/* Eş çalışma durumu için smooth geçiş */
#salary-spouse-working-group {
    transition: all 0.3s ease;
    overflow: hidden;
}

#salary-spouse-working-group.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 100px;
        transform: translateY(0);
    }
}

/* Loading durumu için özel animasyon */
.loading-state {
    text-align: center;
    padding: 3rem;
}

.loading-text {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: loadingPulse 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error message için gelişmiş stil */
.error-message {
    background: linear-gradient(135deg, #fee, #fef2f2);
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    border-left: 4px solid #dc2626;
}

.error-message::before {
    content: '⚠️';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
}

.error-message {
    padding-left: 3rem;
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    border-left: 4px solid #16a34a;
}

.success-message::before {
    content: '✅';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.2rem;
}

.success-message {
    padding-left: 3rem;
}

/* Form geliştirmeleri */
.form-control:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(42, 97, 165, 0.15) !important;
    transform: translateY(-1px);
}

.form-control.is-valid {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Buton hover animasyonları */
.btn-hesapla {
    position: relative;
    overflow: hidden;
}

.btn-hesapla::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hesapla:hover::before {
    left: 100%;
}

/* KDV, Faiz, Kıdem, Serbest Meslek için özel stiller */
.kdv-summary,
.interest-summary,
.severance-summary,
.freelance-summary {
    margin-bottom: 2rem;
}

.kdv-card,
.interest-card,
.severance-card,
.freelance-card {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(42, 97, 165, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kdv-card:hover,
.interest-card:hover,
.severance-card:hover,
.freelance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(42, 97, 165, 0.3);
}

/* Responsive iyileştirmeler */
@media (max-width: 768px) {
    .calculator-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .card-amount {
        font-size: 1.5rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .yearly-breakdown-table {
        min-width: 800px;
        font-size: 0.8rem;
    }
    
    .yearly-breakdown-table th,
    .yearly-breakdown-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .calculation-note,
    .error-message,
    .success-message,
    .info-box,
    .warning-box {
        padding: 1.2rem;
        padding-left: 2.5rem;
    }
    
    .calculation-note::before,
    .error-message::before,
    .success-message::before,
    .info-box::before,
    .warning-box::before {
        left: 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card-amount {
        font-size: 1.3rem;
    }
    
    .results-table {
        font-size: 0.85rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 0.8rem 0.6rem;
    }
    
    .yearly-breakdown-table {
        font-size: 0.75rem;
    }
    
    .yearly-breakdown-table th,
    .yearly-breakdown-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .yearly-breakdown-section {
        padding: 1.5rem 1rem;
    }
    
    .table-responsive {
        margin: 0.5rem -1rem;
        border-radius: 0;
    }
}

/* Print stili */
@media print {
    .calculator-nav,
    .btn-hesapla,
    .info-box,
    .warning-box {
        display: none !important;
    }
    
    .calculator-card,
    .results-section,
    .yearly-breakdown-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .summary-card {
        background: #f5f5f5 !important;
        color: #333 !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .results-table,
    .yearly-breakdown-table {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .yearly-breakdown-section {
        page-break-inside: avoid;
    }
}

/* Accessibility iyileştirmeleri */
.form-control:focus,
.btn-hesapla:focus,
.nav-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .summary-card,
    .nav-btn {
        border: 2px solid var(--text-dark);
    }
    
    .results-table,
    .yearly-breakdown-table {
        border: 2px solid var(--text-dark);
    }
    
    .results-table th,
    .results-table td,
    .yearly-breakdown-table th,
    .yearly-breakdown-table td {
        border: 1px solid var(--text-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .summary-card,
    .results-table tbody tr,
    .yearly-breakdown-table tbody tr,
    .form-control,
    .btn-hesapla,
    .nav-btn,
    #salary-spouse-working-group,
    .calculator-section {
        transition: none !important;
        animation: none !important;
    }
    
    .summary-card:hover,
    .btn-hesapla:hover,
    .nav-btn:hover {
        transform: none !important;
    }
    
    .nav-btn::before,
    .summary-card::before,
    .btn-hesapla::before {
        display: none !important;
    }
}

/* Custom scrollbar for table-responsive */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Fade in animation for results */
.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Special styling for calculation step rows */
.calculation-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.calculation-step:hover {
    background-color: rgba(42, 97, 165, 0.05);
}

.calculation-step:last-child {
    border-bottom: none;
}

.step-label {
    font-weight: 500;
    color: var(--text-dark);
}

.step-value {
    font-weight: 600;
    color: var(--accent-color);
}

/* Loading spinner for calculator loading states */
.calculator-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.calculator-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* ============================================
   HESAPLAMA SAYFASI ÖZEL STILLER (hesaplama.php için)
   ============================================ */

/* Hero ve Container Stilleri */
.hesaplama-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.hesaplama-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hesaplama-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hesaplama-container {
    padding: 60px 0 40px;
    background: var(--light-bg);
    min-height: 60vh;
}

.calculator-wrapper {
    max-width: 100%;
    margin: 0;
}

/* Responsive için Hero */
@media (max-width: 768px) {
    .hesaplama-hero {
        padding: 100px 0 60px;
    }
    
    .hesaplama-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hesaplama-hero h1 {
        font-size: 1.8rem;
    }
}

/* ============================================
   FORM ELEMANLARI VE BUTONLAR
   ============================================ */

/* Form Layout */
.calculator-body {
    padding: 0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    margin-bottom: 1.5rem;
}

.form-group {
    padding: 0 15px;
    margin-bottom: 1.5rem;
}

.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(42, 97, 165, 0.1);
}

.form-control:hover {
    border-color: var(--accent-color);
}

.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

/* Butonlar */
.btn-hesapla {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(42, 97, 165, 0.3);
}

.btn-hesapla:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 97, 165, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn-hesapla:active {
    transform: translateY(0);
}

.btn-hesapla:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-toggle {
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-toggle.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Detaylı Sorgu */
.detailed-options {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.detailed-options h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Kartlar */
.calculator-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 46, 91, 0.15);
    border-top: 5px solid var(--secondary-color);
    margin-bottom: 2rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.calculator-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

/* Sonuç Bölümü */
.results-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 46, 91, 0.15);
    border-left: 5px solid var(--secondary-color);
    min-height: 200px;
}

.results-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Loading ve Error */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

/* Info Section */
.info-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 46, 91, 0.1);
}

.info-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-section ul {
    color: var(--text-light);
    line-height: 1.8;
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Sonuç Kartları */
.salary-summary, .kdv-summary, .interest-summary, .severance-summary, .freelance-summary {
    margin-bottom: 2rem;
}

/* Summary card içindeki yazılar beyaz olmalı (gradient arka plan için) */
.summary-card .card-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-card .card-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tablolar */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.results-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
}

.results-table .section-header td {
    background: rgba(42, 97, 165, 0.1);
    font-weight: 600;
    color: var(--primary-color);
}

.results-table .total-row {
    background: rgba(42, 97, 165, 0.05);
    font-weight: 600;
}

.results-table .amount {
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Yıllık Tablo */
.yearly-breakdown {
    margin-top: 2rem;
    overflow-x: auto;
}

.yearly-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.yearly-table th,
.yearly-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
}

.yearly-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
}

.yearly-table .month-name {
    font-weight: 600;
    background: rgba(42, 97, 165, 0.05);
}

.yearly-table .total-row {
    background: rgba(42, 97, 165, 0.1);
    font-weight: 700;
}

/* Yasal Uyarı */
.legal-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.legal-notice h5 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-notice p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-card {
        padding: 2rem 1.5rem;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-row {
        margin: 0 -10px;
    }
    
    .form-group {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .calculator-card,
    .results-section {
        padding: 1.5rem 1rem;
    }
    
    .info-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .info-section ul {
        padding-left: 1.2rem;
    }
}