        /* RENK PALETİ */
        :root {
            --primary-color: #B76E79;
            --secondary-color: #FDF5E6;
            --button-bg: #D4A5A5;
            --button-hover: #C58F8F;
            --accent-color: #9E7F7F;
            --bg-color: #FFF9F9;
            --card-bg: #FFFFFF;
            --text-color: #4E342E;
            --text-light: #8D6E63;
            --border-color: #F0E6E6;
            --note-bg: #FFF0F5;
            --soft-shadow: 0 4px 15px rgba(183, 110, 121, 0.15);
            
            /* İkon Stilleri */
            --icon-color: #B76E79;
        }

        /* DARK MODE RENK PALETİ */
        [data-theme="dark"] {
            --primary-color: #E08E98; 
            --secondary-color: #2D2D2D;
            --button-bg: #A07070;
            --button-hover: #805050;
            --accent-color: #C0A0A0;
            --bg-color: #1A1A1A; 
            --card-bg: #252525; 
            --text-color: #EAEAEA; 
            --text-light: #B0B0B0; 
            --border-color: #444444;
            --note-bg: #333333;
            --soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
            --icon-color: #E59CA8;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        body {
            font-family: 'Lato', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.7;
            padding: 20px;
            display: flex;
            justify-content: center;
            min-height: 100vh;
        }

        .container {
            width: 100%;
            max-width: 800px;
            background: var(--card-bg);
            padding: 40px;
            border-radius: 30px;
            box-shadow: var(--soft-shadow);
            border: 1px solid var(--border-color);
            position: relative;
        }

        /* --- AYARLAR BUTONU VE MENÜ --- */
        .settings-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--note-bg);
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--primary-color);
            font-size: 1.2rem;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .settings-btn:hover {
            transform: rotate(45deg);
            background: var(--primary-color);
            color: white;
        }

        .settings-menu {
            position: absolute;
            top: 75px;
            right: 20px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 15px;
            box-shadow: var(--soft-shadow);
            display: none; 
            z-index: 99;
            width: 200px;
            text-align: center;
        }

        .settings-menu.active {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .theme-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            cursor: pointer;
            border-radius: 10px;
        }
        
        .theme-toggle:hover {
            background: var(--note-bg);
        }

        /* Header & Başlıklar */
        .header-section {
            text-align: center;
            margin-bottom: 30px;
            padding-top: 20px; 
        }

        .basmala {
            font-family: 'Scheherazade New', serif;
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            direction: rtl;
            font-weight: 700;
        }

        h1 {
            font-family: 'Playfair Display', serif;
            font-size: 2.2rem;
            color: var(--text-color);
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 1rem;
            color: var(--text-light);
            font-weight: 300;
        }

        /* İstatistik Paneli */
        .stats-panel {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            background: var(--note-bg);
            padding: 20px;
            border-radius: 20px;
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
        }

        .stat-box {
            text-align: center;
        }

        .stat-val {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--text-light);
            font-weight: 400;
        }

        /* Seviye Kartı */
        .level-container {
            text-align: center;
            padding: 20px;
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--card-bg) 100%);
            border: 2px solid var(--button-bg);
            border-radius: 20px;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }

        .level-container::before {
            content: '✿';
            position: absolute;
            top: -10px;
            right: -10px;
            font-size: 5rem;
            color: rgba(183, 110, 121, 0.1);
            transform: rotate(15deg);
        }

        .level-number {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1;
        }

        .level-title {
            font-family: 'Scheherazade New', serif;
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text-color);
            margin-top: 5px;
            text-transform: none;
        }

        .level-progress {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-top: 10px;
            font-style: italic;
        }

        /* Ekleme Alanı */
        .input-group {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
            align-items: center;
        }

        select {
            flex: 1;
            padding: 15px 20px;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            font-family: 'Lato', sans-serif;
            font-size: 1rem;
            color: var(--text-color);
            background: var(--bg-color);
            outline: none;
            transition: all 0.3s;
        }

        select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
        }

        .add-btn {
            padding: 15px 30px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 15px;
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(183, 110, 121, 0.3);
        }

        .add-btn:hover {
            background-color: var(--button-hover);
            transform: translateY(-2px);
        }

        /* Liste Alanı */
        .task-list {
            list-style: none;
            max-height: 400px;
            overflow-y: auto;
            padding-right: 5px;
        }

        /* Scrollbar Tasarımı */
        .task-list::-webkit-scrollbar {
            width: 6px;
        }
        .task-list::-webkit-scrollbar-track {
            background: var(--bg-color);
        }
        .task-list::-webkit-scrollbar-thumb {
            background: var(--button-bg);
            border-radius: 10px;
        }

        .task-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--card-bg);
            padding: 18px 20px;
            border-radius: 15px;
            margin-bottom: 12px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
        }

        .task-item:hover {
            transform: translateX(5px);
            box-shadow: var(--soft-shadow);
            border-color: var(--button-bg);
        }

        .task-item.completed {
            opacity: 0.7;
            background: var(--note-bg);
            border-left: 5px solid var(--accent-color);
        }

        .task-item:not(.completed) {
            border-left: 5px solid var(--primary-color);
        }

        .task-info {
            flex: 1;
        }

        .task-name {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-color);
            margin-bottom: 4px;
        }

        .task-meta {
            font-size: 0.85rem;
            color: var(--text-light);
            display: flex;
            gap: 10px;
        }

        .task-points {
            background: var(--note-bg);
            color: var(--primary-color);
            padding: 2px 8px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.8rem;
        }

        .actions {
            display: flex;
            gap: 8px;
        }

        .btn-check, .btn-delete {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            font-size: 1.1rem;
        }

        .btn-check {
            background: var(--secondary-color);
            color: var(--primary-color);
            border: 1px solid var(--button-bg);
        }

        .btn-check:hover {
            background: var(--primary-color);
            color: white;
        }

        .btn-delete {
            background: transparent;
            color: var(--accent-color);
            opacity: 0.6;
        }

        .btn-delete:hover {
            opacity: 1;
            color: #e74c3c;
            background: rgba(231, 76, 60, 0.1);
        }

        /* Responsive */
        @media (max-width: 600px) {
            .container { padding: 25px; }
            .settings-btn { width: 40px; height: 40px; top: 15px; right: 15px; }
            .settings-menu { top: 65px; right: 15px; width: 180px; }
            .input-group { flex-direction: column; }
            .add-btn { width: 100%; }
            h1 { font-size: 1.8rem; }
            .stats-panel { grid-template-columns: 1fr; gap: 15px; }
        }
      
      a {
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }
      
      .back-link {
            display: inline-block;
            margin-bottom: 30px;
            color: var(--primary-color);
            font-weight: 600;
            font-family: 'Playfair Display', serif;
        }

       .back-link:hover {
            text-decoration: underline;
      }
      

/* --- Footer --- */
footer { background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 60px 0 30px; text-align: center; margin-top: 80px; }
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-arabic { font-family: 'Scheherazade New', serif; font-size: 1.8rem; color: var(--primary-color); margin-bottom: 15px; direction: rtl; }
.social-links { display: flex; justify-content: center; gap: 20px; margin: 30px 0; align-items: center; flex-wrap: wrap; }
.social-link { width: 45px; height: 45px; border-radius: 50%; background: var(--note-bg); display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.2rem; transition: all 0.3s; text-decoration: none; }
.social-link:hover { background: var(--primary-color); color: white; transform: rotate(10deg); }
.copyright { font-size: 0.85rem; color: var(--text-light); opacity: 0.8; }

.trademark-notice {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    margin: 8px 0;
}

.dark-mode .trademark-notice {
    color: var(--text-light-dark, #aaa);
}

.brand-badge {
    display: inline-block;
   /* --- background: rgba(109, 74, 175, 0.1);--- */
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color, #6d4aff);
}

.separator {
    margin: 0 8px;
    color: var(--text-muted, #ccc);
}

.legal-note {
    font-size: 0.75rem;
    color: var(--text-muted, #999);
    margin: 8px 0 0;
}

.dark-mode .legal-note {
    color: var(--text-muted-dark, #777);
}
