.keyword-analysis-container {
    width: 100%;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

.keyword-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 25px;
}

.keyword-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card h3 {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.trend-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.trend-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
}

.trend-chart {
    width: 100%;
    height: 300px;
}

.error-message {
    background: #fff3f3;
    color: #dc3545;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Form Stilleri */
.keyword-form {
    /*max-width: 1024px;
    margin: 0 auto 30px;*/
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #0056b3;
}

#loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* DataTable Stilleri */
.dataTables_wrapper {
    margin: 20px 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.dataTables_scroll {
    width: 100%;
}

.dataTables_scrollBody {
    width: 100%;
}

.dataTables_filter input {
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-left: 8px;
}

.dataTables_length select {
    padding: 6px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
}

.dt-buttons {
    margin-bottom: 15px;
}

.dt-button {
    background: #007bff !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 5px !important;
}

.dt-button:hover {
    background: #0056b3 !important;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Detay Butonu */
.detail-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.detail-btn:hover {
    background: #0056b3;
}

/* Tablo Stilleri */
#keywordsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#keywordsTable th,
#keywordsTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

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

#keywordsTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Detay Modal İçeriği */
.keyword-detail {
    padding: 15px;
}

.keyword-detail h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.metric-card h3 {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.trend-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.trend-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 250px;
}

/* Mobil Uyumluluk */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .keyword-detail {
        padding: 10px;
    }

    .keyword-detail h3 {
        font-size: 18px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .metric-card {
        padding: 8px;
    }

    .metric-card h3 {
        font-size: 11px;
    }

    .metric-value {
        font-size: 14px;
    }

    .trend-section {
        padding: 10px;
    }

    .trend-section h3 {
        font-size: 14px;
    }

    .chart-container {
        height: 250px;
        min-height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 6px;
    }

    .chart-container {
        height: 200px;
        min-height: 180px;
    }
}

/* Watermark Stili */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 100px;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    font-weight: bold;
    text-transform: uppercase;
}

/* Grafik Watermark */
.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.chart-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 24px;
    color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

/* DataTables Düzenlemeleri */
.dataTables_info {
    padding-top: 0.85em !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.25em !important;
}

.dataTables_wrapper .dataTables_scrollBody {
    margin-top: -1px !important;
}

.dataTables_wrapper .dataTables_scrollBody thead th {
    border-top: none !important;
} 


table:not(.table) {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    border-collapse: collapse;
    box-sizing: border-box;
}