/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Unisex ve Canlı Renk Paleti (Teal / Camgöbeği) */
    --primary-color: #00796b;   /* Koyu Teal */
    --secondary-color: #009688; /* Canlı Teal */
    --accent-color: #80cbc4;    /* Açık Teal */
    --text-color: #212529;      /* Koyu Gri */
    --light-text-color: #6c757d;/* Orta Gri */
    --bg-color: #f4f7f6;        /* Çok Açık Gri-Yeşil Arkaplan */
    --card-bg: #ffffff;         /* Beyaz Kart Arkaplanı */
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --sidebar-bg: #1d3557;      /* Koyu Mavi */
    --sidebar-text: #f1faee;    /* Neredeyse Beyaz Metin */

    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23e0e0e0' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 90px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width var(--transition-speed) ease-in-out;
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar:hover {
    width: 260px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 50px;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar:hover .sidebar-header {
    justify-content: flex-start;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
}

.sidebar:hover .logo-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-links {
    list-style: none;
    width: 100%;
    flex-grow: 1;
}

.nav-links li {
    width: 100%;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    text-decoration: none;
    color: var(--sidebar-text);
    border-radius: 0 50px 50px 0;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    gap: 20px;
    position: relative;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    color: #fff;
}

.nav-links li a.active {
    background-color: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.nav-links i {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.nav-text {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
}

.sidebar:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 50px;
    background-color: var(--bg-color);
    transition: all var(--transition-speed) ease;
}

.module {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.module.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.module-title {
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
}
.module-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.card {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
    position: relative;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}
.card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-text-color);
}


/* Giriş Animasyonları */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animated.fadeInDown {
    animation-name: fadeInDown;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 30px;
}
.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    min-width: 70px;
    box-shadow: 0 5px 15px rgba(0, 150, 136, 0.3);
}
.countdown-timer span:first-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}
.countdown-timer span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.9;
}

.todo-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}
.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fcfcfc;
}
.input-field:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.2);
}

.btn {
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}
.primary-btn:hover {
    background-color: #005a4f;
}
.success-btn {
    background-color: var(--success-color);
    color: white;
}
.success-btn:hover {
    background-color: #218838;
}
.danger-btn {
    background-color: var(--danger-color);
    color: white;
}
.danger-btn:hover {
    background-color: #c82333;
}

.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    padding: 15px 5px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}
.styled-list li:hover {
    background-color: #f9f9f9;
}
.styled-list li:last-child {
    border-bottom: none;
}
.styled-list li.completed span {
    text-decoration: line-through;
    opacity: 0.6;
    color: var(--light-text-color);
}
.styled-list li span {
    flex-grow: 1;
    cursor: pointer;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.quote-text {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 1.15rem;
    text-align: center;
    color: var(--light-text-color);
    margin-top: 15px;
    line-height: 1.8;
}

/* Konu Takibi & İlerleme Barları */
.progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    height: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}
.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text-color);
}
.hedef-hatirlatma-text {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
}
.konu-takip-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.subject-card h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.subject-card i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}
.checklist label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s ease;
}
.checklist label:hover {
    color: var(--secondary-color);
}
.checklist input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    border-radius: 4px;
}


/* Deneme Karnesi */
.deneme-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}
#deneme-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.data-table th, .data-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.data-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.data-table tbody tr:hover {
    background-color: #e0f2f1; /* Hafif teal hover */
}
.data-table th:first-child { border-top-left-radius: 12px; }
.data-table th:last-child { border-top-right-radius: 12px; }
.data-table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.data-table tr:last-child td:last-child { border-bottom-right-radius: 12px; }


/* Hata Defteri & Başarı Günlüğü */
#hata-form, #gunluk-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}
#hata-list li, #gunluk-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 5px;
}
#hata-list .hata-info, #gunluk-list .gunluk-info {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}
#hata-list .hata-detail, #gunluk-list .gunluk-entry {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
}
#hata-list .hata-meta, #gunluk-list .gunluk-meta {
    font-size: 0.85rem;
    color: var(--light-text-color);
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
#gunluk-list .gunluk-meta span { flex-grow: 1; }
#hata-list .delete-btn, #gunluk-list .delete-btn {
    font-size: 1.1rem;
    margin: 0;
}


/* Pomodoro */
.pomodoro-card {
    max-width: 400px;
    margin: auto;
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, #f9f9f9 100%);
    border: 1px solid var(--border-color);
}
.pomodoro-display {
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}
.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.pomodoro-controls button {
    margin: 0;
    padding: 15px 30px;
}


/* Bilgi Bankası */
.bilgi-list-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.bilgi-card {
    background-color: #fff;
    border-left: 5px solid var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.bilgi-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}
.bilgi-card p {
    font-size: 0.95rem;
    margin: 10px 0;
}
.bilgi-card .etiket {
    font-size: 0.8rem;
    background-color: var(--accent-color);
    color: var(--sidebar-bg);
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 500;
}
.bilgi-card .delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
}


/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    /* ... (önceki responsive kodları büyük ölçüde geçerli) ... */
    .main-content {
        padding: 30px;
    }
    .module-title {
        font-size: 2rem;
    }
    .deneme-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    /* ... (önceki responsive kodları büyük ölçüde geçerli) ... */
     .main-content {
        padding: 20px;
    }
}