body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
    min-height: 100vh;
}

.controls-container {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    font-weight: 500;
    color: #333;
}

select, input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background-color: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f2f2f2;
}

.table-header {
    background-color: #e9ecef !important;
    color: #495057;
    font-size: 16px;
    font-weight: bold;
}

.summary-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    position: sticky;
    top: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.summary-container strong {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.positive-value {
    color: #28a745;
}

.negative-value {
    color: #dc3545;
}

.yiufe-change {
    font-weight: 500;
}

.yiufe-high {
    color: #dc3545;
    font-weight: bold;
}

.button-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.download-button {
    padding: 10px 20px;
    background-color: #ffdd00;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-button:hover {
    background-color: #45a049;
}

.download-button i {
    font-size: 16px;
}

.coffee-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.coffee-button:hover {
    background-color: #FFE44D;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.coffee-button i {
    font-size: 16px;
}

.disclaimer {
    margin: 10px 0;
    padding: 0 25px 15px 25px;
    background-color: #fff6f6;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.disclaimer.accepted .disclaimer-title,
.disclaimer.accepted .disclaimer-text {
    display: none;
}

.disclaimer-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
    font-size: 15px;
}

.disclaimer-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    margin: 0;
}

.disclaimer-checkbox {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.disclaimer-checkbox label {
    margin-left: 8px;
    cursor: pointer;
    color: #495057;
}

#uploadPdf[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px 10px 20px;
    border-bottom: 1px solid #dee2e6;
}

.header h1 {
    color: #333;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.upload-section {
    margin: 20px 0;
}

.button-container {
    margin: 15px 0;
}

.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
}

.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.file-upload-label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.file-upload-label i {
    margin-right: 8px;
}

input[type="file"] {
    display: none;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
}

.popup-content p {
    margin: 0 0 20px 0;
    color: #495057;
}

.popup-content i {
    color: #dc3545;
    font-size: 24px;
    margin-right: 10px;
}

.popup-close {
    padding: 8px 20px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.popup-close:hover {
    background-color: #0b5ed7;
}

.privacy-notice {
    margin-bottom: 0;
    margin-top: 0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f1f8f1;
    border: 1px solid #a5d6a7;
}

.privacy-notice p:first-child {
    margin-top: 0;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-notice p:last-child {
    font-size: 14px;
    line-height: 1.5;
    color: #1b5e20;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-notice p:last-child span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-notice p:last-child i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.privacy-notice p:first-child i {
    font-size: 18px;
    color: #43a047;
}

.reset-disclaimer {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 12px;
    color: #6c757d;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

.reset-disclaimer:hover {
    background-color: #f8f9fa;
}

.report-issue {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #b8daff;
}

.report-issue p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.report-button {
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    color: #004085;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.report-button:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.report-issue-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

.report-issue-footer p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.report-issue-footer p i {
    font-size: 12px;
}

.report-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.report-button {
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
}

.report-button:hover {
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.report-button i {
    font-size: 12px;
}

.report-divider {
    color: #adb5bd;
    font-size: 11px;
}

@media screen and (max-width: 768px) {
    .main-container {
        padding: 0;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .controls-container {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }

    .actions-section {
        margin-bottom: 12px;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .actions-section .button-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .download-button,
    .coffee-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        margin: 0;
    }

    .controls-container,
    .upload-section,
    .privacy-notice,
    .disclaimer,
    .report-issue-footer {
        margin: 20px;
        width: auto;
    }

    .header {
        padding: 20px;
    }

    #tableContainer {
        margin: 0;
        overflow-x: auto;
        overflow-y: visible;
    }

    table {
        margin: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .summary-container {
        margin: 0;
        padding: 15px 20px;
        border-radius: 0;
        width: 100%;
        border-left: none;
        border-right: none;
        box-sizing: border-box;
    }

    table th,
    table td {
        display: none;
        white-space: nowrap;
    }

    table th:nth-child(1),
    table td:nth-child(1),
    table th:nth-child(4),
    table td:nth-child(4),
    table th:nth-child(5),
    table td:nth-child(5),
    table th:nth-child(23),
    table td:nth-child(23) {
        display: table-cell;
    }

    table th:nth-child(23),
    table td:nth-child(23) {
        min-width: 80px;
    }

    table th:nth-child(1),
    table td:nth-child(1) {
        max-width: 50px;
        word-wrap: break-word;
        white-space: normal;
        padding: 8px 4px;
        font-size: 13px;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        
    }
}

#tableContainer {
    margin: 20px 0;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

thead.sticky-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
}

.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.sticky-header tr:first-child th {
    top: 0;
    z-index: 3;
}

.sticky-header tr:nth-child(2) th {
    top: 39px; /* Adjust this value based on the height of your first header row */
    z-index: 2;
}

/* Belirli kolonları gizle ama verileri koru */
table th:nth-child(3),  /* İşlem Türü */
table td:nth-child(3),
table th:nth-child(6),  /* İşlem Türü */
table td:nth-child(6),
table th:nth-child(9),  /* Ortalama İşlem Fiyatı (USD) */
table td:nth-child(9),
table th:nth-child(10), /* İşlem Ücreti (USD) */
table td:nth-child(10),
table th:nth-child(16), /* Alış Yİ-ÜFE */
table td:nth-child(16),
table th:nth-child(18), /* Satış Yİ-ÜFE */
table td:nth-child(18) {
    display: none;
}

.other-tools {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.other-tools h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.other-tools .fas {
    margin-right: 0.5rem;
    color: #3498db;
}

.tools-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tool-link:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tool-link .fas {
    margin-right: 0.5rem;
    color: #3498db;
}

/* Mevcut popup stillerinin yanına ekleyin */
.popup-content.warning {
    border-left: 4px solid #ffc107;
}

.popup-content.warning p:first-child {
    color: #856404;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.popup-content.warning .warning-details {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.popup-content.warning i {
    color: #ffc107;
}

.file-counter {
    margin-top: 10px;
    text-align: center;
    color: #495057;
    font-size: 0.9em;
}

.file-counter.success {
    color: #28a745;
}

.file-counter.warning {
    color: #ffc107;
}

.file-counter i {
    margin-right: 5px;
}

.table-container {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.warnings-container {
    margin-bottom: 20px;
}

.warning-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-alert i.fa-exclamation-triangle {
    color: #856404;
}

.dismiss-warning {
    margin-left: auto;
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    padding: 4px 8px;
}

.dismiss-warning:hover {
    color: #533f03;
}

.dismiss-all-warnings {
    background-color: #856404;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
}

.dismiss-all-warnings:hover {
    background-color: #533f03;
}