@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* ============================================
   CSS Custom Properties (Tema Değişkenleri)
   ============================================ */
:root {
    /* Tema Renkleri - Arka Plan Gradientleri */
    --theme-blue-bg: linear-gradient(to right, #246A96, #42B4E6);
    --theme-blue-accent: #42B4E6;

    --theme-red-bg: linear-gradient(to right, #C94B6B, #E85A7A);
    --theme-red-accent: #E85A7A;

    --theme-purple-bg: linear-gradient(to right, #6B4F8E, #9D7BC2);
    --theme-purple-accent: #9D7BC2;

    --theme-green-bg: linear-gradient(to right, #2D8659, #4ECB71);
    --theme-green-accent: #4ECB71;

    --theme-orange-bg: linear-gradient(to right, #D97A3D, #F4A460);
    --theme-orange-accent: #F4A460;

    --theme-black-bg: linear-gradient(to right, #000000, #1a1a1a);
    --theme-black-accent: #ffffff;

    --theme-white-bg: linear-gradient(to right, #ffffff, #f5f5f5);
    --theme-white-accent: #000000;

    --theme-nightblue-bg: linear-gradient(to right, #0a192f, #172a45);
    --theme-nightblue-accent: #64ffda;

    /* Aktif Tema (Varsayılan: Mavi) */
    --current-bg: var(--theme-blue-bg);
    --current-accent: var(--theme-blue-accent);

    /* Tema Bazlı Dinamik Renkler */
    --text-color: #fff;
    --bg-overlay: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
    --hover-overlay: rgba(255, 255, 255, 0.3);
    --modal-bg: rgba(255, 255, 255, 0.95);
    --modal-text: #333;
    --input-bg: #fff;
    --input-border: rgba(0, 0, 0, 0.1);
    --item-bg: rgba(0, 0, 0, 0.05);
    --item-hover-bg: rgba(0, 0, 0, 0.08);
}

/* ============================================
   Tema Varyasyonları
   ============================================ */
body[data-theme="black"] {
    --text-color: #e0e0e0;
    --bg-overlay: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.3);
    --hover-overlay: rgba(255, 255, 255, 0.25);
    --modal-bg: rgba(26, 26, 26, 0.98);
    --modal-text: #e0e0e0;
    --input-bg: rgba(40, 40, 40, 0.8);
    --input-border: rgba(255, 255, 255, 0.1);
    --item-bg: rgba(255, 255, 255, 0.05);
    --item-hover-bg: rgba(255, 255, 255, 0.08);
}

body[data-theme="white"] {
    --text-color: #333;
    --bg-overlay: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.2);
    --hover-overlay: rgba(0, 0, 0, 0.15);
    --modal-bg: rgba(255, 255, 255, 0.98);
    --modal-text: #333;
    --input-bg: #fff;
    --input-border: rgba(0, 0, 0, 0.2);
    --item-bg: rgba(0, 0, 0, 0.05);
    --item-hover-bg: rgba(0, 0, 0, 0.08);
}

body[data-theme="nightblue"] {
    --text-color: #e0e0e0;
    --bg-overlay: rgba(100, 255, 218, 0.1);
    --border-color: rgba(100, 255, 218, 0.3);
    --hover-overlay: rgba(100, 255, 218, 0.2);
    --modal-bg: rgba(10, 25, 47, 0.98);
    --modal-text: #e0e0e0;
    --input-bg: rgba(23, 42, 69, 0.8);
    --input-border: rgba(100, 255, 218, 0.2);
    --item-bg: rgba(100, 255, 218, 0.05);
    --item-hover-bg: rgba(100, 255, 218, 0.08);
}

/* ============================================
   Genel Stiller
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
    background: var(--current-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    text-align: center;
    transition: background 0.5s ease;
}

h1 {
    margin-bottom: 30px;
    font-weight: 600;
}

/* ============================================
   Görev Konteyneri
   ============================================ */
.task-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.next-task {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ============================================
   Aksiyon Butonları
   ============================================ */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 0;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-overlay);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--hover-overlay);
    transform: scale(1.1);
}

/* Nightblue tema için özel aksiyon buton stilleri */
body[data-theme="nightblue"] .action-btn {
    color: #64ffda;
}

/* ============================================
   Dairesel İlerleme Göstergesi
   ============================================ */
.circle-container {
    position: relative;
    width: 200px;
    height: 200px;
}

svg {
    transform: rotate(-90deg);
}

circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.bg {
    stroke: var(--border-color);
}

.progress {
    stroke: var(--current-accent);
    transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}

.time-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 600;
}

/* ============================================
   Modal Temel Stiller
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    color: var(--modal-text);
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

/* White ve Nightblue tema için özel modal kenarlıkları */
body[data-theme="white"] .modal-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="nightblue"] .modal-content {
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

/* Nightblue tema için özel modal başlık rengi */
body[data-theme="nightblue"] .modal-header {
    color: #64ffda;
}

/* ============================================
   Tema Seçici
   ============================================ */
.theme-selector {
    margin-bottom: 20px;
}

.theme-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--modal-text);
    transition: color 0.3s ease;
}

.theme-colors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.theme-color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-color-btn.active {
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.2);
}

.theme-color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Tema Renk Butonları */
.theme-color-btn[data-theme="blue"] {
    background: linear-gradient(135deg, #246A96, #42B4E6);
}

.theme-color-btn[data-theme="red"] {
    background: linear-gradient(135deg, #C94B6B, #E85A7A);
}

.theme-color-btn[data-theme="purple"] {
    background: linear-gradient(135deg, #6B4F8E, #9D7BC2);
}

.theme-color-btn[data-theme="green"] {
    background: linear-gradient(135deg, #2D8659, #4ECB71);
}

.theme-color-btn[data-theme="orange"] {
    background: linear-gradient(135deg, #D97A3D, #F4A460);
}

.theme-color-btn[data-theme="black"] {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.theme-color-btn[data-theme="white"] {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.theme-color-btn[data-theme="nightblue"] {
    background: linear-gradient(135deg, #0a192f, #172a45);
}

/* White tema için özel aktif stil */
.theme-color-btn[data-theme="white"].active {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.3);
}

.theme-color-btn[data-theme="white"]::after {
    color: #333;
    text-shadow: none;
}

/* Nightblue tema için özel aktif stil */
.theme-color-btn[data-theme="nightblue"].active {
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.3);
}

/* ============================================
   Kapatma Butonu
   ============================================ */
.close-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-overlay);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: var(--hover-overlay);
}

/* Nightblue tema için özel kapatma butonu */
body[data-theme="nightblue"] .close-btn {
    border: 1px solid var(--border-color);
    color: #64ffda;
}

/* ============================================
   Plan Modal (Sidebar)
   ============================================ */
#plan-modal {
    justify-content: flex-end;
    align-items: stretch;
    backdrop-filter: none;
}

.plan-modal-content {
    background: var(--modal-bg);
    color: var(--modal-text);
    padding: 20px 24px 24px 24px;
    border-radius: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    overflow: hidden;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-out, background 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

body[data-theme="white"] .plan-modal-content {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="nightblue"] .plan-modal-content {
    border-left: 1px solid rgba(100, 255, 218, 0.2);
}

.plan-modal-content .modal-header {
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

#plan-list {
    overflow-y: auto;
    padding: 4px 0;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.plan-modal-content .close-btn {
    margin-top: 0;
    flex-shrink: 0;
}

#plan-modal.active .plan-modal-content {
    transform: translateX(0);
}

/* ============================================
   Görev Öğeleri
   ============================================ */
.task-item {
    padding: 14px 16px;
    margin: 6px 0;
    background: var(--item-bg);
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
}

.task-item:hover {
    background: var(--item-hover-bg);
}

.task-item.active {
    font-weight: 600;
    color: #fff;
    background: var(--current-accent) !important;
    padding: 16px 18px;
    margin: 8px 0;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

/* Tema bazlı aktif görev stilleri */
body[data-theme="black"] .task-item.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

body[data-theme="white"] .task-item.active {
    background: var(--current-accent) !important;
    color: #ffffff;
}

body[data-theme="nightblue"] .task-item.active {
    background: rgba(100, 255, 218, 0.15) !important;
    color: #64ffda;
    border-left: 4px solid rgba(100, 255, 218, 0.5);
}

/* ============================================
   Plan Düzenleme Modu
   ============================================ */
.plan-edit-mode .task-item {
    padding-right: 80px;
}

.plan-edit-buttons {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    gap: 6px;
    align-items: center;
}

.plan-edit-mode .plan-edit-buttons {
    display: flex;
}

.plan-edit-btn,
.plan-delete-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--current-accent);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 0;
    color: var(--current-accent);
    background: transparent;
}

.plan-edit-btn:hover,
.plan-delete-btn:hover {
    background: var(--current-accent);
    color: #fff;
}

/* Tema bazlı düzenleme butonları */
body[data-theme="black"] .plan-edit-btn,
body[data-theme="black"] .plan-delete-btn {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

body[data-theme="black"] .plan-edit-btn:hover,
body[data-theme="black"] .plan-delete-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

body[data-theme="nightblue"] .plan-edit-btn,
body[data-theme="nightblue"] .plan-delete-btn {
    color: #64ffda;
    border-color: rgba(100, 255, 218, 0.5);
}

body[data-theme="nightblue"] .plan-edit-btn:hover,
body[data-theme="nightblue"] .plan-delete-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
}

/* ============================================
   Plan Başlık Aksiyonları
   ============================================ */
.plan-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.plan-header-title {
    flex: 1;
}

.plan-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.plan-edit-actions {
    display: none;
    gap: 8px;
}

.plan-edit-mode .plan-edit-actions {
    display: flex;
}

.plan-edit-mode .edit-mode-btn {
    display: none;
}

/* ============================================
   Plan Düzenleme Butonları
   ============================================ */
.edit-mode-btn,
.plan-save-btn,
.plan-cancel-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.edit-mode-btn,
.plan-save-btn {
    background: var(--current-accent);
    color: #fff;
}

.edit-mode-btn:hover,
.plan-save-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tema bazlı düzenleme modu butonları */
body[data-theme="black"] .edit-mode-btn,
body[data-theme="black"] .plan-save-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body[data-theme="black"] .edit-mode-btn:hover,
body[data-theme="black"] .plan-save-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

body[data-theme="nightblue"] .edit-mode-btn,
body[data-theme="nightblue"] .plan-save-btn {
    background: rgba(100, 255, 218, 0.2);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.5);
}

body[data-theme="nightblue"] .edit-mode-btn:hover,
body[data-theme="nightblue"] .plan-save-btn:hover {
    background: rgba(100, 255, 218, 0.3);
}

.plan-cancel-btn {
    background: var(--bg-overlay);
    color: var(--modal-text);
}

.plan-cancel-btn:hover {
    background: var(--hover-overlay);
}

/* ============================================
   Plan Ekleme Formu
   ============================================ */
.plan-add-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--item-bg);
    border-radius: 8px;
    margin-top: 8px;
    transition: background 0.3s ease;
}

.plan-edit-mode .plan-add-form {
    display: flex;
}

.plan-add-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-separator {
    margin: 0 4px;
}

.plan-add-form input {
    padding: 10px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.3s ease, color 0.3s ease;
    background: var(--input-bg);
    color: var(--modal-text);
}

.plan-add-form input::placeholder {
    color: var(--modal-text);
    opacity: 0.5;
}

.plan-add-form input:focus {
    border-color: var(--current-accent);
}

.plan-add-form input[type="time"] {
    width: 110px;
}

.plan-add-form input[type="text"] {
    flex: 1;
}

.plan-add-form-btn {
    padding: 10px 20px;
    background: var(--current-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.plan-add-form-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tema bazlı form butonları */
body[data-theme="black"] .plan-add-form-btn {
    background: rgba(255, 255, 255, 0.2);
}

body[data-theme="black"] .plan-add-form-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

body[data-theme="nightblue"] .plan-add-form-btn {
    background: rgba(100, 255, 218, 0.2);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.5);
}

body[data-theme="nightblue"] .plan-add-form-btn:hover {
    background: rgba(100, 255, 218, 0.3);
}

/* ============================================
   Plan Düzenleme Modalı
   ============================================ */
.plan-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.plan-edit-modal.active {
    display: flex;
}

.plan-edit-modal-content {
    background: var(--modal-bg);
    color: var(--modal-text);
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

body[data-theme="white"] .plan-edit-modal-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="nightblue"] .plan-edit-modal-content {
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.plan-edit-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

body[data-theme="nightblue"] .plan-edit-modal-content h3 {
    color: #64ffda;
}

.plan-edit-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-edit-modal-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.plan-edit-modal-form label {
    font-weight: 600;
    min-width: 80px;
    color: var(--modal-text);
}

.plan-edit-modal-form input {
    padding: 10px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.3s ease, color 0.3s ease;
    background: var(--input-bg);
    color: var(--modal-text);
}

.plan-edit-modal-form input::placeholder {
    color: var(--modal-text);
    opacity: 0.5;
}

.plan-edit-modal-form input:focus {
    border-color: var(--current-accent);
}

.plan-edit-modal-form input[type="time"] {
    width: 120px;
}

.plan-edit-modal-form input[type="text"] {
    flex: 1;
}

.plan-edit-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.plan-edit-modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.plan-edit-modal-save {
    background: var(--current-accent);
    color: #fff;
}

.plan-edit-modal-save:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tema bazlı modal kaydet butonu */
body[data-theme="black"] .plan-edit-modal-save {
    background: rgba(255, 255, 255, 0.2);
}

body[data-theme="black"] .plan-edit-modal-save:hover {
    background: rgba(255, 255, 255, 0.3);
}

body[data-theme="nightblue"] .plan-edit-modal-save {
    background: rgba(100, 255, 218, 0.2);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.5);
}

body[data-theme="nightblue"] .plan-edit-modal-save:hover {
    background: rgba(100, 255, 218, 0.3);
}

.plan-edit-modal-cancel {
    background: var(--bg-overlay);
    color: var(--modal-text);
}

.plan-edit-modal-cancel:hover {
    background: var(--hover-overlay);
}

/* ============================================
   Yapılacaklar Modal (Sidebar)
   ============================================ */
#tasks-modal {
    justify-content: flex-end;
    align-items: stretch;
    backdrop-filter: none;
}

.tasks-modal-content {
    background: var(--modal-bg);
    color: var(--modal-text);
    padding: 20px 24px 24px 24px;
    border-radius: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    overflow: hidden;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-out, background 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

body[data-theme="white"] .tasks-modal-content {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="nightblue"] .tasks-modal-content {
    border-left: 1px solid rgba(100, 255, 218, 0.2);
}

.tasks-modal-content .modal-header {
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

#tasks-list {
    overflow-y: auto;
    padding: 4px 0;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.empty-tasks-message {
    text-align: center;
    padding: 20px;
    opacity: 0.5;
}

.tasks-modal-content .task-input-form {
    flex-shrink: 0;
    margin-top: 0;
}

.tasks-modal-content .close-btn {
    margin-top: 0;
    flex-shrink: 0;
}

#tasks-modal.active .tasks-modal-content {
    transform: translateX(0);
}

/* ============================================
   Yapılacak Görev Öğeleri
   ============================================ */
.task-todo-item {
    padding: 14px 40px 14px 16px;
    margin: 6px 0;
    background: var(--item-bg);
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.task-todo-item:hover {
    background: var(--item-hover-bg);
}

.task-todo-item:hover .delete-task-btn {
    opacity: 1;
}

.task-todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.task-todo-text {
    flex: 1;
    word-break: break-word;
}

.task-todo-item.completed .task-todo-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.delete-task-btn {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 0, 0, 0.1);
    color: #d32f2f;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.delete-task-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

/* ============================================
   Görev Giriş Formu
   ============================================ */
.task-input-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#task-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.3s ease, color 0.3s ease;
    background: var(--input-bg);
    color: var(--modal-text);
}

#task-input::placeholder {
    color: var(--modal-text);
    opacity: 0.5;
}

#task-input:focus {
    border-color: var(--current-accent);
}

#add-task-btn {
    padding: 12px 20px;
    background: var(--current-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

#add-task-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tema bazlı görev ekleme butonu */
body[data-theme="black"] #add-task-btn {
    background: rgba(255, 255, 255, 0.2);
}

body[data-theme="black"] #add-task-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

body[data-theme="nightblue"] #add-task-btn {
    background: rgba(100, 255, 218, 0.2);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.5);
}

body[data-theme="nightblue"] #add-task-btn:hover {
    background: rgba(100, 255, 218, 0.3);
}

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

    /* Plan Modal - Mobilde ortalanmış modal */
    #plan-modal {
        justify-content: center;
        align-items: center;
    }

    .plan-modal-content {
        width: 90%;
        max-width: 400px;
        height: auto;
        max-height: 80vh;
        border-radius: 20px;
        transform: scale(0.9);
        opacity: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        padding: 20px 20px 24px 20px;
    }

    #plan-modal.active .plan-modal-content {
        transform: scale(1);
        opacity: 1;
    }

    #plan-list {
        max-height: 50vh;
    }

    .plan-modal-content .close-btn {
        margin-top: 8px;
    }

    /* Tasks Modal - Mobilde ortalanmış modal */
    #tasks-modal {
        justify-content: center;
        align-items: center;
    }

    .tasks-modal-content {
        width: 90%;
        max-width: 400px;
        height: auto;
        max-height: 80vh;
        border-radius: 20px;
        transform: scale(0.9);
        opacity: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        padding: 20px 20px 24px 20px;
    }

    #tasks-modal.active .tasks-modal-content {
        transform: scale(1);
        opacity: 1;
    }

    #tasks-list {
        max-height: 40vh;
    }

    .tasks-modal-content .close-btn {
        margin-top: 8px;
    }

    .delete-task-btn {
        opacity: 1;
    }
}