/* Tema Değişkenleri */
:root {
    /* Karanlık Tema (Varsayılan) */
    --bg-primary: linear-gradient(135deg, #232526 0%, #414345 100%);
    --bg-secondary: rgba(34, 34, 40, 0.95);
    --bg-tertiary: rgba(44, 47, 51, 0.95);
    --bg-input: rgba(34, 34, 40, 0.7);
    --bg-editor: #181a20;
    --text-primary: #f5f6fa;
    --text-secondary: #b2becd;
    --accent-primary: #50fa7b;
    --theme-caret-color: #50fa7b;
    --accent-secondary: #ff79c6;
    --border-color: rgba(80, 250, 123, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #ff5555;
    --success-color: rgba(80, 250, 123, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 80, 250, 123;
    --accent-secondary-rgb: 255, 121, 198;
    --error-color-rgb: 255, 85, 85;

    /* Palet renkleri */
    --palette-color-1: #50fa7b;
    --palette-color-2: #ff79c6;
    --palette-color-3: #8be9fd;
    --palette-color-4: #bd93f9;

    /* Mobil Menü Ayarları */
    --mobile-menu-margin-right: 10px;
    --mobile-logo-margin-left: 0px;
    --mobile-logo-margin-right: 10px;
    --mobile-logo-text-size: 16px;
    --mobile-buttons-margin-left: 5px;
    --mobile-buttons-gap: 15px;
    --mobile-theme-size: 30px;
    --mobile-theme-margin: 0px;
    --mobile-login-size: 30px;
    --mobile-login-font-size: 14px;
}













/* Kırmızı Tema */
html[data-theme="red"] {
    --bg-primary: linear-gradient(135deg, #3a1c1c 0%, #5a3030 100%);
    --bg-secondary: rgba(58, 28, 28, 0.95);
    --bg-tertiary: rgba(75, 36, 36, 0.95);
    --bg-input: rgba(65, 30, 30, 0.7);
    --bg-editor: #2a1515;
    --text-primary: #f5f6fa;
    --text-secondary: #e0b6b6;
    --accent-primary: #ff5252;
    --accent-secondary: #f44336;
    --border-color: rgba(255, 82, 82, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #ff1744;
    --success-color: rgba(255, 82, 82, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 255, 82, 82;
    --accent-secondary-rgb: 244, 67, 54;
    --error-color-rgb: 255, 23, 68;

    /* Palet renkleri */
    --palette-color-1: #ff5252;
    --palette-color-2: #f44336;
    --palette-color-3: #e53935;
    --palette-color-4: #d32f2f;
}

/* Pembe Tema */
html[data-theme="pink"] {
    --bg-primary: linear-gradient(135deg, #4a2a3a 0%, #6a3d53 100%);
    --bg-secondary: rgba(74, 42, 58, 0.95);
    --bg-tertiary: rgba(106, 61, 83, 0.95);
    --bg-input: rgba(85, 50, 69, 0.7);
    --bg-editor: #3a2130;
    --text-primary: #f5f6fa;
    --text-secondary: #e0b6cf;
    --accent-primary: #ff4081;
    --accent-secondary: #ec407a;
    --border-color: rgba(255, 64, 129, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #d50000;
    --success-color: rgba(255, 64, 129, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 255, 64, 129;
    --accent-secondary-rgb: 236, 64, 122;
    --error-color-rgb: 213, 0, 0;

    /* Palet renkleri */
    --palette-color-1: #ff4081;
    --palette-color-2: #ec407a;
    --palette-color-3: #e91e63;
    --palette-color-4: #d81b60;
}

/* Mor Tema */
html[data-theme="purple"] {
    --bg-primary: linear-gradient(135deg, #2a1c3a 0%, #3d2a5a 100%);
    --bg-secondary: rgba(42, 28, 58, 0.95);
    --bg-tertiary: rgba(61, 42, 90, 0.95);
    --bg-input: rgba(50, 35, 70, 0.7);
    --bg-editor: #211730;
    --text-primary: #f5f6fa;
    --text-secondary: #c6b6e0;
    --accent-primary: #9c27b0;
    --accent-secondary: #7b1fa2;
    --border-color: rgba(156, 39, 176, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #d500f9;
    --success-color: rgba(156, 39, 176, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 156, 39, 176;
    --accent-secondary-rgb: 123, 31, 162;
    --error-color-rgb: 213, 0, 249;

    /* Palet renkleri */
    --palette-color-1: #9c27b0;
    --palette-color-2: #7b1fa2;
    --palette-color-3: #aa00ff;
    --palette-color-4: #6200ea;
}

/* Yeşil Tema */
html[data-theme="green"] {
    --bg-primary: linear-gradient(135deg, #1c3a2a 0%, #2a5a3d 100%);
    --bg-secondary: rgba(28, 58, 42, 0.95);
    --bg-tertiary: rgba(42, 90, 61, 0.95);
    --bg-input: rgba(35, 70, 50, 0.7);
    --bg-editor: #173021;
    --text-primary: #f5f6fa;
    --text-secondary: #b6e0c6;
    --accent-primary: #00c853;
    --accent-secondary: #00a041;
    --border-color: rgba(0, 200, 83, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #ff3d00;
    --success-color: rgba(0, 200, 83, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 0, 200, 83;
    --accent-secondary-rgb: 0, 160, 65;
    --error-color-rgb: 255, 61, 0;

    /* Palet renkleri */
    --palette-color-1: #00c853;
    --palette-color-2: #00a041;
    --palette-color-3: #69f0ae;
    --palette-color-4: #00e676;
}

/* Sarı Tema */
html[data-theme="yellow"] {
    --bg-primary: linear-gradient(135deg, #3a391c 0%, #5a5930 100%);
    --bg-secondary: rgba(58, 57, 28, 0.95);
    --bg-tertiary: rgba(90, 89, 48, 0.95);
    --bg-input: rgba(70, 69, 35, 0.7);
    --bg-editor: #302f15;
    --text-primary: #f5f6fa;
    --text-secondary: #e0dfb6;
    --accent-primary: #ffc107;
    --accent-secondary: #ffa000;
    --border-color: rgba(255, 193, 7, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #ff3d00;
    --success-color: rgba(255, 193, 7, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 255, 193, 7;
    --accent-secondary-rgb: 255, 160, 0;
    --error-color-rgb: 255, 61, 0;

    /* Palet renkleri */
    --palette-color-1: #ffc107;
    --palette-color-2: #ffa000;
    --palette-color-3: #ffeb3b;
    --palette-color-4: #fdd835;
}

/* Tema Geçiş Animasyonu - Sadece renk ve tema ile ilgili özellikleri etkilesin */
* {
    transition: background-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Yazma sırasında konumun değişmemesi gereken öğeler */
.container,
.sidebar,
.editor-container,
#code-editor,
.code-content {
    transition: none;
}

/* Tema Değiştirme Butonu */
.theme-toggle {
    position: fixed;
    top: 27px;
    left: 270px;
    /* CodeWooW yazısının yanında */
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle i {
    font-size: 18px;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* Renkli Palet Simgesi */
.theme-palette {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    transform: rotate(45deg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.palette-color {
    position: absolute;
    width: 12px;
    height: 12px;
}

.palette-color-1 {
    top: 0;
    left: 0;
    background-color: var(--palette-color-1, #ff5252);
}

.palette-color-2 {
    top: 0;
    right: 0;
    background-color: var(--palette-color-2, #4fc3f7);
}

.palette-color-3 {
    bottom: 0;
    left: 0;
    background-color: var(--palette-color-3, #ffeb3b);
}

.palette-color-4 {
    bottom: 0;
    right: 0;
    background-color: var(--palette-color-4, #4caf50);
}

/* Tema renklerine göre palet renkleri */
html[data-theme="dark"] {
    --palette-color-1: #50fa7b;
    --palette-color-2: #ff79c6;
    --palette-color-3: #f1fa8c;
    --palette-color-4: #bd93f9;
}

html[data-theme="light"] {
    --palette-color-1: #2ecc71;
    --palette-color-2: #9b59b6;
    --palette-color-3: #f1c40f;
    --palette-color-4: #3498db;
}

html[data-theme="blue"] {
    --palette-color-1: #4fc3f7;
    --palette-color-2: #2196f3;
    --palette-color-3: #03a9f4;
    --palette-color-4: #1e88e5;
}

html[data-theme="red"] {
    --palette-color-1: #ff5252;
    --palette-color-2: #f44336;
    --palette-color-3: #e53935;
    --palette-color-4: #d32f2f;
}

html[data-theme="pink"] {
    --palette-color-1: #ff4081;
    --palette-color-2: #ec407a;
    --palette-color-3: #e91e63;
    --palette-color-4: #d81b60;
}

html[data-theme="purple"] {
    --palette-color-1: #9c27b0;
    --palette-color-2: #7b1fa2;
    --palette-color-3: #aa00ff;
    --palette-color-4: #6200ea;
}

html[data-theme="green"] {
    --palette-color-1: #00c853;
    --palette-color-2: #00a041;
    --palette-color-3: #69f0ae;
    --palette-color-4: #00e676;
}

html[data-theme="yellow"] {
    --palette-color-1: #ffc107;
    --palette-color-2: #ffa000;
    --palette-color-3: #ffeb3b;
    --palette-color-4: #fdd835;
}

.theme-toggle-track {
    width: 70px;
    height: 32px;
    background-color: var(--bg-tertiary);
    border-radius: 32px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    position: relative;
    box-shadow: inset 0 1px 4px var(--shadow-color);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

html[data-theme="dark"] .theme-toggle-track {
    background-color: #1a1d24;
}

html[data-theme="light"] .theme-toggle-track {
    background-color: #e8eaed;
}

.theme-toggle-icon {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.theme-toggle-icon i {
    font-size: 16px;
    transition: opacity 0.2s ease;
}

.theme-toggle-icon .fa-sun {
    color: #f39c12;
    opacity: 0.3;
    margin-left: 6px;
}

.theme-toggle-icon .fa-moon {
    color: #ecf0f1;
    opacity: 0.8;
    margin-right: 6px;
}

html[data-theme="light"] .theme-toggle-icon .fa-sun {
    opacity: 0.8;
}

html[data-theme="light"] .theme-toggle-icon .fa-moon {
    opacity: 0.3;
}

.theme-toggle-circle {
    position: absolute;
    left: 3px;
    width: 26px;
    height: 26px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 1px 3px var(--shadow-color);
}

html[data-theme="light"] .theme-toggle-circle {
    transform: translateX(38px);
}

/* Tema göstergeleri */
.theme-toggle-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .theme-toggle-circle::before {
    background-color: #2c3e50;
    box-shadow: inset 0 0 2px #fff;
}

html[data-theme="light"] .theme-toggle-circle::before {
    background-color: #f1c40f;
    box-shadow: 0 0 4px #f39c12;
}

/* Aydınlık tema göstergeleri - eski kodları kaldırdık */
html[data-theme="dark"] .theme-toggle-circle::before,
html[data-theme="light"] .theme-toggle-circle::before {
    display: none;
}

/* Genel Stiller */
body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.container {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 24px;
    background: var(--bg-secondary);
    padding: 32px 24px;
    width: 1320px;
    min-height: 650px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    margin: 40px auto;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

@media (max-width: 1400px) {
    .container {
        width: 95vw;
        min-height: 500px;
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 16px 4px;
        overflow: visible;
    }

    .editor-container {
        margin-left: 0;
        width: 100%;
    }

    .sidebar {
        min-width: 0;
        max-width: 100vw;
        width: 100%;
        margin-bottom: 24px;
        padding: 16px 4px 28px 4px;
        align-items: center;
        box-sizing: border-box;
        overflow: hidden;
    }

    .selection-info,
    .wpm-info,
    .max-wpm-info,
    .last-wpm-info {
        width: 98%;
        max-width: 400px;
        margin-bottom: 16px;
    }

    #code-editor {
        width: 98vw;
        min-width: 0;
        max-width: 100vw;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: static;
    min-width: 220px;
    max-width: 260px;
    width: 240px;
    background: var(--bg-tertiary);
    border-radius: 18px;
    padding: 24px 12px 32px 12px;
    box-shadow: 0 2px 16px var(--shadow-color);
    box-sizing: border-box;
    overflow: visible;
    align-items: center;
    justify-content: space-between;
    height: 600px;
    margin-right: 24px;
    z-index: 50;
}

.sidebar.hidden {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    width: 100%;
}

.sidebar-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language-panel,
.timer-panel {
    background: var(--bg-editor);
    border-radius: 12px;
    padding: 18px 14px 10px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px var(--shadow-color);
    transition: box-shadow 0.2s;
}

.language-panel:hover,
.timer-panel:hover {
    box-shadow: 0 4px 16px rgba(80, 250, 123, 0.08);
}

/* --- Dropdown Toggle Button --- */
.dropdown-toggle {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), rgba(var(--accent-secondary-rgb), 0.8));
    color: var(--bg-editor);
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    outline: none;
    position: relative;
    overflow: hidden;
}

.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.dropdown-toggle:focus,
.dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.arrow {
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.dropdown-toggle.active .arrow {
    transform: rotate(-180deg);
    background-color: rgba(255, 255, 255, 0.25);
}

/* Dil seçimi için özel stil - Tema rengine göre dinamik */
.language-panel .dropdown-toggle {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.language-panel .dropdown-toggle:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0.9;
}

/* Zaman seçimi için özel stil - Tema rengine göre dinamik */
.timer-panel .dropdown-toggle {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.timer-panel .dropdown-toggle:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0.9;
}

/* Devre dışı buton stili */
.dropdown-toggle.disabled {
    background: linear-gradient(90deg, #2c3e50, #34495e);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    box-shadow: none;
}

.dropdown-toggle.disabled:hover {
    transform: none;
    box-shadow: none;
}

.dropdown-toggle.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

/* --- Dropdown Popup --- */
.dropdown-popup {
    display: none;
    position: absolute;
    left: 0;
    top: 68px;
    min-width: 180px;
    width: 100%;
    max-width: 220px;
    max-height: 300px;
    /* 5 öğe için yükseklik sınırı */
    overflow-y: auto;
    /* Scroll bar ekle */
    background: var(--bg-editor);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    /* Increased z-index to ensure visibility */
    padding: 10px 0;
    animation: fadeIn 0.2s;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.1);
    backdrop-filter: blur(5px);
}

/* Masaüstü görünümü için özel dropdown görünürlük kuralı */
.dropdown-popup.active {
    display: block !important;
}

/* Language dropdown için position absolute kullanarak diğer elementlerin üzerine bin */
.sidebar #languageDropdown {
    position: absolute !important;
    top: 80px !important;
    /* Dropdown menüyü daha da aşağıya kaydırdık */
    left: 0 !important;
    width: 100% !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Custom scrollbar stili */
.dropdown-popup::-webkit-scrollbar {
    width: 6px;
}

.dropdown-popup::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 12px 12px 0;
}

.dropdown-popup::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.dropdown-popup::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.dropdown-popup .dropdown-item {
    padding: 12px 20px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0 8px 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-popup .dropdown-item:hover {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-secondary);
    transform: translateX(2px);
}

.language-panel,
.timer-panel {
    position: relative;
    z-index: 500;
    /* Arttırılmış z-index değeri */
}

/* Programlama dili logoları */
.dropdown-item .lang-logo {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Dil bazında özel renkler */
.dropdown-item[data-lang="Python"] .lang-logo {
    color: #FFD43B;
    background-color: rgba(53, 114, 165, 0.2);
}

.dropdown-item[data-lang="Java"] .lang-logo {
    color: #E76F00;
    background-color: rgba(1, 71, 110, 0.2);
}

.dropdown-item[data-lang="Html"] .lang-logo {
    color: #E34F26;
    background-color: rgba(227, 79, 38, 0.2);
}

.dropdown-item[data-lang="Css"] .lang-logo {
    color: #264DE4;
    background-color: rgba(38, 77, 228, 0.2);
}

.dropdown-item[data-lang="JavaScript"] .lang-logo {
    color: #F7DF1E;
    background-color: rgba(50, 50, 50, 0.2);
}

.dropdown-item[data-lang="PHP"] .lang-logo {
    color: #777BB4;
    background-color: rgba(119, 123, 180, 0.2);
}

.dropdown-item[data-lang="C"] .lang-logo {
    color: #A8B9CC;
    background-color: rgba(168, 185, 204, 0.2);
}

.dropdown-item[data-lang="C++"] .lang-logo {
    color: #00599C;
    background-color: rgba(0, 89, 156, 0.2);
}

.dropdown-item[data-lang="C#"] .lang-logo {
    color: #68217A;
    background-color: rgba(104, 33, 122, 0.2);
}

.dropdown-item[data-lang="SQL"] .lang-logo {
    color: #CC2927;
    background-color: rgba(204, 41, 39, 0.2);
}

.dropdown-item[data-lang="Swift"] .lang-logo {
    color: #FA7343;
    background-color: rgba(250, 115, 67, 0.2);
}

.dropdown-item[data-lang="Assembly"] .lang-logo {
    color: #6E4C13;
    background-color: rgba(110, 76, 19, 0.2);
}

/* Dropdown aktifken göster */
.dropdown-popup.active {
    display: block;
}

/* Panel label ve eski dropdown'u kaldır */
.panel-label,
.dropdown {
    display: none !important;
}

.selection-info {
    background: var(--bg-editor);
    padding: 10px;
    border-radius: 16px;
    width: 90%;
    max-width: 260px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 15px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.1);
}

/* Bilgi bölümleri */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Bölüm başlıkları */
.info-header {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-header i {
    color: var(--accent-primary);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* Ayırıcı çizgi */
.info-divider {
    height: 1px;
    background: linear-gradient(to right,
            rgba(var(--accent-primary-rgb), 0.2),
            rgba(var(--accent-secondary-rgb), 0.2));
    margin: 2px 0;
}

/* Değer gösterimi */
.info-value {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

/* Seçilen dil için logo gösterimi */
.selected-lang-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(var(--accent-primary-rgb), 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}


.selected-lang-logo {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

/* Seçilen zaman için stil */
.time-container {
    background-color: rgba(var(--accent-secondary-rgb), 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--accent-secondary);
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* Dark tema için selection-info görünümü */
html[data-theme="dark"] .selection-info {
    background: linear-gradient(135deg, #2c3e50, #1a1f25);
    border: 1px solid rgba(80, 250, 123, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Light tema için selection-info görünümü */
html[data-theme="light"] .selection-info {
    background: linear-gradient(135deg, #f5f7fa, #e4e8ec);
    border: 1px solid rgba(46, 204, 113, 0.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.wpm-info {
    background: var(--bg-editor);
    padding: 16px 8px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top: auto;
    margin-bottom: 16px;
    position: static;
    transform: none;
    align-self: center;
    position: relative;
    overflow: hidden;
}

.wpm-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.wpm-info p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wpm-info #wpm-value {
    font-weight: 700;
    color: var(--accent-secondary);
    font-size: 24px;
    transition: color 0.3s ease;
}

.wpm-info .wpm-label {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 600;
    background: rgba(var(--accent-secondary-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* En Yüksek WPM Bilgisi */
.max-wpm-info {
    background: var(--bg-editor);
    padding: 16px 8px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    position: relative;
    align-self: center;
    overflow: hidden;
    opacity: 0;
    height: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease, padding 0.5s ease;
}

.max-wpm-info.visible {
    opacity: 1;
    height: auto;
    transform: translateY(0);
    padding: 16px 8px;
}

.max-wpm-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f1c40f, #e67e22);
}

.max-wpm-info p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.max-wpm-info #max-wpm-value {
    font-weight: 700;
    color: #f1c40f;
    font-size: 24px;
    transition: all 0.3s ease;
}

.max-wpm-info.new-record #max-wpm-value {
    animation: pulse-gold 1.5s ease;
}

.max-wpm-info .wpm-label {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 600;
    background: rgba(241, 196, 15, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Yeni rekor animasyonu */
@keyframes pulse-gold {

    0%,
    100% {
        color: #f1c40f;
        text-shadow: 0 0 0 rgba(241, 196, 15, 0);
    }

    50% {
        color: #f39c12;
        text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
    }
}

.editor-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#code-editor {
    display: flex;
    background: var(--bg-editor);
    border: 1.5px solid var(--bg-tertiary);
    border-radius: 14px;
    padding: 18px 0 18px 0;
    width: 950px;
    height: 540px;
    overflow-y: auto;
    overflow-x: auto;
    /* Yatay scroll'u etkinleştir */
    position: relative;
    box-sizing: border-box;
    margin-bottom: 24px;
    scroll-behavior: auto;
}

/* Orta işaretleyici çizgisi - Sadece geliştirici modunda görünür */
#code-editor::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: rgba(255, 0, 0, 0.1);
    /* Çok hafif kırmızı renk */
    pointer-events: none;
    /* Tıklamalara tepki vermesin */
    z-index: 100;
    opacity: 0;
    /* Varsayılan olarak görünmez */
}

/* Geliştirici modu için sınıf */
.dev-mode #code-editor::after {
    opacity: 0.5;
    /* Geliştirici modunda görünür */
}

#line-numbers {
    width: 48px;
    text-align: right;
    padding-right: 14px;
    color: var(--text-secondary);
    user-select: none;
    border-right: 1.5px solid var(--bg-tertiary);
    margin-right: 0;
    font-size: 18px;
    overflow-y: hidden;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: var(--bg-editor);
}

#line-numbers span {
    display: block;
    line-height: 1.7;
    font-size: 18px;
    height: auto;
    min-height: 1.7em;
}

#code-content {
    flex: 1;
    font-size: 18px;
    user-select: none;
    white-space: pre;
    /* pre yerine nowrap kullanarak satırların taşmasını sağla */
    position: relative;
    text-align: left;
    padding-left: 16px;
    margin-left: 0;
    overflow-y: visible;
    overflow-x: visible;
    /* Yatay taşmaya izin ver ama scrollbar gösterme */
    min-width: 100%;
    /* En az container genişliği kadar */
    width: max-content;
    /* İçeriğe göre genişlik - auto yerine max-content kullanıyoruz */
    scrollbar-width: none;
    /* Firefox için scrollbar gizleme */
    -ms-overflow-style: none;
    /* IE ve Edge için scrollbar gizleme */
    scroll-behavior: smooth;
    /* Tarayıcı destekliyorsa smooth scrolling */
}

/* Webkit tarayıcılar için scrollbar gizleme */
#code-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}


.line {
    display: block;
    line-height: 1.7;
    text-align: left;
    height: 30px;
    box-sizing: border-box;
    white-space: pre;
    /* Satırların taşmasını sağla */
    min-width: max-content;
    /* İçeriğe göre genişlik */
    width: max-content;
    /* İçeriğin tam genişliğini kaplasın */
    padding-right: 200px;
    /* Sağ tarafta boşluk bırak */
}

#code-content,
#input,
.char {
    font-family: "Courier New", monospace;
    font-size: 24px;
}

#input {
    width: 14px;
    height: 24px;
    background: transparent;
    color: transparent;
    border: none;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    caret-color: var(--theme-caret-color);
    line-height: 1;
    vertical-align: top;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
    text-align: left;
    direction: ltr;

}

/* Cursor için yanıp sönme animasyonu */
@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.char {
    display: inline-block;
    opacity: 0.5;
    width: 14px;
    text-align: center;
    line-height: 1;
    vertical-align: top;
    font-family: "Courier New", monospace;
    font-size: 24px;
    color: var(--text-primary);
    color: var(--light-text-theme);
    position: relative;
}

/* Boşluk karakterleri için özel stil 
.char:empty::before,
.char:empty::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 8px;
    left: 3px;
}
    */

/* Sözdizimi renklendirme */
.keyword {
    color: var(--accent-secondary);
}

.string {
    color: #f1fa8c;
}

.function {
    color: var(--accent-primary);
}

.tag {
    color: #8be9fd;
}

.property {
    color: #bd93f9;
}

.comment {
    color: #6272a4;
}

.number {
    color: #ffb86c;
}

.attribute {
    color: #66d9ef;
}

.typed-correct {
    opacity: 1;
    /* color: var(--accent-primary); Doğru yazılımış kod renkleri */
}

.typed-incorrect {
    background: var(--error-color);
    color: transparent;
    opacity: 1;
    display: inline-block;
    width: 14px;
    height: 24px;
    text-align: center;
    border-radius: 4px;
}

#timer {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--bg-editor);
    padding: 8px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(80, 250, 123, 0.04);
    min-width: 80px;
    text-align: center;
}

#timer .fa-infinity {
    font-size: 24px;
}

.selection-info .fa-infinity {
    font-size: 18px;
}

/* Dropdown içindeki sonsuzluk işareti için stil */
.dropdown-item .fa-infinity {
    margin-left: 4px;
}

#refreshBtn {
    margin-top: 0;
    padding: 12px 32px;
    font-size: 16px;
    background: linear-gradient(90deg, var(--bg-editor) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(80, 250, 123, 0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#refreshBtn:hover {
    background: var(--accent-primary);
    background: var(--dark-theme-primary);
    color: var(--bg-editor);
    box-shadow: 0 4px 16px rgba(80, 250, 123, 0.12);
}

#refreshBtn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Eski resetBtn stilini kaldır */
#resetBtn {
    display: none;
}

/* Modern scroll bar (gizli olsa da stil tanımla) */
#code-editor::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: var(--bg-tertiary);
    display: block;
}

#code-editor::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
    display: block;
}

#code-editor::-webkit-scrollbar-track {
    background: var(--bg-editor);
    border-radius: 4px;
    display: block;
}

/* Yatay scrollbar için özel stiller */
#code-editor::-webkit-scrollbar-thumb:horizontal {
    background: var(--accent-primary);
    border-radius: 4px;
    display: block;
}

#code-editor::-webkit-scrollbar-track:horizontal {
    background: var(--bg-editor);
    border-radius: 4px;
    display: block;
}

/* Sidebar içindeki panel butonları hizalaması */
.language-panel,
.timer-panel {
    margin-bottom: 0;
    padding-bottom: 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ana İçerik Alanı */
.main-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Sayfalar */
.page {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.page.active {
    display: flex;
}

@media (max-width: 768px) {
    .page {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        display: none !important;
        overflow-x: hidden !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas: none !important;
    }

    .page.active {
        display: block !important;
        opacity: 1 !important;
    }
}

/* Hamburger Menü Butonu */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(44, 47, 51, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.menu-toggle:hover {
    background: var(--accent-primary);
    background: var(--dark-theme-primary);
    transform: scale(1.05);
}

.menu-toggle i {
    font-size: 24px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.menu-toggle:hover i {
    color: var(--bg-editor);
}

/* Hamburger icon'un font boyutunu tanımlayalım */
.menu-toggle i.fa-bars {
    font-size: 22px;
    /* Standart bir büyüklük */
}

/* Ana sayfa butonunun icon ve text boyutları */

/* Sol Taraf Açılır Menü */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(34, 34, 40, 0.98);
    z-index: 1001;
    padding: 20px 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-header h2 {
    font-size: 20px;
    margin: 0;
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.close-menu:hover {
    color: var(--error-color);
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex: 1;
}

.menu-items li {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.menu-items li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-items li:hover {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
}

.menu-items li.active {
    background: rgba(var(--accent-primary-rgb), 0.2);
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
    border-left: 4px solid var(--accent-primary);

}

.menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 10px;
    font-size: 11px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* İletişim Sayfası */
.contact-container {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-editor);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    margin: 40px auto;
    display: flex;
    flex-direction: column;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h1 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 32px;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.contact-form {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group .required {
    color: var(--error-color);
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--border-color);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(var(--error-color-rgb), 0.2);
}

.form-group .error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .error-message.visible {
    display: block;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-editor);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin: 10px 20px;
}

.info-item i {
    font-size: 20px;
    color: var(--accent-primary);
    margin-right: 10px;
}

.info-item p {
    color: var(--text-primary);
}

/* Bildirim */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: #f44336;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    font-size: 20px;
    margin-right: 10px;
}

#notification-message {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .info-item {
        margin: 10px 0;
    }
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.2s ease;
    appearance: none;
    /* Tarayıcı varsayılan stilini kaldır */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2350fa7b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--border-color);
}

.form-group select option {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px;
    font-size: 16px;
}

/* Aydınlık tema için sözdizimi renklendirme */
html[data-theme="light"] .keyword {
    color: #8e44ad;
}

html[data-theme="light"] .string {
    color: #27ae60;
}

html[data-theme="light"] .function {
    color: #2980b9;
}

html[data-theme="light"] .tag {
    color: #16a085;
}

html[data-theme="light"] .property {
    color: #8e44ad;
}

html[data-theme="light"] .comment {
    color: #7f8c8d;
}

html[data-theme="light"] .number {
    color: #e67e22;
}

html[data-theme="light"] .attribute {
    color: #3498db;
}

/* Son WPM Bilgisi */
.last-wpm-info {
    background: var(--bg-editor);
    padding: 16px 8px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    position: static;
    transform: none;
    align-self: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    height: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease, padding 0.5s ease;
}

.last-wpm-info.visible {
    opacity: 1;
    height: auto;
    transform: translateY(0);
    padding: 16px 8px;
}

.last-wpm-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.last-wpm-info p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.last-wpm-info #last-wpm-value {
    font-weight: 700;
    color: #3498db;
    font-size: 24px;
    transition: all 0.3s ease;
}

.last-wpm-info.updated #last-wpm-value {
    animation: pulse-blue 1.5s ease;
}

.last-wpm-info .wpm-label {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Son WPM animasyonu */
@keyframes pulse-blue {

    0%,
    100% {
        color: #3498db;
        text-shadow: 0 0 0 rgba(52, 152, 219, 0);
    }

    50% {
        color: #2980b9;
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    }
}

/* Skor Tablosu */
.score-panel {
    position: absolute;
    top: 140px;
    /* Kod yazma alanı ile aynı hizaya gelmesi için 140px olarak ayarlandı */
    right: 30px;
    transform: none;
    width: 220px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 990;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .score-panel {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        top: auto;
        right: auto;
        order: 6;
    }
}

.score-panel:hover {
    transform: translateY(3px);
    box-shadow: 0 6px 25px rgba(var(--accent-primary-rgb), 0.15);
}

.score-header {
    padding: 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-header h3 i {
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
}

.toggle-score-panel {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-score-panel:hover {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
}

.score-panel.collapsed {
    transform: translateY(-50%) translateX(-190px);
}

.score-panel.collapsed:hover {
    transform: translateY(-50%) translateX(-180px);
}

.score-panel.collapsed .toggle-score-panel i {
    transform: rotate(180deg);
}

.score-content {
    padding: 16px;
}

.score-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-editor);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.score-icon i {
    font-size: 16px;
}

.current-wpm .score-icon i {
    color: var(--accent-secondary);
}

.last-wpm .score-icon i {
    color: #3498db;
}

.max-wpm .score-icon i {
    color: #f1c40f;
}

.score-data {
    flex: 1;
}

.score-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.score-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.current-wpm .score-value {
    color: var(--accent-secondary);
}

.last-wpm .score-value {
    color: #3498db;
}

.max-wpm .score-value {
    color: #f1c40f;
}

.score-unit {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 4px;
    display: inline-block;
    background: rgba(var(--accent-secondary-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.max-wpm .score-unit {
    background: rgba(241, 196, 15, 0.1);
}

.last-wpm .score-unit {
    background: rgba(52, 152, 219, 0.1);
}

/* Skor panelindeki sıfırlama butonu stilini kaldırdık */

/* Skor animasyonları */
@keyframes pulse-value {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.current-wpm .score-value.updated {
    animation: pulse-value 0.5s ease;
    color: var(--accent-primary);
}

.last-wpm .score-value.updated {
    animation: pulse-value 0.5s ease;
    color: #2980b9;
}

.max-wpm .score-value.updated {
    animation: pulse-value 0.5s ease;
    color: #f39c12;
}

/* Yazma sırasında anlık hız dışındaki skorları gizle */
.typing-active .last-wpm,
.typing-active .max-wpm {
    display: none;
}

/* Yazma sırasında anlık hızı büyüt */
.typing-active .current-wpm {
    transform: scale(1.2);
    margin: 10px auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--accent-secondary-rgb), 0.2);
}

.typing-active .score-header {
    padding: 10px 16px;
    transition: padding 0.3s ease;
}

.typing-active .score-content {
    padding-top: 10px;
    padding-bottom: 10px;
}

.typing-active .current-wpm .score-value {
    font-size: 38px;
    transition: font-size 0.3s ease;
    line-height: 1.2;
}

/* Anlık hız pulse animasyonu */
@keyframes pulse-effect {
    0% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1.2);
    }
}

.typing-active .current-wpm.pulse {
    animation: pulse-effect 0.5s ease;
    box-shadow: 0 5px 20px rgba(var(--accent-secondary-rgb), 0.3);
}

/* WPM değeri güncellendiğinde animasyon */
@keyframes number-change {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        color: var(--accent-primary);
    }

    100% {
        transform: scale(1);
    }
}

.typing-active .current-wpm .score-value.updated {
    animation: number-change 0.3s ease;
}

/* Responsive tasarım için skor paneli */
@media (max-width: 1400px) {
    .score-panel {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 600px;
        transform: none;
        margin: 20px auto;
    }

    .score-panel:hover {
        transform: none;
    }

    .toggle-score-panel {
        display: none;
    }

    .score-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .score-item {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .score-panel {
        position: relative;
        top: 0;
        right: 0;
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
    }

    .score-content {
        flex-direction: column;
    }

    .score-item {
        margin-bottom: 10px;
    }

    .score-item:last-child {
        margin-bottom: 0;
    }

    .typing-active .current-wpm {
        transform: scale(1.1);
    }

    .typing-active .current-wpm .score-value {
        font-size: 32px;
    }
}

/* Genel gizleme sınıfı */
.hidden {
    display: none !important;
}

/* Skor tablosu altındaki buton */
.score-footer {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Removed home-button styles */

/* Typing Stats Buton düzeltmesi */
.typing-stats-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-editor) !important;
    border: none;
    border-radius: 25px;
    padding: 12px 0px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.15);
    overflow: hidden;
}

.typing-stats-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.typing-stats-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(var(--accent-primary-rgb), 0.2);
}

.typing-stats-btn i {
    font-size: 18px;
}

/* Typing Stats Sayfası */
.stats-container {
    width: 90%;
    max-width: 1200px;
    background: var(--bg-editor);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    margin: 40px auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h1 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 32px;
}

.stats-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-container {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    height: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stats-summary {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.stats-card {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stats-card-header i {
    font-size: 20px;
    color: var(--accent-primary);

}

.stats-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.stats-card-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.stats-card-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-history {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stats-history h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(var(--border-color), 0.2);
}

.stats-table th {
    color: var(--accent-primary);
    font-weight: 600;
    background-color: rgba(var(--accent-primary-rgb), 0.05);
}

.stats-table tbody tr {
    transition: background-color 0.2s ease;
}

.stats-table tbody tr:hover {
    background-color: rgba(var(--accent-secondary-rgb), 0.05);
}

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

/* Responsive tasarım */
@media (max-width: 768px) {
    .stats-container {
        padding: 20px;
    }

    .stats-summary {
        flex-direction: column;
    }

    .chart-container {
        height: 300px;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Sayfalar arası bağlantılar */
.menu-items li a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.menu-items li.active a {
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
}

.typing-stats-btn {
    color: var(--bg-editor);
    text-decoration: none;
}

/* Harici sayfalar için ana sayfa stili */
body.modern-ui .page {
    display: flex;
}

@media (max-width: 768px) {
    body.modern-ui .page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas: none !important;
    }
}

/* Responsive tasarım için butonları uyarlama */
@media (max-width: 768px) {

    .theme-toggle,
    .menu-toggle,
    .login-button,
    .login-button-top {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-image {
        width: 20px;
        height: 20px;
    }

    .theme-toggle-track {
        width: 45px;
        height: 24px;
    }

    .theme-toggle-circle {
        width: 18px;
        height: 18px;
    }

    html[data-theme="light"] .theme-toggle-circle {
        transform: translateX(24px);
    }

    .theme-toggle-icon i {
        font-size: 10px !important;
    }

    .theme-toggle-icon .fa-sun {
        margin-left: 3px !important;
    }

    .theme-toggle-icon .fa-moon {
        margin-right: 3px !important;
    }

    .menu-toggle i.fa-bars,
    .home-button .logo-image,
    .home-button .logo-text,
    .login-button a i.fa-user,
    .login-button-top a i.fa-user {
        font-size: 14px !important;
        /* Mobilde buton içi iconlar ve yazılar */
    }

    .home-button {
        max-width: 130px;
    }
}

/* Kod tamamlandı mesajı için stiller */
.code-completed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.code-completed-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.code-completed-message {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 32px 48px;
    border-radius: 16px;
    font-size: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.5s ease;
}

.code-completed-message i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 10px;
}

.code-completed-message h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.code-completed-message p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Kod yazma alanı bulanıklaştırma */
.code-blur {
    filter: blur(4px) grayscale(0.2) brightness(0.8);
    pointer-events: none;
    user-select: none;
}

/* Hakkında Sayfası Stili */
.about-container {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-tertiary);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    margin: 40px auto;
    color: var(--text-primary);
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.about-header h1 {
    color: var(--accent-primary);
    font-size: 36px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.about-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.about-section {
    display: flex;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-icon {
    flex: 0 0 80px;
    font-size: 36px;
    color: var(--accent-primary);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    color: var(--accent-secondary);
    font-size: 24px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    display: inline-block;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.feature-list li i {
    color: var(--accent-primary);
    font-size: 20px;
    padding-top: 2px;
}

.feature-list li strong {
    color: var(--accent-secondary);
}

/* Gelecek Güncellemeler - Roadmap */
.roadmap-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.roadmap-section h2 {
    color: var(--accent-primary);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.roadmap-timeline {
    position: relative;
    padding: 20px 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

.roadmap-item {
    position: relative;
    padding-left: 150px;
    margin-bottom: 30px;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: 115px;
    top: 15px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-secondary);
    z-index: 1;
}

.roadmap-date {
    position: absolute;
    left: 0;
    top: 10px;
    width: 100px;
    text-align: right;
    font-weight: bold;
    color: var(--accent-secondary);
    font-size: 18px;
}

.roadmap-content {
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 3px solid var(--accent-primary);
}

.roadmap-content h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.roadmap-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.roadmap-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* CTA Bölümü */
.cta-section {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.cta-section h2 {
    color: var(--accent-primary);
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-editor) !important;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.4);
}

.cta-button i {
    font-size: 20px;
}

/* Mobil Duyarlı Tasarım */
@media (max-width: 768px) {
    .about-container {
        padding: 20px;
        width: 95%;
    }

    .about-section {
        flex-direction: column;
        padding: 20px;
    }

    .about-icon {
        margin-bottom: 15px;
        justify-content: flex-start;
    }

    .roadmap-timeline::before {
        left: 25px;
    }

    .roadmap-item {
        padding-left: 50px;
    }

    .roadmap-item::before {
        left: 20px;
    }

    .roadmap-date {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
        padding-left: 35px;
    }
}

/* Tema Geçişi */
html[data-theme="light"] .about-content h2 {
    color: #9b59b6;
}

html[data-theme="light"] .feature-list li i {
    color: #2ecc71;
}

html[data-theme="light"] .feature-list li strong {
    color: #9b59b6;
}

html[data-theme="light"] .roadmap-timeline::before {
    background: linear-gradient(to bottom, #2ecc71, #9b59b6);
}

html[data-theme="light"] .roadmap-item::before {
    background: #2ecc71;
}

html[data-theme="light"] .roadmap-date {
    color: #9b59b6;
}

html[data-theme="light"] .roadmap-content {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

html[data-theme="light"] .roadmap-content h3 {
    color: #2ecc71;
}

/* Seçilen zaman için stil */
.selection-info .time-container {
    background-color: rgba(var(--accent-secondary-rgb), 0.08);
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 600;
    color: var(--accent-secondary);
}

/* Giriş Butonu */
.login-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-radius: 40px;
    padding: 8px 16px;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

/* Giriş Butonu - Tema Butonunun Yanında */
.login-button-top {
    position: fixed;
    top: 20px;
    right: 20px;
    /* Sağ üst köşede konumlandırma */
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-radius: 40px;
    padding: 8px 16px;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.login-button:hover,
.login-button-top:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
    background-color: rgba(var(--accent-primary-rgb), 0.1);
    border-color: var(--accent-primary);
}

.login-button a,
.login-button-top a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 8px;
}

.login-button i,
.login-button-top i {
    color: var(--accent-primary);
    font-size: 16px;
}

.login-button:hover a,
.login-button-top:hover a {
    color: var(--accent-primary);
}

/* Bildirim Hata Stili */
.notification.error .notification-content i {
    color: var(--error-color);
}

.notification.error {
    background-color: rgba(var(--error-color-rgb), 0.1);
    border-color: var(--error-color);
}

/* Mobil Uyumluluk - Login Button */
@media (max-width: 768px) {

    .login-button span,
    .login-button-top span {
        display: none;
    }

    .login-button,
    .login-button-top {
        padding: 8px;
    }

    .login-button i,
    .login-button-top i {
        font-size: 18px;
    }
}

/* Stats sayfası için giriş overlay */
.stats-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 16px;
}


.stats-login-message {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease-out;
}

.stats-login-message i {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: block;
}

.stats-login-message h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.stats-login-message p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.stats-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--bg-editor);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}

.stats-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

.stats-login-btn i {
    font-size: 18px;
    margin-right: 8px;
    color: var(--bg-editor);
    display: inline;
    margin-bottom: 0;
}

/* Blur efekti için stil */
.stats-blurred .chart-container,
.stats-blurred .stats-summary,
.stats-blurred .stats-history {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Animasyon */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aydınlık tema için ayarlamalar */
html[data-theme="light"] .stats-login-overlay {
    background: rgba(255, 255, 255, 0.8);
}

/* Stats sayfası için giriş overlay */
.stats-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

/* Dil Filtresi Stilleri */
.stats-filter {
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: inline-flex;
    max-width: fit-content;
}


.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.filter-dropdown label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    margin-right: 2px;
}

.language-select {
    background: var(--bg-editor);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e7681' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    transition: all 0.2s ease;
}

.language-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.15);
    transform: translateY(-1px);
}

.language-select:hover {
    border-color: var(--accent-primary);
}

.filter-button {
    background: var(--accent-primary);
    background: var(--dark-them-fileter-button);
    color: var(--bg-editor);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

.filter-button i {
    font-size: 14px;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .stats-filter {
        display: flex;
        max-width: 100%;
        width: 100%;
    }

    .filter-dropdown {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .language-select {
        flex: 1;
    }
}

/* Filtrelerde veri olmaması durumu için stil */
.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--bg-editor);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 30px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.no-data-message i {
    font-size: 60px;
    margin-bottom: 25px;
    opacity: 0.5;
    color: var(--accent-primary);
}

.no-data-message p {
    font-size: 18px;
    font-weight: 500;
    max-width: 350px;
    line-height: 1.6;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .no-data-message {
        height: 250px;
        padding: 20px;
    }

    .no-data-message i {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .no-data-message p {
        font-size: 16px;
    }
}

/* Tema Seçici */
.theme-selector {
    position: fixed;
    top: 70px;
    left: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    z-index: 1000;
    width: 280px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.theme-selector.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    overflow-y: auto;
}

.theme-selector-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-selector-header .close-themes {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.theme-selector-header .close-themes:hover {
    color: var(--text-primary);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 400px;
    padding-right: 5px;
}

.theme-option {
    position: relative;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 18px 5px 5px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.theme-option.active {
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.theme-option .theme-check {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--accent-primary);
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.theme-option.active .theme-check {
    opacity: 1;
}

.theme-option .theme-name {
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-option-light .theme-name {
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.theme-option-vintage .theme-name {
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Tema Arka Plan Stilleri */
.theme-option-dark {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

.theme-option-light {
    background: linear-gradient(135deg, #e6e9f0 0%, #eef1f5 100%);
}



.theme-option-tropical {
    background: linear-gradient(135deg, #FFFBDE 0%, #90D1CA 50%, #129990 75%, #096B68 100%);
}

.theme-option-vintage {
    background: linear-gradient(135deg, #F2F2F2 0%, #EAE4D5 50%, #B6B09F 75%, #000000 100%);
}

.theme-option-navy {
    background: linear-gradient(135deg, #333446 0%, #7F8CAA 50%, #B8CFCE 75%, #EAEFEF 100%);
}

.theme-option-sunset {
    background: linear-gradient(135deg, #00809D 0%, #FCECDD 50%, #FF7601 75%, #F3A26D 100%);
}

/* Tema Renk Tanımlamaları */

/* Yeni Tema: Tropikal */
html[data-theme="tropical"] {
    --bg-primary: #096B68;
    --bg-secondary: #129990;
    --bg-editor: #90D1CA;
    --border-color: #096B68;
    --text-primary: #096B68;
    --text-secondary: #129990;
    --accent-primary: #096B68;
    --accent-secondary: #129990;
    --shadow-color: rgba(9, 107, 104, 0.2);
    --scrollbar-thumb: #096B68;
    --scrollbar-track: #90D1CA;

    --palette-color-1: #FFFBDE;
    --palette-color-2: #90D1CA;
    --palette-color-3: #129990;
    --palette-color-4: #096B68;
}

/* Yeni Tema: Vintage */
html[data-theme="vintage"] {
    --bg-primary: #F2F2F2;
    --bg-secondary: #EAE4D5;
    --bg-editor: #F2F2F2;
    --border-color: #B6B09F;
    --text-primary: #000000;
    --text-secondary: #B6B09F;
    --accent-primary: #B6B09F;
    --accent-secondary: #000000;
    --shadow-color: rgba(182, 176, 159, 0.2);
    --scrollbar-thumb: #B6B09F;
    --scrollbar-track: #F2F2F2;

    --palette-color-1: #F2F2F2;
    --palette-color-2: #EAE4D5;
    --palette-color-3: #B6B09F;
    --palette-color-4: #000000;
}

/* Yeni Tema: Lacivert */
html[data-theme="navy"] {
    --bg-primary: #333446;
    --bg-secondary: #7F8CAA;
    --bg-editor: #B8CFCE;
    --border-color: #333446;
    --text-primary: #EAEFEF;
    --text-secondary: #B8CFCE;
    --accent-primary: #7F8CAA;
    --accent-secondary: #EAEFEF;
    --shadow-color: rgba(51, 52, 70, 0.2);
    --scrollbar-thumb: #7F8CAA;
    --scrollbar-track: #B8CFCE;

    --palette-color-1: #333446;
    --palette-color-2: #7F8CAA;
    --palette-color-3: #B8CFCE;
    --palette-color-4: #EAEFEF;
}

/* Yeni Tema: Günbatımı */
html[data-theme="sunset"] {
    --bg-primary: #00809D;
    --bg-secondary: #F3A26D;
    --bg-editor: #FCECDD;
    --border-color: #FF7601;
    --text-primary: #00809D;
    --text-secondary: #F3A26D;
    --accent-primary: #FF7601;
    --accent-secondary: #00809D;
    --shadow-color: rgba(0, 128, 157, 0.2);
    --scrollbar-thumb: #FF7601;
    --scrollbar-track: #FCECDD;

    --palette-color-1: #00809D;
    --palette-color-2: #FCECDD;
    --palette-color-3: #FF7601;
    --palette-color-4: #F3A26D;
}

/* Tema Seçici Stili Güncellemeleri */
/* Özel tema seçici ile ilgili stiller kaldırıldı */

/* Özel tema renk seçici stiller kaldırıldı */

/* Tema Arka Plan Stilleri */
.theme-option-dark {
    background: linear-gradient(135deg, #282a36 0%, #44475a 100%);
}

.theme-option-light {
    background: linear-gradient(135deg, #f5f5f5 0%, #e4e4e4 100%);
}



.theme-option-teal {
    background: linear-gradient(135deg, #009688 0%, #26a69a 100%);
}

.theme-option-orange {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.theme-option-brown {
    background: linear-gradient(135deg, #795548 0%, #8d6e63 100%);
}

.theme-option-gray {
    background: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
}

/* Yeni Tema Renk Tanımlamaları */

/* Eski Turkuaz tema tanımı kaldırıldı */

/* Eski Turuncu tema tanımı kaldırıldı */

/* Eski Kahverengi tema tanımı kaldırıldı */

/* Eski Gri tema tanımı kaldırıldı */

/* Özel tema CSS kaldırıldı */

/* Tema Tanımlamaları - Yeni Gelişmiş Renk Sistemi */

/* Koyu Tema */
html[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #232526 0%, #414345 100%);
    --bg-secondary: rgba(34, 34, 40, 0.95);
    --bg-tertiary: rgba(44, 47, 51, 0.95);
    --bg-input: rgba(34, 34, 40, 0.7);
    --bg-editor: #181a20;
    --text-primary: #f5f6fa;
    --text-secondary: #b2becd;
    --accent-primary: #045D56;
    --theme-caret-color: #1EB980;
    --accent-secondary: #1EB980;
    --border-color: rgba(30, 185, 128, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --error-color: #ff5555;
    --success-color: rgba(30, 185, 128, 0.9);

    --dark-theme-primary: #1EB980;


    /* RGB değerleri */
    --accent-primary-rgb: 30, 185, 128;
    --accent-secondary-rgb: 4, 93, 86;
    --error-color-rgb: 255, 85, 85;

    /* Palet renkleri */
    --palette-color-1: #1EB980;
    --palette-color-2: #045D56;
    --palette-color-3: #17a56f;
    --palette-color-4: #033f3a;
}

/* Açık Tema */
html[data-theme="light"] {

    --bg-primary: linear-gradient(135deg, #f9f5f0 0%, #efe5dc 100%);
    --bg-secondary: rgba(249, 245, 240, 0.95);
    --bg-tertiary: rgba(239, 229, 220, 0.95);
    --bg-input: rgba(240, 249, 246, 0.7);
    --bg-editor: #e6dad2;

    --text-primary: #7c665f;
    --light-text-theme: #000000;
    --text-secondary: #8d6e63;

    --accent-primary: #8a4f39;
    --theme-caret-color: #8a4f39;
    --accent-secondary: #a1887f;

    --border-color: rgba(99, 141, 112, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.25);
    --error-color: #d32f2f;
    --success-color: rgba(76, 175, 80, 0.85);

    /* RGB değerleri */
    --accent-primary-rgb: 215, 204, 200;
    --accent-secondary-rgb: 161, 136, 127;
    --error-color-rgb: 211, 47, 47;

    /* Palet */
    --palette-color-1: #fbe9e7;
    --palette-color-2: #efebe9;
    --palette-color-3: #d7ccc8;
    --palette-color-4: #a1887f;



}


/* Cyberpunk Tema */
html[data-theme="cyberpunk"] {
    --bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
    --bg-secondary: rgba(15, 12, 41, 0.95);
    --bg-tertiary: rgba(48, 43, 99, 0.95);
    --bg-input: rgba(15, 12, 41, 0.7);
    --bg-editor: #0a081e;
    --text-primary: #f1f1f1;
    --text-secondary: #00fff7;
    --accent-primary: #ff00c8;
    --theme-caret-color: #ff00c8;
    --accent-secondary: #00fff7;
    --border-color: rgba(255, 0, 200, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --error-color: #ff1744;
    --success-color: rgba(0, 255, 123, 0.9);



    /* RGB değerleri */
    --accent-primary-rgb: 255, 0, 200;
    --accent-secondary-rgb: 0, 255, 247;
    --error-color-rgb: 255, 23, 68;

    /* Palet renkleri */
    --palette-color-1: #00fff7;
    /* Neon mavi */
    --palette-color-2: #fe75fe;
    /* Neon pembe */
    --palette-color-3: #7a04eb;
    /* Mor */
    --palette-color-4: #0abdc6;
    /* Siber mavi */
}

/* Pastel Dream Tema */
html[data-theme="pastel"] {
    --bg-primary: linear-gradient(135deg, #fceff9 0%, #e0c3fc 100%);
    --bg-secondary: rgba(252, 239, 249, 0.95);
    --bg-tertiary: rgba(224, 195, 252, 0.95);
    --bg-input: rgba(252, 239, 249, 0.7);
    --bg-editor: #f9e8fc;
    --text-primary: #3d2a54;
    --text-secondary: #a678b4;
    --accent-primary: #f48fb1;
    --theme-caret-color: #f48fb1;
    --accent-secondary: #ba68c8;
    --border-color: rgba(244, 143, 177, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --error-color: #e57373;
    --success-color: rgba(129, 199, 132, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 244, 143, 177;
    --accent-secondary-rgb: 186, 104, 200;
    --error-color-rgb: 229, 115, 115;

    /* Palet renkleri */
    --palette-color-1: #c9b3f5;
    /* Lavanta */
    --palette-color-2: #f8bbce;
    /* Açık pembe */
    --palette-color-3: #a1e2d1;
    /* Mint yeşili */
    --palette-color-4: #b4d9f8;
    /* Bebek mavisi */
}



/* Frostbyte Tema */
html[data-theme="frost"] {
    --bg-primary: linear-gradient(135deg, #1e2a38 0%, #3a506b 100%);
    --bg-secondary: rgba(30, 42, 56, 0.95);
    --bg-tertiary: rgba(58, 80, 107, 0.95);
    --bg-input: rgba(30, 42, 56, 0.7);
    --bg-editor: #15202b;
    --text-primary: #e0f7fa;
    --text-secondary: #81d4fa;
    --accent-primary: #00bcd4;
    --theme-caret-color: #00bcd4;
    --accent-secondary: #29b6f6;
    --border-color: rgba(0, 188, 212, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --error-color: #ff5252;
    --success-color: rgba(0, 230, 118, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 0, 188, 212;
    --accent-secondary-rgb: 41, 182, 246;
    --error-color-rgb: 255, 82, 82;

    /* Palet renkleri */
    --palette-color-1: #4fc3f7;
    /* Açık mavi */
    --palette-color-2: #0288d1;
    /* Koyu mavi */
    --palette-color-3: #b3e5fc;
    /* Buz mavisi */
    --palette-color-4: #01579b;
    /* Derin mavi */
}

/* Orchid Tema */
html[data-theme="orchid"] {
    --bg-primary: linear-gradient(135deg, #3c1c4f 0%, #752f70 100%);
    --bg-secondary: rgba(60, 28, 79, 0.95);
    --bg-tertiary: rgba(117, 47, 112, 0.95);
    --bg-input: rgba(60, 28, 79, 0.7);
    --bg-editor: #2a113a;
    --text-primary: #ffeef8;
    --text-secondary: #ffc0cb;
    --accent-primary: #ff6b81;
    --theme-caret-color: #ff6b81;
    --accent-secondary: #f093fb;
    --border-color: rgba(255, 107, 129, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --error-color: #ff4d4d;
    --success-color: rgba(255, 203, 112, 0.9);



    /* RGB değerleri */
    --accent-primary-rgb: 255, 107, 129;
    --accent-secondary-rgb: 240, 147, 251;
    --error-color-rgb: 255, 77, 77;

    /* Palet renkleri */
    --palette-color-1: #f093fb;
    --palette-color-2: #ff6b81;
    --palette-color-3: #da70d6;
    --palette-color-4: #9932cc;
}

/* Ocean Tema */
html[data-theme="ocean"] {
    --bg-primary: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
    --bg-secondary: rgba(15, 32, 39, 0.95);
    --bg-tertiary: rgba(32, 58, 67, 0.95);
    --bg-input: rgba(15, 32, 39, 0.7);
    --bg-editor: #0c1a23;
    --text-primary: #e0f7fa;
    --text-secondary: #4dd0e1;
    --accent-primary: #00bcd4;
    --theme-caret-color: #00bcd4;
    --accent-secondary: #4dd0e1;
    --border-color: rgba(0, 188, 212, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --error-color: #ef5350;
    --success-color: rgba(129, 199, 132, 0.9);


    /* RGB değerleri */
    --accent-primary-rgb: 0, 188, 212;
    --accent-secondary-rgb: 77, 208, 225;
    --error-color-rgb: 239, 83, 80;

    /* Palet renkleri */
    --palette-color-1: #80deea;
    --palette-color-2: #4dd0e1;
    --palette-color-3: #00acc1;
    --palette-color-4: #006064;
}

/* Forest Tema */
html[data-theme="forest"] {
    --bg-primary: linear-gradient(135deg, #1b2e1f 0%, #2e4233 100%);
    --bg-secondary: rgba(27, 46, 31, 0.95);
    --bg-tertiary: rgba(46, 66, 51, 0.95);
    --bg-input: rgba(27, 46, 31, 0.7);
    --bg-editor: #142417;
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --accent-primary: #66bb6a;
    --theme-caret-color: #66bb6a;
    --accent-secondary: #a5d6a7;
    --border-color: rgba(102, 187, 106, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --error-color: #d32f2f;
    --success-color: rgba(102, 255, 133, 0.9);


    /* RGB değerleri */
    --accent-primary-rgb: 102, 187, 106;
    --accent-secondary-rgb: 165, 214, 167;
    --error-color-rgb: 211, 47, 47;

    /* Palet renkleri */
    --palette-color-1: #a5d6a7;
    --palette-color-2: #66bb6a;
    --palette-color-3: #388e3c;
    --palette-color-4: #1b5e20;
}

.theme-option-orchid {
    background: linear-gradient(135deg, #3c1c4f 0%, #752f70 100%);
}

.theme-option-ocean {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
}

.theme-option-forest {
    background: linear-gradient(135deg, #1b2e1f 0%, #2e4233 100%);
}

/* Galaxy Space Tema */
html[data-theme="galaxy"] {
    --bg-primary: linear-gradient(135deg, #0d0d2b 0%, #3e1e68 100%);
    --bg-secondary: rgba(13, 13, 43, 0.95);
    --bg-tertiary: rgba(62, 30, 104, 0.95);
    --bg-input: rgba(13, 13, 43, 0.7);
    --bg-editor: #120c2f;
    --text-primary: #f5f5ff;
    --text-secondary: #c792ea;
    --accent-primary: #7fdbff;
    --theme-caret-color: #7fdbff;
    --accent-secondary: #ae81ff;
    --border-color: rgba(127, 219, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --error-color: #ff6e6e;
    --success-color: rgba(144, 238, 144, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 127, 219, 255;
    --accent-secondary-rgb: 174, 129, 255;
    --error-color-rgb: 255, 110, 110;

    /* Palet renkleri */
    --palette-color-1: #c792ea;
    /* Leylak */
    --palette-color-2: #7fdbff;
    /* Parlak mavi */
    --palette-color-3: #82aaff;
    /* Gökyüzü mavisi */
    --palette-color-4: #ff5874;
    /* Pembe kırmızı */
}

/* Earthy Minimal Tema */
html[data-theme="earthy"] {
    --bg-primary: linear-gradient(135deg, #3e3e2b 0%, #716c4f 100%);
    --bg-secondary: rgba(62, 62, 43, 0.95);
    --bg-tertiary: rgba(113, 108, 79, 0.95);
    --bg-input: rgba(62, 62, 43, 0.7);
    --bg-editor: #2a2a1c;
    --text-primary: #f0e6d2;
    --text-secondary: #c9b79c;
    --accent-primary: #bfae8f;
    --theme-caret-color: #bfae8f;
    --accent-secondary: #d4c4a0;
    --border-color: rgba(191, 174, 143, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --error-color: #e57373;
    --success-color: rgba(139, 195, 74, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 191, 174, 143;
    --accent-secondary-rgb: 212, 196, 160;
    --error-color-rgb: 229, 115, 115;

    /* Palet renkleri */
    --palette-color-1: #d4c4a0;
    /* Kum rengi */
    --palette-color-2: #8d8468;
    /* Haki */
    --palette-color-3: #a98274;
    /* Toprak rengi */
    --palette-color-4: #778466;
    /* Yosun yeşili */
}

.theme-option-teal {
    background: linear-gradient(135deg, #009688 0%, #26a69a 100%);
}

.theme-option-orange {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.theme-option-gray {
    background: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
}

.theme-option-cyberpunk {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
}

.theme-option-pastel {
    background: linear-gradient(135deg, #fceff9 0%, #e0c3fc 100%);
}

.theme-option-frost {
    background: linear-gradient(135deg, #1e2a38 0%, #3a506b 100%);
}

.theme-option-galaxy {
    background: linear-gradient(135deg, #0d0d2b 0%, #3e1e68 100%);
}

.theme-option-earthy {
    background: linear-gradient(135deg, #3e3e2b 0%, #716c4f 100%);
}

/* Tema seçici için scrollbar stilleri */
.theme-selector::-webkit-scrollbar {
    width: 6px;
}

.theme-selector::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.theme-selector::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.theme-selector::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Ana logo stili */
.main-logo {
    position: fixed;
    top: 28px;
    left: 100px;
    z-index: 1000;
    display: flex;
}

.main-logo a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.main-logo a:hover {
    color: var(--accent-primary);
}

/* Logo image ve text stilleri */

.logo-text {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--text-primary);
}

.main-logo a:hover .logo-text {
    color: var(--accent-primary);
    color: var(--dark-theme-primary);
}

/* Tema Arka Plan Stilleri */
.theme-option-dark {
    background: linear-gradient(135deg, #282a36 0%, #44475a 100%);
}

.theme-option-light {
    background: linear-gradient(135deg, #f5f5f5 0%, #e4e4e4 100%);
}

.theme-option-hacker {
    background: linear-gradient(135deg, #0a0a0a 0%, #143601 100%);
    position: relative;
    overflow: hidden;
}

.theme-option-hacker::before {
    content: "01";
    position: absolute;
    font-family: monospace;
    font-size: 8px;
    color: #0f0;
    opacity: 0.7;
    top: 5px;
    left: 5px;
}

.theme-option-hacker::after {
    content: "10";
    position: absolute;
    font-family: monospace;
    font-size: 8px;
    color: #0f0;
    opacity: 0.7;
    bottom: 5px;
    right: 5px;
}

.theme-option-teal {
    background: linear-gradient(135deg, #009688 0%, #26a69a 100%);
}

/* Hacker Tema */
html[data-theme="hacker"] {
    --bg-primary: linear-gradient(135deg, #000000 0%, #0c1702 100%);
    --bg-secondary: rgba(5, 20, 5, 0.95);
    --bg-tertiary: rgba(10, 25, 10, 0.95);
    --bg-input: rgba(5, 10, 5, 0.8);
    --bg-editor: #000000;
    --text-primary: #00ff00;
    --text-secondary: #00cc00;
    --accent-primary: #00ff00;
    --theme-caret-color: #00ff00;
    --accent-secondary: #00dd00;
    --border-color: rgba(0, 255, 0, 0.3);
    --shadow-color: rgba(0, 255, 0, 0.2);
    --error-color: #00ff00;
    --success-color: rgba(0, 255, 0, 0.9);

    /* RGB değerleri */
    --accent-primary-rgb: 0, 255, 0;
    --accent-secondary-rgb: 0, 221, 0;
    --error-color-rgb: 255, 0, 0;

    /* Palet renkleri */
    --palette-color-1: #00ff00;
    --palette-color-2: #00dd00;
    --palette-color-3: #00aa00;
    --palette-color-4: #008800;
}

/* Hacker tema için sözdizimi renklendirme */
html[data-theme="hacker"] .keyword {
    color: #00ff00;
}

html[data-theme="hacker"] .string {
    color: #33ff33;
}

html[data-theme="hacker"] .function {
    color: #00cc00;
}

html[data-theme="hacker"] .tag {
    color: #00ff00;
}

html[data-theme="hacker"] .property {
    color: #33ff33;
}

html[data-theme="hacker"] .comment {
    color: #009900;
}

html[data-theme="hacker"] .number {
    color: #66ff66;
}

html[data-theme="hacker"] .attribute {
    color: #00dd00;
}

/* Hacker tema için binary matrix efekti */
html[data-theme="hacker"] .editor-container {
    position: relative;
    z-index: 1;
}

/* Hacker tema için özel terminal görünümü */
html[data-theme="hacker"] #code-editor {
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    position: relative;
    z-index: 1;
}

html[data-theme="hacker"] .char {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

html[data-theme="hacker"] .typed-correct {
    opacity: 1;
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

/* Hacker tema için terminal cursor */
html[data-theme="hacker"] #input::after {
    content: "_";
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hacker tema için binary matrix arka plan animasyonu */
@keyframes matrix-fall {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(1000%);
    }
}

.binary-rain {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="hacker"] .binary-rain {
    display: block;
}

.binary-column {
    position: absolute;
    top: -100%;
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0.3;
    text-shadow: 0 0 5px #00ff00;
    animation: matrix-fall linear infinite;
    z-index: 0;
}

/* Hacker tema için özel seçim rengi */
html[data-theme="hacker"] ::selection {
    background-color: rgba(0, 255, 0, 0.3);
    color: #ffffff;
}

/* Hacker tema için özel scrollbar */
html[data-theme="hacker"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.5);
    border-radius: 5px;
}

html[data-theme="hacker"] ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

/* Hacker tema için özel buton efektleri */
html[data-theme="hacker"] button,
html[data-theme="hacker"] .dropdown-toggle,
html[data-theme="hacker"] .theme-toggle {
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
    transition: all 0.2s ease;
}

html[data-theme="hacker"] button:hover,
html[data-theme="hacker"] .dropdown-toggle:hover,
html[data-theme="hacker"] .theme-toggle:hover {
    border-color: rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}




@media (max-width: 768px) {
    .score-ad-area {
        position: static;
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 200px;
        margin: 15px auto;
        top: auto;
        right: auto;
        order: 7;
    }
}



/* Responsive düzenleme */
@media (max-width: 768px) {
    .score-ad-area {
        position: static;
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 150px;
        margin: 15px auto;
        top: auto;
        right: auto;
    }

    .score-ad-area ins {
        width: 100%;
        max-width: 300px;
        height: 150px;
    }
}

/* Score Ad Area */
.score-ad-area {
    max-width: 720px;
    margin: 20px auto;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.score-ad-area ins {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 100px;
}

@media (max-width: 768px) {
    .score-ad-area {
        margin: 15px auto;
        padding: 5px;
        height: 80px;
        max-width: 95%;
    }

    .score-ad-area ins {
        height: 70px;
    }
}

/* Programlama Dilleri Bölümü CSS */
/* Bu kısım artık view-area düzeni tarafından yönetiliyor */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.language-card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.language-card:nth-child(1) {
    animation-delay: 0.1s;
}

.language-card:nth-child(2) {
    animation-delay: 0.2s;
}

.language-card:nth-child(3) {
    animation-delay: 0.3s;
}

.language-card:nth-child(4) {
    animation-delay: 0.4s;
}

.language-card:nth-child(5) {
    animation-delay: 0.5s;
}

.language-card:nth-child(6) {
    animation-delay: 0.6s;
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(var(--accent-primary-rgb), 0.4);
}

.language-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.language-icon i {
    font-size: 2rem;
    color: #fff;
}

.language-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.language-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.language-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature i {
    color: #4ade80;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.feature span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.code-example {
    background-color: #1e1e2e;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    color: #a0e9ff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.language-more-info {
    width: 100%;
    padding: 0.75rem 0;
    background-color: transparent;
    border: 2px solid #1EB980;
    border-radius: 0.5rem;
    color: #1EB980;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.language-more-info:hover {
    background-color: rgba(30, 185, 128, 0.15);
    border-color: #1EB980;
}

/* Dil kartları için özel renkler */
.language-card.javascript .language-icon {
    background-color: #f0db4f;
}

.language-card.python .language-icon {
    background-color: #3776ab;
}

.language-card.java .language-icon {
    background-color: #e76f00;
}

.language-card.cpp .language-icon {
    background-color: #00599c;
}

.language-card.csharp .language-icon {
    background-color: #6a1577;
}

.language-card.php .language-icon {
    background-color: #777BB4;
}

.language-card.c .language-icon {
    background-color: #5C6BC0;
}

.language-card.sql .language-icon {
    background-color: #CC2927;
}

.language-card.assembly .language-icon {
    background-color: #6E4C13;
}

.language-card.kotlin .language-icon {
    background-color: #ffffff;
}

.language-card.html .language-icon {
    background-color: #e34f26;
}

.language-card.css .language-icon {
    background-color: #1572b6;
}

.language-card.swift .language-icon {
    background-color: #FA7343;
}

/* Responsive ayarlamalar */
@media (max-width: 1200px) {
    .languages-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .programming-languages-section {
        padding: 2rem 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .languages-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .language-card {
        padding: 1.25rem;
    }

    .language-icon {
        width: 50px;
        height: 50px;
    }

    .language-card h3 {
        font-size: 1.35rem;
    }
}

/* View Area Düzeni */
.view-area {
    width: 100%;
    max-width: 100vw;
    display: block;
    position: relative;
    clear: both;
    overflow-x: hidden;
}

.view-area-first {
    min-height: 700px;
    margin-bottom: 3rem;
    margin-top: 4rem;
}

.view-area-second {
    margin-top: 2rem;
    padding-top: 2rem;
}



/* İçerik alanları düzeni */
#home-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas: none !important;
}

.container {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 24px;
    background: var(--bg-secondary);
    padding: 32px 24px;
    width: 1320px;
    min-height: 650px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    margin: 40px auto;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mevcut programlama dilleri bölümü düzenlemesi */
.programming-languages-section {
    background-color: var(--bg-secondary);
    padding: 3rem 1rem;
    margin: 0;
    clear: both;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .view-area-first {
        min-height: auto;
        margin-bottom: 1rem;
    }

    .view-area-second {
        margin-top: 1rem;
        padding-top: 0.5rem;
        order: 8;
    }


}

.view-area-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Hanken Grotesk', sans-serif;
}

@media (max-width: 768px) {
    .view-area-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Programlama Dilleri Bölümü için Reklam Alanları */
.languages-ad-top {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}



.languages-ad-sides {
    position: absolute;
    width: 100%;
    top: 240px;
    left: 0;
    pointer-events: none;
}

.languages-ad-sides .ad-container {
    width: 160px;
    height: 600px;
    position: absolute;
    pointer-events: auto;
}

.languages-ad-sides .ad-left {
    left: 10px;
}

.languages-ad-sides .ad-right {
    right: 50px;
}

/* Desktop'ta programming languages yan reklamlarını göster - ZORLA */
@media (min-width: 1201px) {
    .languages-ad-sides {
        display: block !important;
        position: absolute !important;
        width: 100% !important;
        height: 600px !important;
        top: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .languages-ad-sides .ad-container {
        position: absolute !important;
        width: 160px !important;
        height: 600px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .languages-ad-sides .ad-right {
        right: 50px !important;
        display: block !important;
    }
}

/* Tüm ekran boyutlarında languages reklamlarını göster (test için) */
.languages-ad-sides.force-show {
    display: block !important;
    position: absolute !important;
    width: 100% !important;
    height: 600px !important;
    top: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.languages-ad-sides.force-show .ad-container {
    position: absolute !important;
    width: 160px !important;
    height: 600px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.languages-ad-sides.force-show .ad-right {
    right: 50px !important;
    display: block !important;
}

.ad-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.languages-ad-top .ad-container {
    width: 100%;
    height: 100px;
}

@media (max-width: 1200px) {
    .languages-ad-sides {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    .languages-ad-sides .ad-container {
        position: static;
        width: 100%;
        max-width: 728px;
        height: 90px;
    }

    .languages-ad-bottom-sides {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        height: auto;
        margin-top: 30px;
        margin-bottom: 0;
        top: 0;
    }

    .languages-ad-bottom-sides .ad-container {
        position: static;
        width: 100%;
        max-width: 728px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .languages-ad-sides .ad-container {
        height: 50px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .languages-ad-bottom-sides .ad-container {
        height: auto;
        min-height: 50px;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    .languages-ad-top {
        padding: 0 10px;
    }

    .languages-ad-top .ad-container {
        height: 90px;
    }
}

.languages-ad-bottom-sides {
    position: relative;
    width: 100%;
    margin-top: 0;
    height: 250px;
    pointer-events: none;
    top: -250px;
    margin-bottom: -250px;
}

.languages-ad-bottom-sides .ad-container {
    width: 300px;
    height: 250px;
    position: absolute;
    pointer-events: auto;
}

.languages-ad-bottom-sides .ad-left {
    left: 10px;
    top: 0;
}

.languages-ad-bottom-sides .ad-right {
    right: 20px;
    top: 0;
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0 0 0;
    margin-top: 0;
    border-top: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Footer Ad Area */
/* Footer Ad Area removed */

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    background-color: var(--bg-secondary);
    gap: 20px;
}

.footer-section {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--accent-primary);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 2px;
    background-color: var(--accent-primary);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section.about p {
    text-align: justify;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-section .programming-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.footer-section .programming-list li {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-section.contact p i {
    margin-right: 10px;
    color: var(--accent-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-primary);
    color: var(--bg-secondary);
    transform: translateY(-3px);
}

.social-icons .fab.fa-tiktok {
    font-size: 18px;
}

.social-icons .fab.fa-instagram {
    font-size: 20px;
}

.footer-bottom {
    background-color: var(--bg-tertiary);
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(var(--accent-primary-rgb), 0.1);
}

.footer-bottom p {
    font-size: 14px;
}

.footer-bottom a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom .fa-heart {
    color: #ff5e5e;
    margin: 0 3px;
    animation: pulse-heart 1.5s ease infinite;
}

@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        padding: 0 10px;
    }

    .footer-section {
        margin-bottom: 30px;
        padding: 0 10px;
        min-width: 100%;
    }

    .footer-section .programming-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-section .programming-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section.about p {
    text-align: justify;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 28px;
    color: var(--accent-primary);
    margin-right: 10px;
}

.footer-logo h3 {
    font-size: 24px;
    margin: 0;
    padding: 0;
}

.footer-section.about .social-icons {
    margin-top: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

/* Mobil Responsive Tasarım - CodeWooW */
@media (max-width: 768px) {

    /* Genel Düzen Ayarları */
    body.modern-ui {
        overflow-x: hidden !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .main-content {
        padding: 70px 10px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        overflow-x: hidden !important;
    }

    #home-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas: none !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    /* Grid sıfırlama */
    .view-area-first,
    .score-panel,
    .score-ad-area,
    .left-ad-container,
    .view-area-second,
    .site-footer {
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
    }

    /* 1. Alan: Üst Menü Düzeni */
    .menu-toggle,
    .main-logo,
    .theme-toggle,
    .login-button-top {
        position: fixed;
        top: 0;
        z-index: 100;
    }

    /* Üst menü container */
    @media (max-width: 768px) {

        .menu-toggle,
        .main-logo,
        .theme-toggle,
        .login-button-top {
            top: 10px;
            height: 30px !important;
        }
    }

    /* Hamburger menü */
    .menu-toggle {
        left: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
    }

    /* Logo */
    .main-logo {
        left: 50px;
        top: 10px;
        width: auto;
        height: 30px;
        display: flex;
        align-items: center;
    }

    .logo-text {
        font-size: 16px !important;
        margin-left: 5px !important;
    }

    /* Tema butonu */
    .theme-toggle {
        right: 50px;
        top: 10px;
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .theme-toggle-track {
        width: 30px !important;
        height: 16px !important;
    }

    .theme-toggle-circle {
        width: 14px !important;
        height: 14px !important;
    }

    /* Giriş butonu */
    .login-button-top {
        right: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
    }

    /* 2. Alan: Programlama Dili ve Zaman Seçimi */
    .view-area-first {
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
        order: 2;
    }

    .container {
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 15px;
        padding: 15px;
    }

    .sidebar-top {
        width: 100%;
    }

    .selection-info {
        margin-top: 15px;
    }

    .language-panel,
    .timer-panel {
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown-toggle {
        width: 100%;
    }

    /* 3. Alan: Sol Reklam Alanı */
    .left-ad-container {
        position: static;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
        order: 3;
    }

    .left-ad-area {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }

    .left-ad-area ins {
        width: 100%;
        max-width: 300px;
    }

    /* 4. Alan: Kod Yazma Alanı */
    .editor-container {
        width: 100%;
        margin-bottom: 15px;
        height: auto;
        min-height: 300px;
    }

    #code-editor {
        width: 100%;
        height: 300px;
        font-size: 14px;
    }

    #line-numbers {
        font-size: 14px;
    }

    .char {
        font-size: 14px;
    }

    /* 5. Alan: İkinci Reklam Alanı */
    .left-ad-area:nth-child(2) {
        margin-top: 15px;
    }

    /* 6. Alan: Performance Alanı */
    .score-panel {
        position: static;
        width: 100%;
        margin: 15px 0;
    }

    .score-content {
        flex-direction: column;
    }

    .score-item {
        width: 100%;
        margin-bottom: 10px;
    }

    /* 7. Alan: Performance Altı Reklam */
    .score-ad-area {
        position: static;
        width: 100%;
        max-width: 300px;
        margin: 15px auto;
    }

    .score-ad-area ins {
        width: 100%;
        max-width: 300px;
    }

    /* 8. Alan: Programming Languages Kartları */
    .programming-languages-section {
        padding: 15px 0;
    }

    .languages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .language-card {
        width: 100%;
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Programlama Dilleri Yan Reklamları Mobilde Gizle */
    .languages-ad-sides {
        display: none;
    }

    /* 8. Alan: Alt Reklamlar */
    .languages-ad-bottom-sides {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .languages-ad-bottom-sides .ad-container {
        width: 100%;
        max-width: 300px;
        margin: 10px 0;
    }

    /* 9. Alan: Footer */
    .site-footer {
        padding: 30px 15px;
        order: 9;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }
}

/* Mobil Görünümde Öğeleri Gizleme - Başlangıç Durumu */
@media (max-width: 768px) {

    /* Ana içerik alanları */
    .languages-ad-sides {
        display: none;
    }

    /* Programlama dilleri bölümü görünür */
    .view-area-second {
        display: block !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        padding: 10px !important;
        clear: both !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
        width: 100% !important;
    }

    .programming-languages-section {
        display: block;
        padding: 15px 0;
    }

    .languages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .language-card {
        width: 100%;
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Alt reklam alanları görünür */
    .languages-ad-bottom-sides {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .languages-ad-bottom-sides .ad-container {
        width: 100%;
        max-width: 300px;
        margin: 10px 0;
        height: auto;
        min-height: 50px;
    }

    /* Performance altı reklam alanı görünür */
    .score-ad-area {
        position: static !important;
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        min-height: 150px !important;
        margin: 0 auto 15px auto !important;
        padding-top: 0 !important;
        display: flex !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        z-index: 1 !important;
        clear: both !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
    }

    .score-ad-area ins {
        width: 100% !important;
        max-width: 300px !important;
        height: 150px !important;
        position: static !important;
    }

    /* Performance alanı görünür */
    .score-panel {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding-top: 0 !important;
        display: block !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
    }

    .score-content {
        flex-direction: column !important;
        width: 100% !important;
        position: static !important;
    }

    .score-item {
        width: 100% !important;
        margin-bottom: 10px !important;
        position: static !important;
    }

    .score-item:last-child {
        margin-bottom: 0 !important;
    }

    .score-header {
        position: static !important;
    }

    .score-footer {
        position: static !important;
    }

    /* Sol reklam alanı görünür */
    .left-ad-container {
        position: static !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 0 15px 0 !important;
        padding-top: 0 !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
    }

    .left-ad-area {
        width: 100% !important;
        max-width: 300px !important;
        margin-bottom: 15px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
    }

    .left-ad-area ins {
        width: 100% !important;
        max-width: 300px !important;
        position: static !important;
    }

    /* Kod yazma alanı görünür */
    .view-area-first {
        display: flex !important;
        flex-direction: column !important;
        margin-top: 60px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        padding: 10px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
    }

    .editor-container {
        width: 100% !important;
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: 300px !important;
    }

    .container {
        flex-direction: column !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 15px;
        padding: 15px;
    }

    .sidebar-top {
        width: 100%;
    }

    .selection-info {
        margin-top: 15px;
    }

    .language-panel,
    .timer-panel {
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown-toggle {
        width: 100%;
    }

    .editor-container {
        width: 100%;
        margin-bottom: 15px;
        height: auto;
        min-height: 300px;
    }

    #code-editor {
        width: 100%;
        height: 300px;
        font-size: 14px;
    }

    #line-numbers {
        font-size: 14px;
    }

    .char {
        font-size: 14px;
    }

    /* Sadece üst menü görünür kalacak */
    .menu-toggle,
    .main-logo,
    .theme-toggle,
    .login-button-top {
        display: flex;
        position: fixed;
        top: 0;
        z-index: 100;
    }

    .menu-toggle {
        left: 10px;
        top: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }

    .main-logo {
        left: 60px;
        top: 10px;
    }

    .theme-toggle {
        right: 60px;
        top: 10px;
        width: auto;
        height: 40px;
        padding: 5px;
    }

    .login-button-top {
        right: 10px;
        top: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }

    /* Hamburger menüsü görünür kalacak */
    .side-menu.active {
        display: block;
    }

    /* Ana içerik alanı düzeni */
    .main-content {
        padding-top: 70px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Tüm içerik alanlarını flex ile düzenle */
    #home-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    /* Öğelerin sıralaması - Mobil görünüm için */
    .mobile-sidebar {
        order: 1 !important;
    }

    .left-ad-container {
        order: 2 !important;
    }

    .view-area-first {
        order: 3 !important;
    }

    .score-panel {
        order: 4 !important;
    }

    .score-ad-area {
        order: 5 !important;
    }

    .view-area-second {
        order: 6 !important;
    }

    .site-footer {
        order: 7 !important;
    }

    /* Footer görünür kalacak */
    .site-footer {
        display: block;
        padding: 30px 15px;
        margin-top: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }
}

/* Mobil görünüm için güçlendirilmiş tek sütun düzeni */
@media (max-width: 768px) {

    /* Genel tek sütun düzeni */
    body,
    html,
    body.modern-ui,
    .main-content,
    #home-page,
    .page,
    .page.active {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        overflow-x: hidden !important;
    }

    /* Grid ve flex düzenleri sıfırlama */
    #home-page,
    .view-area-first,
    .score-panel,
    .score-ad-area,
    .left-ad-container,
    .view-area-second,
    .site-footer {
        display: block !important;
        position: static !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-template-areas: none !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        grid-area: none !important;
        float: none !important;
        clear: both !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Öğelerin sıralaması */
    .view-area-first {
        order: 1 !important;
    }

    .score-panel {
        order: 2 !important;
    }

    .score-ad-area {
        order: 3 !important;
    }

    .left-ad-container {
        order: 4 !important;
    }

    .view-area-second {
        order: 5 !important;
    }

    .site-footer {
        order: 6 !important;
    }
}

/* Üst menü container - PC görünümünde gizli */
.top-menu-container {
    display: none !important;
}

/* PC görünümünde orijinal menüleri göster */
.menu-toggle {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
}

.main-logo {
    position: fixed !important;
    top: 28px !important;
    left: 100px !important;
    z-index: 1000 !important;
    display: flex !important;
}

.theme-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 90px !important;
    /* Login butonundan 20px uzaklıkta */
    width: 50px !important;
    height: 50px !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-button-top {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
}

/* PC görünümünde login butonundaki yazıyı göster */
.login-button-top span {
    display: inline;
}

/* Mobil görünüm için özel ayarlanabilir sınıf */
.mobile-menu-custom {
    /* Bu sınıfı mobil görünüm için özelleştirmek istediğinizde kullanabilirsiniz */
    --mobile-menu-margin-right: 10px;
    --mobile-logo-margin-left: 0px;
    --mobile-logo-margin-right: 10px;
    --mobile-logo-text-size: 16px;
    --mobile-buttons-margin-left: auto;
    --mobile-buttons-gap: 10px;
    --mobile-theme-size: 30px;
    --mobile-theme-margin: 0px;
    --mobile-login-size: 30px;
    --mobile-login-font-size: 14px;
}

/* Mobil görünümde üst menü düzeni */
@media (max-width: 768px) {

    /* PC görünümündeki menüleri tamamen gizle */
    body>.menu-toggle,
    body>.main-logo,
    body>.theme-toggle,
    body>.login-button-top {
        display: none !important;
    }

    /* Üst menü container */
    .top-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background-color: var(--bg-secondary);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    /* Sol grup - Hamburger menü, logo ve tema butonu */
    .top-menu-container .left-group {
        display: flex;
        align-items: center;
    }

    /* Hamburger menü - Ayarlanabilir */
    .top-menu-container .menu-toggle {
        position: static !important;
        width: 30px;
        height: 30px;
        font-size: 14px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-right: 5px;
        /* Ayarlanabilir özellikler */
        --mobile-menu-margin-right: 5px;
        margin-right: var(--mobile-menu-margin-right);
    }

    /* Logo - Ayarlanabilir */
    .top-menu-container .main-logo {
        position: static !important;
        width: auto;
        height: 30px;
        display: flex !important;
        align-items: center;
        /* Ayarlanabilir özellikler */
        --mobile-logo-margin-left: 0px;
        --mobile-logo-margin-right: 0px;
        margin-left: var(--mobile-logo-margin-left);
        margin-right: var(--mobile-logo-margin-right);
    }

    .top-menu-container .logo-text {
        font-size: 16px !important;
        margin-left: 5px !important;
        /* Ayarlanabilir özellikler */
        --mobile-logo-text-size: 16px;
        font-size: var(--mobile-logo-text-size) !important;
    }

    /* Sol grup - Hamburger menü, logo ve butonlar */
    .top-menu-container .left-group {
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Tema butonu - Ayarlanabilir */
    .top-menu-container .theme-toggle {
        position: static !important;
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex !important;
        justify-content: center;
        align-items: center;
        /* Ayarlanabilir özellikler */
        --mobile-theme-size: 30px;
        --mobile-theme-margin: 0px;
        width: var(--mobile-theme-size);
        height: var(--mobile-theme-size);
        margin-left: 10px !important;
        /* CodeWooW yazısının sağında 10px boşluk */
    }

    /* Giriş butonu - Ayarlanabilir */
    .top-menu-container .login-button-top {
        position: static !important;
        width: 30px;
        height: 30px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        /* Ayarlanabilir özellikler */
        --mobile-login-size: 30px;
        --mobile-login-font-size: 14px;
        width: var(--mobile-login-size);
        height: var(--mobile-login-size);
        font-size: var(--mobile-login-font-size);
        margin-left: 10px !important;
        /* Tema butonunun 10px sağında */
    }

    .top-menu-container .login-button-top span {
        display: none;
    }
}

/* Mobil görünümde sidebar'ı container dışına çıkarma */
@media (max-width: 768px) {

    /* Sidebar'ı container dışına çıkar */
    .container .sidebar {
        display: none !important;
        /* Container içindeki sidebar'ı gizle */
    }

    /* Mobil sidebar - navigasyon altına yerleştirilmiş */
    .mobile-sidebar {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 60px auto 15px auto;
        /* Navigasyon alanının altında yer alması için üstten margin */
        padding: 15px;
        background-color: var(--bg-secondary);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        order: 1 !important;
    }

    /* Mobil sidebar içeriği */
    .mobile-sidebar .sidebar-top {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Dil ve zaman paneli */
    .mobile-sidebar .language-panel,
    .mobile-sidebar .timer-panel {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Seçim bilgileri */
    .mobile-sidebar .selection-info {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Sol reklam alanını sidebar'ın altına yerleştir */
    .left-ad-container {
        position: static !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        order: 2 !important;
    }

}

/* PC görünümünde mobil sidebar'ı gizle */
@media (min-width: 769px) {
    .mobile-sidebar {
        display: none !important;
    }
}



/* PC görünümünde view-area-second içindeki sidebar-top alanını gizle */
@media (min-width: 769px) {
    .view-area-second .sidebar-top {
        display: none !important;
    }

    /* Programming Languages bölümünün sağ tarafındaki sidebar'ı gizle */
    .view-area-second .sidebar {
        display: none !important;
    }
}

/* PC
 görünümünde view-area-second içindeki sidebar'ı gizle */
@media (min-width: 769px) {
    .view-area-second .sidebar {
        display: none !important;
    }
}

/* PC gör
ünümünde mobile-sidebar'ı kesinlikle gizle */
@media (min-width: 769px) {
    body>.mobile-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* Ana içerik alanını flex olarak ayarla */
    #home-page {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Öğelerin sıralaması */
    .mobile-sidebar {
        order: 1 !important;
        margin-top: 60px !important;
        margin-bottom: 15px !important;
    }

    .left-ad-container {
        order: 2 !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
    }

    .view-area-first {
        order: 3 !important;
    }

    .score-panel {
        order: 4 !important;
    }

    .score-ad-area {
        order: 5 !important;
    }

    .view-area-second {
        order: 6 !important;
    }

    .site-footer {
        order: 7 !important;
    }
}

/* Mobi
l görünümde özel düzen - Reklam alanlarını yeniden konumlandırma */
@media (max-width: 768px) {

    /* Left-ad-container sadece çok küçük ekranlarda gizle */
    .left-ad-container {
        display: none !important;
    }

    /* Mobil görünümde ana içerik alanını flex olarak ayarla */
    #home-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Mobil sidebar - navigasyon altına yerleştirilmiş */
    .mobile-sidebar {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 60px auto 15px auto;
        padding: 15px;
        background-color: var(--bg-secondary);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        order: 1 !important;
    }

    /* Reklam alanı 1 - mobile-sidebar altına yerleştirilmiş */


    /* Container alanı */
    .view-area-first {
        order: 3 !important;
        margin-top: 0 !important;
    }


    /* Score panel */
    .score-panel {
        order: 5 !important;
        margin-top: 0 !important;
    }

    /* Diğer alanlar */
    .score-ad-area {
        order: 6 !important;
    }

    .view-area-second {
        order: 7 !important;
    }

    .site-footer {
        order: 8 !important;
    }
}

/* Mob
il görünümde özel düzen - Reklam alanlarını yeniden konumlandırma */
@media (max-width: 768px) {

    /* Ana içerik alanını flex olarak ayarla */
    #home-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        position: relative !important;
    }

    /* Mobil görünümde left-ad-container içindeki reklam alanlarını klonla */
    .left-ad-container {
        position: static !important;
        display: none !important;
        /* PC görünümünde kullanılan orijinal container'ı gizle */
    }

    /* Mobil sidebar - navigasyon altına yerleştirilmiş */
    .mobile-sidebar {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 60px auto 15px auto;
        padding: 15px;
        background-color: var(--bg-secondary);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        order: 1 !important;
    }

    /* Reklam alanı 1 - mobile-sidebar altına yerleştirilmiş */


    /* Container alanı */
    .view-area-first {
        order: 2 !important;
        margin-top: 15px !important;
    }



    /* Score panel */
    .score-panel {
        order: 3 !important;
        margin-top: 15px !important;
    }

    /* Diğer alanlar */
    .score-ad-area {
        order: 4 !important;
    }

    .view-area-second {
        order: 5 !important;
    }

    .site-footer {
        order: 6 !important;
    }
}

/* Mo
bil görünümde sidebar-top altına container */
@media (max-width: 768px) {
    /* Önceki mobil görünüm kurallarını geçersiz kılmak için !important kullanıyoruz */

    /* Ana içerik alanını flex olarak ayarla */
    #home-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        position: relative !important;
    }

    /* Mobil sidebar - navigasyon altına yerleştirilmiş */
    .mobile-sidebar {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 60px auto 0 auto !important;
        padding: 15px !important;
        background-color: var(--bg-secondary) !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 10 !important;
        order: 1 !important;
    }

    /* Container alanı - sidebar-top altına yerleştirilmiş */
    .view-area-first {
        order: 2 !important;
        margin-top: 15px !important;
    }

    /* Score panel */
    .score-panel {
        order: 3 !important;
        margin-top: 15px !important;
    }

    /* Diğer alanlar */
    .score-ad-area {
        order: 4 !important;
    }

    .view-area-second {
        order: 5 !important;
    }

    .site-footer {
        order: 6 !important;
    }
}

.language-panel,
.timer-panel {
    position: relative;
    z-index: 10;
}

/* Masaüstü görünümünde timer panel için özel z-index */
.sidebar .timer-panel {
    position: relative;
    z-index: 400 !important;
    /* Timer paneli için daha düşük z-index değeri */
    margin-top: 10px;
    /* Timer paneli ile language dropdown arasında boşluk */
}

/* Masaüstü görünümünde timer dropdown için özel stil */
.sidebar #timerDropdown {
    position: absolute !important;
    z-index: 400 !important;
    /* Timer dropdown'ı için daha düşük z-index değeri */
    top: 70px !important;
    /* Timer dropdown'ının konumunu aşağı kaydır */
    left: 0 !important;
    width: 100% !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Masaüstü görünümünde language panel için özel z-index */
.sidebar .language-panel {
    position: relative;
    z-index: 500 !important;
    /* Dil paneli için daha yüksek z-index değeri */
}

/* Masaüstü görünümünde language dropdown için özel stil */
.sidebar #languageDropdown {
    z-index: 500 !important;
    /* Dil dropdown'ı için daha yüksek z-index değeri */
}

/* Programlama dili ikonları için orijinal renkler - Selection Info */
.selected-lang-logo i.fab.fa-python {
    color: #FFD43B;
}

.selected-lang-logo i.fab.fa-java {
    color: #E76F00;
}

.selected-lang-logo i.fab.fa-html5 {
    color: #E34F26;
}

.selected-lang-logo i.fab.fa-css3-alt {
    color: #264DE4;
}

.selected-lang-logo i.fab.fa-js {
    color: #F7DF1E;
}

.selected-lang-logo i.fab.fa-php {
    color: #777BB4;
}

.selected-lang-logo i.fas.fa-database {
    color: #CC2927;
}

.selected-lang-logo i.fab.fa-swift {
    color: #FA7343;
}

.selected-lang-logo i.fas.fa-microchip {
    color: #6E4C13;
}

.selected-lang-logo i.fab.fa-android {
    color: #3DDC84;
}

/* C, C++ ve C# için özel stiller - JavaScript ile ayarlanacak */
/* Le
gal Pages (Privacy Policy, Terms of Service) */
.legal-container {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-editor);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    margin: 40px auto;
    line-height: 1.6;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

.legal-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.legal-content {
    color: var(--text-primary);
}

.legal-content section {
    margin-bottom: 30px;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .legal-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}