* {
    margin: 0;
    padding: 0;
}
/* Bootstrap replacements - Minimal Bootstrap classes used in project */
/* Container - Bootstrap'tan alınan temel container sınıfı */
.container {
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Bootstrap overrides - Ana uygulama için */
.container dl, 
.container ol, 
.container ul {
    margin-top: 0;
    margin-bottom: 0;
}
.container ol, 
.container ul {
    padding-left: 0;
}
/* Plan listelerini koru */
.plan-liste, 
#dersinAmaclariList, 
#dipnotlarList {
    padding-left: 20px !important;
    margin-bottom: 10px !important;
}
.plan-liste li, 
#dersinAmaclariList li, 
#dipnotlarList li {
    margin-bottom: 5px;
}
/* Sidebar menü stilleri - tüm sidebar menüler için ortak */
.sidebar-menu {
    list-style: none !important;
    padding: 0 15px !important; /* Sağdan ve soldan boşluk */
    margin: 0 !important;
}
.item-list-container ul {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}
body {
    font-family: Roboto, sans-serif;
    min-height: 2853px;
    overflow-x: hidden;
    position: relative;
    transition: padding-left 0.3s ease-in-out;
    background: #aad9ff;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #E7E9BB, #aad9ff);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #E7E9BB, #aad9ff);

    padding-top: 0; /* fallback */
    padding-top: constant(safe-area-inset-top); /* iOS 11.0 için */
    padding-top: env(safe-area-inset-top, 0);     /* iOS 11.2+ için */
    padding-bottom: 0; /* fallback */
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: 0; /* fallback */
    padding-left: constant(safe-area-inset-left);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: 0; /* fallback */
    padding-right: constant(safe-area-inset-right);
    padding-right: env(safe-area-inset-right, 0);
}
.flex-grow-1 {
    flex-grow: 1;
}
.text-meta {
    display: block;
    margin-top: 5px;
    color: #555;
}
.hidden-by-default {
    display: none;
}
#sidebarBelirliGunlerList.item-list-container { /* ID'ye özel stil */
    max-height: calc(100vh - 160px);
}
#loadDemoDataBtn.hafta-secim-action-btn { /* ID'ye özel stil */
    margin-top: 15px;
    width: 100%;
}
.form-group-section-divider {
    margin-top: 10px;
    margin-bottom: 15px; /* .form-group genelinden */
}
label[for="customDersSaatiInput"] { /* Attribute selector ile daha spesifik */
    display: block;
    margin-bottom: 5px;
}
#dersinAmaclariVeDipnotlarContainer {
    margin: 30px 0px 0px 30px;
    font-size: 12px;
}
#dersinAmaclariVeDipnotlarContainer .section-block:last-child { /* Sadece son section-block için */
    margin: 30px 0px;
}
#planImzalariContainer.plan-imzalari-container { /* ID'ye özel stil */
    margin: 0px 0px 0px 0px;
}

/* Projeye özel container override */
.container {
    max-width: 1400px;
    min-height: 2750px;
    margin: 0 auto;
    width: 100%;
    border-radius: 8px; /* Biraz daha az yuvarlak */
    position: relative; 
    transition: margin-left 0.3s ease-in-out, margin-right 0.3s ease-in-out, width 0.3s ease-in-out;
}
.header {
    padding: 30px;
}
.header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7em; /* Değiştirildi (max 24px) */
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Flip animation moved to animations.css */

.user-auth-section { /* .header altındaki userAuthSection için */
    text-align: right;
    /* CLS önleme için minimum boyut rezervasyonu */
    min-height: 40px;
    min-width: 200px;
}
#yillikPlanBasligi {
    text-align: center;
    margin: 20px;
    font-weight: bold;
    font-size: 1em;
}
/* SEO için h2 heading stilleri */
.section-block h2 {
    font-size: 1em;
    font-weight: bold;
    margin: 0;
    padding: 0;
}
.form-container {
    position: relative; 
    width: 100%;
    min-height: 2200px;
}
.ikon-kare-buton{
    background-color:var(--notification-primary-light);
    color:var(--notification-primary);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0;
    border-radius: 6px;
}
.ikon-kare-buton:hover {
    background-color: #95a5a6; /* Hover durumunda biraz daha koyu gri */
    color: white;
}
.ikon-kare-buton:active {
    transform: scale(0.98);
}

/* Column info help button */
.column-info-button {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-left: 6px;
    background-color: #e5e5e5;
    color: white;
    border-radius: 12px;
    border: none;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.column-info-button:hover {
    background-color: #A0A0A0;
    transform: scale(1.05);
}

/* Info balloon styles */
.info-balloon-popup {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none; /* Prevent interfering with mouse events */
}

.section {
    padding: 0 25px 0 25px;
}
.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tab-container {
    display: flex;
    gap: 10px;
    margin: 0px 8px;
}
.tab-btn {
    padding: 10px 15px;
    height: 50px;
    border: none;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}
.tab-btn.active {
    background-color: #fff;

    font-weight: bold;
}

/* Guest users için Planlarım tabını default gizle */
#planlarimTab {
    display: none;
}

/* Guest için güçlü gizleme */
#planlarimTab.guest-hidden,
#planlarimTab[data-guest-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Sidebar Form Styles */
.sidebar .form-group {
    margin: 15px 0;
}
.sidebar .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
}
.sidebar .form-group input,
.sidebar .form-group select,
.sidebar .form-group textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.sidebar .form-group input:focus,
.sidebar .form-group select:focus,
.sidebar .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}
.sidebar .input-group {
    display: flex;
    gap: 5px;
    align-items: center;
}
.sidebar .input-group select,
.sidebar .input-group input {
    flex: 1;
}
.sidebar .input-group .ikon-kare-buton {
    flex-shrink: 0;
}
.sidebar .text-meta {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}
/* Eski form-group için geçici uyumluluk */
.form-group {
    margin: 10px 0px;
}
.input-group {
    display: flex;
    gap: 5px;
    align-items: center;
}
.input-group select,
.input-group input {
    width: auto;
    flex: 1;
}
/* Eski label ve input stilleri (geçici olarak korunacak) */
label:not(.mui-textfield label) {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    padding-top: 15px;
}
input:not(.mui-textfield input):not(.search-input-custom),
select:not(.mui-textfield select) {
    width: -webkit-fill-available;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: border-color 0.3s;
}
input:not(.mui-textfield input):not(.search-input-custom):focus,
select:not(.mui-textfield select):focus {
    outline: none;
}
.hafta-container-grid {
    --plan-columns: 50px 50px 50px 2fr 2fr 1fr 1fr 1fr 1fr; /* Varsayılan 9 Sütun - ne Araç-Gereç ne Değerler (Okul Dışı Öğrenme + Belirli Günler dahil) */
    /* CLS önleme için minimum yükseklik */
    min-height: 400px;
    position: relative;
}
.hafta-container-grid.aracgerec-visible {
    --plan-columns: 50px 50px 50px 2fr 2fr 1fr 1fr 1fr 1fr 1fr; /* 10 Sütun - Sadece Araç-Gereç */
}
.hafta-container-grid.degerler-visible {
    --plan-columns: 50px 50px 50px 2fr 2fr 1fr 1fr 1fr 1fr 1fr; /* 10 Sütun - Sadece Değerler */
}
.hafta-container-grid.aracgerec-visible.degerler-visible {
    --plan-columns: 50px 50px 50px 2fr 2fr 1fr 1fr 1fr 1fr 1fr 1fr; /* 11 Sütun - Her ikisi de */
}

/* Araç-Gereç sütunu gizleme sistemi - Değerler ile aynı mantık */
.hafta-container-grid .aracgerec-col,
.hafta-item .aracgerec-col {
    display: none;
}
.hafta-container-grid.aracgerec-visible .aracgerec-col,
.hafta-container-grid.aracgerec-visible .hafta-item .aracgerec-col {
    display: flex;
}
/* Plan table wrapper genel stiller */
.plan-table-wrapper {
    overflow-x: auto;
    overflow-y: visible; /* Allow dropdowns to extend beyond container */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-height: 1978px;
    position: relative;
}

.hafta-item {
    display: grid;
    grid-template-columns: var(--plan-columns);
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    align-items: center;
    text-align: left;
    font-size: 12px; /* Tablo içi genel font boyutu */
    user-select: none; /* Sürükle-Bırak için */
}
.hafta-item.clickable-row {
    transition: background-color 0.2s ease;
}
.hafta-item.clickable-row:hover {
    background-color: #f0f8ff;
}
.hafta-item.clickable-row.has-ob {
    background-color: #97b983;
}
.hafta-item.clickable-row.has-ob:hover {
    background-color: #7fa066; /* Slightly darker green on hover */
}

.hafta-container-grid .degerler-col,
.hafta-item .degerler-col {
    display: none;
}
.hafta-container-grid.degerler-visible .degerler-col,
.hafta-container-grid.degerler-visible .hafta-item .degerler-col {
    display: flex; /* veya 'block' veya 'grid', içeriğe bağlı */
}

.hafta-header {
    display: grid;
    grid-template-columns: var(--plan-columns);
    gap: 8px; 
    background: rgba(248, 249, 250, 0.9); /* Opaklığı artırılmış arka plan */
    position: sticky;
    top: 0;
    z-index: 10; /* Diğer elemanların üzerinde kalması için z-index artırıldı */
    border-bottom: 3px solid #dddddd;
    border-radius: 10px;
    /* CLS önleme için sabit yükseklik */
    line-height: 20px;
    align-items: center;
}
.hafta-header > div { /* Başlık hücreleri için hizalama */
    display: flex;
    align-items: center;
    text-align: center; /* Metin hizalaması */
    font-size: 12px;
    margin-left: 6px;
}

.hafta-sutun-elemani {
    position: relative;
    width: 100%;
    height: 100%;
}
.hafta-sutun-secili {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 24px;
    padding: 4px;
    /* border: 1px solid #ddd;
    border-radius: 4px; */
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.plan-tags {
    background-color: #ffffff70;
    color: #333333;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s, transform 0.2s;
    user-select: none;
}

.plan-tags:hover {
    background-color: #ffffffa0;
    transform: scale(1.02);
}

.plan-tags.dragging {
    opacity: 0.8;
    transform: scale(1.2);
    cursor: grabbing;
    /* Label'ın kendisinde border/outline yok - sadece opacity değişir */
}

.plan-tags .remove {
    cursor: pointer;
    font-weight: bold;
}

/* Container drag over efekti - REMOVED (sadece sütun highlight kullanılacak) */
/* .drag-over artık kullanılmıyor - kesikli çizgi sadece tüm sütunun sağ/solunda olacak */

/* Sütun yolu efekti - sürükleme sırasında tüm sütun vurgulanır */
/* Sadece container'larda göster (.hafta-sutun-secili), label'larda gösterme */
.hafta-sutun-secili.drag-column-highlight {
    position: relative;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74, 144, 226, 0.05) 5%,
        rgba(74, 144, 226, 0.05) 95%,
        transparent 100%);
}

.hafta-sutun-secili.drag-column-highlight::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        180deg,
        #4A90E2 0px,
        #4A90E2 5px,
        transparent 5px,
        transparent 10px
    );
    animation: moveStripe 1s linear infinite;
}

.hafta-sutun-secili.drag-column-highlight::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        180deg,
        #4A90E2 0px,
        #4A90E2 5px,
        transparent 5px,
        transparent 10px
    );
    animation: moveStripe 1s linear infinite;
}

/* @keyframes moveStripe moved to animations.css */
    100% {
        background-position: 0 10px;
    }
}

/* .drag-column-highlight.drag-over override kaldırıldı - artık .drag-over kullanılmıyor */
/* Removed: .hafta-sutun-acilir-menu and .hafta-sutun-secenek - now using .acilir-menu and .acilir-menu-item */

/* Header Popup Menu Styles */
.hafta-header div.clickable-header {
    cursor: pointer;
    position: relative;
    padding: 8px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hafta-header div.clickable-header:hover {
    background-color: #f0f4f8;
    color: #2563eb;
}

/* Unified popup menu styles - used by all dropdowns */
.acilir-menu {
    position: fixed;
    width: max-content;
    min-width: 180px;
    max-width: 250px;
    max-height: 400px; /* Allow scrolling if content exceeds */
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 25;
    display: none;
    overflow-y: auto; /* Enable scrolling for long menus */
}

.acilir-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.acilir-menu-item:last-child {
    border-bottom: none;
}

.acilir-menu-item:hover {
    background-color: #f8f9fa;
    color: #2563eb;
}

.acilir-menu-item.primary-action {
    font-weight: 500;
    color: #2563eb;
}

.acilir-menu-item.danger-action {
    color: #dc3545;
}

.acilir-menu-item.danger-action:hover {
    background-color: #ffeaea;
    color: #c82333;
}

.acilir-menu-item.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.acilir-menu-item.disabled:hover {
    background-color: transparent !important;
    color: #999 !important;
}

.acilir-menu-item.empty-state {
    cursor: default;
    font-style: italic;
    color: #666;
    text-align: center;
}

.acilir-menu-item.empty-state:hover {
    background: transparent;
    color: #666;
}

.acilir-menu-item.selected {
    background-color: #e0eafc;
    font-weight: bold;
}
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 10px;
}
/* @keyframes spin moved to animations.css */
    100% { transform: rotate(360deg); }
}
.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}
.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Tab Sistemi */

/* @keyframes fadeIn moved to animations.css */
    to { opacity: 1; transform: translateY(0); }
}
/* Tab içeriği için özel stiller */

/* Tab geçiş efektleri */

/* Responsive tab design */

#currentPlanNameInput {
    padding: 10px; /* Butonla uyumlu padding */
}
.saved-plans-list {
    list-style: none;
    max-height: 249px;
    min-height: 249px;
    overflow-y: auto;
    border: 0px;
    border-radius: 6px;
    background: #ffffff5c;
}
.saved-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 15px; /* Güncellendi */
    cursor: pointer;
    transition: background-color 0.2s;
}
.saved-plan-item:hover {
    background-color: #f5f5f5;
}
.saved-plan-item:last-child {
    border-bottom: none;
}
.saved-plan-item.loaded-plan {
    background-color: #dbeafe; /* Daha belirgin bir mavi arka plan */
    border-left: 4px solid #3498db;
    padding-left: 11px;
}
.saved-plan-item.active-ders {
    background-color: #e3f2fd; /* Açık mavi highlight */
    border-left: 4px solid #2196f3;
    padding-left: 11px;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}
.saved-plan-item.dirty-plan {
    background-color: #ffefd3; /* Değişiklik olduğunda arkaplan rengi */
    border-left: 4px solid #ffcb71; /* Değişiklik olduğunda kenarlık rengi */
    padding-left: 11px;
}
.saved-plan-item.loaded-plan .plan-name {
    color: #2980b9; /* Mavi tonu */
    font-weight: 600;
}
.saved-plan-item span { /* Plan adı */
    flex-grow: 1;
    margin-right: 15px;
    color: #333;
}
.saved-plan-buttons {
    display: flex;
    gap: 8px;
}
.saved-plan-item .plan-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Dikey hizalama için */
    align-items: flex-start; /* Öğeleri sola hizala */
    gap: 4px; /* Satırlar arası boşluk */
}
.saved-plan-item .plan-name {
    font-weight: 500;
}
.saved-plan-item .plan-details {
    font-size: 13px;
    color: #666;
}
.saved-plan-item .plan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.saved-plan-item .plan-date {
    font-size: 12px;
    color: #888;
    text-align: end;
}
.edit-plan-name-input {
    /* Görünümü sıfırla */
    border: none;
    background-color: transparent;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    width: calc(100% - 30px);
    flex-grow: 1;
    border-bottom: 1px dashed #3498db; /* Düzenleme modunda olduğunu belirten hafif bir alt çizgi */
}
.edit-plan-name-input:focus {
    outline: none;
    border-bottom: 1px solid #2980b9;
}
.saved-plan-buttons .edit-plan-btn:hover {
    color: #f39c12; /* Turuncu */
    background-color: #fef8e7;
}
.saved-plan-buttons .save-rename-btn:hover {
    color: #2ecc71; /* Yeşil */
    background-color: #eafaf1;
}
.saved-plan-buttons .cancel-rename-btn:hover {
    color: #95a5a6; /* Gri */
    background-color: #f0f2f3;
}
.saved-plan-buttons .cancel-changes-btn:hover {
    color: #f39c12; /* Turuncu */
    background-color: #fef8e7;
}
/* Bitiş: Plan Yönetim Alanı Stilleri */

#planTarihAraligiSidebar { /* Bu ID'ye özel stil, HTML'den taşındı */
    margin-top: 10px;
    font-weight: bold;
    color: #2c3e50;
}
/* Floating Settings Button */
.floating-settings-btn {
    position: fixed;
    top: 10px;
    right: 0px; 
    background-color: #ffffff4d; /* Beyaz arka plan */
    border: 1px solid #e0e0e0; /* Hafif kenarlık */
    border-radius: 30px 0px 0px 30px;
    width: 64px; /* Biraz daha küçük */
    height: 64px;
    font-size: 18px;
    cursor: pointer;
    z-index: 30; /* Sidebar'ın üzerinde olmalı */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.floating-settings-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* .floating-settings-btn::before kaldırıldı - pulse animasyonunu kaldırmak için */

/* Sidebar Styles */

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x:hidden;
    width: 0; 
    position: fixed;
    z-index: 21; /* Layer 20-29: Sidebar main */
    top: 0;
    right: 0; 
    overflow-x: hidden;
    transition: width 0.3s ease-in-out; /* Daha hızlı geçiş */
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #e1f1ff;
    border-radius: 20px 0px 0px 0px;
    position: sticky;
    top: 0;
    z-index: 22; /* Layer 20-29: Sidebar header (above sidebar content) */
}
.sidebar-header .sidebar-back-btn { /* Global geri butonu için stil */
    color: #34495e;
    font-size: 18px; /* Biraz daha büyük */
    text-decoration: none;
    padding: 5px; /* Tıklama alanını genişlet */
}
.sidebar-header .sidebar-back-btn:hover {
    color: #2c3e50;
}
@media (max-width: 600px) {
    .sidebar.open {
        width: 80%!important; /* Mobilde tam genişlik */
    }
}
.sidebar.open  {
    width: 320px; /* Açıkken genişlik */
}
/* Sidebar h3 kaldırıldı, sidebar-header içindeki #sidebarTitle kullanılacak */

.sidebar .close-btn {
    font-size: 30px;
    color: #888;
    text-decoration: none;
}
.sidebar .close-btn:hover {
    color: #333;
}
.sidebar .item-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow-y: auto;
}
.item-button-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}
.item-button {
    flex-grow: 1;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #dddddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: left;
}
.item-button:hover {
    background-color: #e0e0e0;
}
.item-button.editing {
    border-color: #55b0fa;
}
.item-button.selected {
    background-color: #add9fe;
}
.item-button.selected:hover {
    border-color: #55b0fa;
}
.sidebar-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 0;
    background-color: #f8f9fa; 
    flex: 0 0 auto;
}
.hafta-secim-action-btn {
    width: 100%;
    padding: 10px 5px; /* Biraz daha büyük */
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(90deg, rgba(223, 242, 247, 1) 0%, rgb(172 217 254) 100%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hafta-secim-action-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}
#toggleDegerlerColumnBtn {
    background-color: #bdc3c7; /* Default/Pasif color */
}
#toggleDegerlerColumnBtn.selected {
    background-color: #2ecc71; /* Aktif color */
}
#toggleDegerlerColumnBtn.selected:hover {
    background-color: #17b95b; /* Aktif hover color */
}

.sidebar-content-wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 50px); /* Header yüksekliği çıkarıldı */
    overflow: hidden; /* Kayma efekti için */
    background-color: #e1f1ff;
}
.sidebar-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}
.sidebar-view.active-view {
    transform: translateX(0);
}
/* Sidebar menu stilleri üstte tanımlandı (satır 35) */

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px; /* Elemanlar arası boşluk */
    border-radius: 8px; /* Yuvarlak kenarlar */
    text-decoration: none;
    color: #2c3e50; /* Koyu metin rengi */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Örnekteki geçiş efekti */
    border: none; /* Alt çizgiyi kaldır */
}
.sidebar-menu li a i {
    margin-right: 15px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db; /* Ana renk */
}
.sidebar-menu li a:hover {
    background: #dff2f7;
    background: linear-gradient(90deg, rgba(223, 242, 247, 1) 0%, rgb(172 217 254) 100%);
    transform: translateX(5px); /* Hover'da sağa kayma */
    color: #2c3e50;
}
.sidebar-menu li a.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.2));
    font-weight: 600;
    color: #2c3e50;
}

.sidebar-view-content {
    flex-grow: 1;
    overflow-y: auto; 
    padding: 15px;
}
.sidebar-view .sidebar-actions {
    position: absolute; 
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f0f4f8; /* Biraz farklı bir arka plan */
    border-radius: 15px 15px 0px 0px;
}

/* Plan İmzaları Stilleri */
.plan-imzalari-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* En fazla 9 sütun, esnek genişlik */
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    align-items: start; /* İçerikleri yukarıya hizala */
}
.plan-imzalari-container .imza-alani {
    text-align: center;
    /* width kaldırıldı, grid-template-columns yönetecek */
}

.plan-imzalari-container .imza-alani p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}
.plan-imzalari-container .imza-alani .unvan {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px; /* İmza çizgisi için boşluk */
}
.plan-imzalari-container .imza-alani .imza-cizgisi {
    width: 80%;
    margin: 0 auto;
    border-bottom: 1px dashed #777;
    height: 1px;
}

/* İmza Spacer - Müdürü sağa itmek için */
.plan-imzalari-container .imza-spacer {
    visibility: hidden;
    height: 0;
}

/* Placeholder İmza Alanları */
.plan-imzalari-container .placeholder-imza {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.plan-imzalari-container .placeholder-imza:hover {
    opacity: 0.7;
}

.plan-imzalari-container .placeholder-imza-line {
    color: #999;
    font-style: italic;
}

.plan-imzalari-container .placeholder-imza .imza-cizgisi {
    border-bottom: none !important;
}

/* Plan Onay Tarihi Stili */
.plan-imzalari-container .plan-onay-tarihi {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Print Media - Placeholder'ları Gizle */
@media print {
    .placeholder-imza {
        display: none !important;
    }
    .imza-spacer {
        display: none !important;
    }
}

.user-auth-section .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #fff; /* Avatar etrafında ince bir çerçeve */
}
.user-auth-section .user-name {
    font-weight: 500;
}
.user-auth-section .user-email {
    font-size: 12px;
    opacity: 0.8;
}
.user-auth-section .auth-link {
    color: #1abc9c; /* Header'a kontrast oluşturacak canlı bir renk */
    text-decoration: none;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.user-auth-section .auth-link:hover {
    background-color: #1abc9c;
    color: white;
}
.user-auth-section .logout-link {
    color: #e74c3c; /* Çıkış için farklı bir renk */
}
.user-auth-section .logout-link:hover {
    background-color: #e74c3c;
    color: white;
}
/* Footer Styles */
.site-footer {
    margin: 20px 0;
    /* CLS önleme için sabit yükseklik */
    position: relative;
    /* Layout shift'i önle */
    contain: layout;
}
.footer-content {
    max-width: 1400px;
    margin: 0px 10px;
}
.footer-content p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}
.footer-links {
    font-size: 14px;
}
.footer-links a {
    color: #1976d2;
    text-decoration: none;
}
.footer-links a:hover {
    color: #1565c0;
    text-decoration: underline;
}
.footer-separator {
    color: #999;
    margin: 0 5px;
}
/* Legal Pages Styles */
.legal-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.legal-content h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}
.legal-content .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 14px;
}
.legal-content section {
    margin-bottom: 40px;
}
.legal-content h2 {
    color: #34495e;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}
.legal-content h3 {
    color: #34495e;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}
.legal-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}
.legal-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}
.legal-content ul li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
}
.legal-content a {
    color: #1976d2;
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}
/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
        margin: 20px 10px;
    }
    .legal-content h1 {
        font-size: 24px;
    }
    .legal-content h2 {
        font-size: 20px;
    }
    .legal-content h3 {
        font-size: 16px;
    }
}

/* Bootstrap Utility Classes - Sadece kullanılanlar */

/* Sadece kullanılan utility class'lar */
.text-center { text-align: center !important; }
.flex-grow-1 { flex-grow: 1 !important; }

/* Notification Toast Styles (Order Status Notification Example) */
:root {
    /* Bildirimlere özel renk değişkenleri */
    --notification-primary: #3d61ab;
    --notification-primary-light: #eef1f8;
    --notification-secondary: #ffdddd;
    --notification-secondary-light: #c0392b;
    --notification-neutral-100: #f7f7f7;
    --notification-neutral-400: #a9a9a9;
    --notification-neutral-500: #6f6f6f;
    --notification-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --notification-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.notification-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #fffffff4;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--notification-transition);
    z-index: 50; /* Layer 50+: System notifications */
    max-width: 350px;
    width: calc(100% - 3rem); /* Kenarlardan boşluk bırakmak için */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Örnekteki font */
}
.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--notification-primary);
    font-size: 1rem;
    flex-shrink: 0; /* Küçülmesini engelle */
}
.notification-content {
    flex: 1;
}
.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #333; /* Projenin genel metin rengiyle uyumlu olabilir */
}
.notification-message {
    font-size: 0.8rem;
    color: var(--notification-neutral-500);
    white-space: pre-line; /* Allow line breaks */
    line-height: 1.4;
    max-width: 300px;
}
.notification-close {
    background: none;
    border: none;
    color: var(--notification-neutral-400);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    line-height: 1; /* Düğme yüksekliğini etkilememesi için */
}
.notification-close:hover {
    color: #333;
}
/* Bildirim türlerine göre ek stiller (isteğe bağlı) */
.notification-toast.success .notification-icon {
    background-color: #e6f7f0; /* Yeşil tonu */
    color: #38c172;
}
.notification-toast.error .notification-icon {
    background-color: #fdecea; /* Kırmızı tonu */
    color: #e74c3c;
}
.notification-toast.warning .notification-icon {
    background-color: #fff8e1; /* Sarı tonu */
    color: #f1c40f;
}
.notification-toast.info .notification-icon {
    background-color: var(--notification-primary-light);
    color: var(--notification-primary);
}
/* Branch Input Field Styles */
#bransInputContainer input {
    transition: border-color 0.3s, box-shadow 0.3s;
}
#bransInputContainer input:hover {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}
#bransInputContainer input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}
/* Ölçme Değerlendirme Hafta Seçim Stilleri */
.hafta-secim-container {
    margin-top: 0;
    padding-bottom: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    position: relative;
    bottom: 0;
    display: none;
}
.hafta-secim-container.collapsed {
    max-height: 500px; /* Yeterince büyük bir değer, içeriğin sığmasını sağlar */
    display: block;
}
.hafta-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hafta-toggle-btn i {
    transition: transform 0.3s ease-in-out;
}
.hafta-toggle-btn.collapsed i {
    transform: rotate(180deg);
}

.donem-section {
    margin-bottom: 15px;
}
.hafta-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
}
.hafta-grid .hafta-btn {
    padding: 8px 5px;
    font-size: 13px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    text-align: center;
}
.hafta-grid .hafta-btn:hover {
    background-color: #dfe4ea;
    border-color: #95a5a6;
}
.hafta-grid .hafta-btn.selected {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    font-weight: bold;
}
.generate-grid {
    gap: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    word-break: break-word;
}
.generate-grid button {
    /* Material Design button styling */
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}
.generate-grid button:hover {
    background-color: #1565c0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
.generate-grid button:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}
.generate-grid button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}
.generate-grid button i {
    font-size: 18px;
}
/* Spinning animation for loading */
/* @keyframes spin moved to animations.css */
    to {
        transform: rotate(360deg);
    }
}

.generate-grid button i.spinning {
    animation: spin 1s linear infinite;
}
/* PDF button special styling */
#generateBtnPDF {
    background-color: #2B642D;
}
#generateBtnPDF:hover {
    background-color: #205623;
}

@media (min-width: 600px) {
    body.sidebar-active .container {
        margin-right: 320px;
        width: calc(100% - 350px);
    }
}


/* Düzenlenebilir Hücre Stilleri */
.editable-cell {
    padding: 6px;
    border-radius: 4px;
    background-color: #ffffff70;
    height: 100%; /* input yüksekliğine denk gelmesi için */
    text-align: left; /* Düzenleme için metni sola hizala */
    cursor: text;
}
.editable-cell:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 2px rgba(52, 152, 219, 0.5);
}

/* Removed unused class: .template-items-separator (never used in codebase) */

/* Hafta Dağıtım Butonları Stilleri */
.hafta-grid-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 buton yan yana */
    gap: 8px;
    margin-bottom: 10px; 
}
.hafta-grid-actions .hafta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: 12px; /* Yazı fontu küçültüldü */
    line-height: 1.3;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: auto; /* Genişlik grid tarafından yönetilecek */
    word-break: break-word; /* Kelimeleri kır */
    color: var(--notification-neutral-400);
}
.hafta-grid-actions .hafta-btn .material-icons {
    font-size: 24px; /* İkon boyutu */
    margin-bottom: 4px;
    
}
.hafta-grid-actions .hafta-btn:hover {
    background-color: #e0e0e0;
}
.hafta-grid-actions .hafta-btn:active {
    transform: scale(0.97);
}
/* Aktif ve Yıkıcı Buton Renkleri */
.hafta-grid-actions .hafta-btn.btn-action-always-active,
.hafta-grid-actions .hafta-btn.btn-action-conditional.active {
    background-color: var(--notification-primary-light);
    color: var(--notification-primary);
    border-color: var(--notification-primary);
}
.hafta-grid-actions .hafta-btn.btn-action-destructive {
    background-color: var(--notification-secondary);
    color: var(--notification-secondary-light);
    border-color: var(--notification-secondary-light);
}
.hafta-grid-actions .hafta-btn.btn-action-always-active:hover,
.hafta-grid-actions .hafta-btn.btn-action-conditional.active:hover {
    background-color: #d8e0f0; /* Mavinin biraz daha koyu tonu */
}
.hafta-grid-actions .hafta-btn.btn-action-destructive:hover {
    background-color: #f5caca; /* Kırmızının biraz daha koyu tonu */
}
/* Degerler Tab Stilleri */
.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}
.tab-button {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}
.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}
#degerlerView .tab-panel {
    display: none;
}
#degerlerView .tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.3s;
}
/* Ders Saati Yönetimi Stilleri */
.ders-saati-container {
    gap: 10px;
    align-items: flex-start;
    align-content: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.ders-saati-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: center;
}
.ders-saati-btn:hover {
    background-color: #dfe4ea;
}
.ders-saati-btn.selected {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    font-weight: bold;
}

/* @keyframes pulse kaldırıldı - pulse animasyonunu kaldırmak için */

/* Mobil Cihazlar için Yatay Kaydırma */
@media (max-width: 768px) {
    .plan-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOS için daha akıcı bir kaydırma deneyimi sağlar */
        padding-bottom: 10px; /* Kaydırma çubuğu için biraz boşluk */
    }
    .hafta-header, .hafta-container-grid {
        min-width: 900px; /* Tablonun rahatça sığacağı bir minimum genişlik */
    }
}

/* Video Section Styles */
.video-section {
    max-width: 1400px;
    margin: 0px auto 20px;
    text-align: center;
}

.video-tab-btn {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: -1px;
    position: relative;
}

.video-tab-btn:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-tab-btn.active {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

.video-tab-btn.active i {
    transform: rotate(180deg);
}

.video-tab-btn i {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.video-container {
    border: 0px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.video-container.active {
    max-height: 800px;
    opacity: 1;
}

.video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

/* @keyframes slideOpen moved to animations.css */
    to {
        max-height: 500px;
        opacity: 1;
    }
}


/* Kaynaklar Bölümü - Minimal */
.kaynaklar-container {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

.kaynaklar-baslik {
    font-weight: 500;
    margin-bottom: 4px;
}

.kaynak-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 2px;
}

.kaynak-link {
    color: #666;
    text-decoration: none;
}

.kaynak-link:hover {
    color: #333;
}

/* Sidebar close button fix */
.sidebar .close-btn {
    font-size: 30px;
    color: #888;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

/* Extension interference prevention */
#planOnayTarihiSidebar {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent extension content scripts from interfering with form elements */
input[data-lpignore="true"],
input[autocomplete="off"] {
    background-image: none !important;
    background-attachment: initial !important;
    background-size: initial !important;
    background-origin: initial !important;
    background-clip: initial !important;
    background-position: initial !important;
    background-repeat: initial !important;
}

/* ================================================
   Search Module Styles - Ana sayfa için ders arama
   ================================================ */
.ara-tab-container {
    /* Arşiv listesi ile aynı stil */
    border: 0px;
    border-radius: 6px;
    background: #fff;
    min-height: 60px;
    padding: 10px 20px;
}

.search-container {
    position: relative;
    width: 100%;
    display: block;
}

.search-input {
    /* 404 sayfasındaki gibi beyaz arka plan */
    width: 100%;
    padding: 12px 20px;
    padding-right: 150px; /* Counter için alan */
    border: 0px;
    border-radius: 6px;
    background: white;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 11; /* Layer 10-19: Plan dropdown overlays */
    border: 1px solid #e0e0e0;
}

.search-result-item {
    /* Saved plan item gibi stil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e7e7e7;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item .plan-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.search-result-item .plan-name {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.search-result-item .plan-details {
    font-size: 13px;
    color: #666;
}

.search-no-results {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e7e7e7;
}

.search-no-results-text {
    color: #666;
    font-style: italic;
    font-size: 15px;
    margin-bottom: 12px;
}

.search-ders-talep-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.search-ders-talep-btn:hover {
    background: #1d4ed8;
}

.search-ders-talep-btn i {
    font-size: 18px;
}

.search-highlight {
    background-color: #ffeb3b;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
    .ara-tab-container {
        padding: 0 10px; /* Mobile'da daha az padding */
    }
    
    .search-input {
        font-size: 16px;
        padding: 10px 16px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }

    .search-result-item .plan-name {
        font-size: 16px;
    }

    .search-result-item .plan-details {
        font-size: 14px;
    }
}

/* ========== COMMENT SYSTEM STYLES ========== */

/* Comments Section */
.comments-section {
    max-width: 1320px;
    margin: 30px auto;
    padding: 0 20px;
    /* Transparan arka plan - ana sayfa rengini kullan */
}

.comments-section h2 {
    color: #2c3e50;
    font-size: 24px;
    padding-bottom: 10px;
    font-family: 'DM Serif Display', serif;
}

/* Comment Input - YouTube Style */
.comment-input-container {
    position: relative;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-user-avatar {
    flex-shrink: 0;
}

.comment-user-avatar .material-icons {
    font-size: 40px;
    color: #6c757d;
    background: #e9ecef;
    border-radius: 50%;
    padding: 4px;
}

/* Logged-in user's avatar image in input */
.comment-user-avatar img,
.comment-user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}

.comment-input-wrapper {
    flex-grow: 1;
}

.comment-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    padding: 8px 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow-y: hidden;
}

.comment-textarea:focus {
    outline: none;
    border-bottom: 2px solid #065fd4;
}

.comment-textarea::placeholder {
    color: #606060;
}

/* Edit mode textarea inside a comment */
.comment-edit-textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}

.comment-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comment-textarea:focus + .comment-input-footer,
.comment-input-footer:hover,
.comment-input-footer.active {
    opacity: 1;
}

.comment-input-footer-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Inline comment sort (minimal, next to submit button) */
.comment-sort-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.comment-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 6px 28px 6px 12px;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1;
    position: relative;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%2367717a" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.comment-sort-select:focus {
    outline: none;
    border-color: #cfd8dc;
    box-shadow: 0 0 0 2px rgba(6, 95, 212, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #065fd4;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 18px;
}

.btn-primary:hover:not(:disabled) {
    background: #0553c2;
}

.btn-primary:disabled {
    background: #f0f0f0;
    color: #909090;
    cursor: not-allowed;
}

.btn-disabled {
    background: #f0f0f0 !important;
    color: #909090 !important;
    cursor: not-allowed !important;
}

.btn-ghost {
    background: transparent;
    color: #606060;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 18px;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Login Prompt Overlay */
.login-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.login-prompt-overlay p {
    color: #065fd4;
    font-size: 14px;
    margin: 0;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #757575;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.google-login-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.google-login-btn:active {
    background: #e8eaed;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-menu-btn {
    border: 0px;
}

.comment-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.98);
}

.comment-card-avatar {
    flex-shrink: 0;
}

.comment-card-avatar .material-icons {
    font-size: 32px;
    color: #6c757d;
    background: #e9ecef;
    border-radius: 50%;
    padding: 2px;
}

/* Comment author avatar image */
.comment-card-avatar img,
.comment-card-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}

.comment-card-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.comment-date {
    color: #6c757d;
    font-size: 13px;
}


.comment-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-reply-btn,
.comment-like-btn,
.comment-dislike-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-reply-btn:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.comment-like-btn:hover { color: #2e7d32; background: rgba(46,125,50,0.1); }
.comment-dislike-btn:hover { color: #c62828; background: rgba(198,40,40,0.1); }

.comment-reply-btn .material-icons,
.comment-like-btn .material-icons,
.comment-dislike-btn .material-icons {
    font-size: 16px;
}

/* Active states for like/dislike */
.comment-like-btn.active, .comment-like-btn.active i { color: #2e7d32; }
.comment-dislike-btn.active, .comment-dislike-btn.active i { color: #c62828; }

/* Replies */
.replies-container {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #e9ecef;
}

.replies-load-more {
    margin-top: 10px;
    padding-left: 20px;
}

.replies-load-more .load-more-replies-btn {
    background: transparent;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 0;
}
.replies-load-more .load-more-replies-btn:hover {
    text-decoration: underline;
}

.reply-card {
    border-radius: 8px;
    padding: 15px;
    margin-top: 12px;
    border: 1px solid #e9ecef;
    position: relative;
}

.reply-card::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 12px;
    height: 2px;
    background: #e9ecef;
}

.reply-card .comment-user-name {
    font-size: 14px;
}

.reply-card .comment-content {
    font-size: 13px;
}

.reply-card .comment-date {
    font-size: 12px;
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-comments .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-comments p {
    font-size: 16px;
    margin: 0;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

/* @keyframes spin moved to animations.css */
    100% { transform: rotate(360deg); }
}

/* Search counter styling */
.search-counter {
    display: none; /* Başlangıçta gizli, JS ile gösterilir */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 11px;
    font-weight: normal;
    white-space: nowrap;
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
    z-index: 10;
}

.search-container {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-counter {
        font-size: 10px;
        right: 10px;
    }

    .search-input {
        padding-right: 130px !important;
    }

    .comments-section {
        margin: 20px 0;
    }

    .comments-section h2 {
        font-size: 20px;
    }

    .comment-input-container {
        padding: 15px;
    }

    .comment-card {
        padding: 15px;
    }

    .replies-container {
        padding-left: 15px;
    }

    .comment-user-name {
        font-size: 14px;
    }

    .comment-content {
        font-size: 13px;
    }

    .comment-actions {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .comment-header {
        align-items: flex-start;
        gap: 8px;
    }

    .comment-user-info {
        width: 100%;
        justify-content: space-between;
    }

    .comment-actions {
        align-items: flex-start;
        gap: 8px;
    }

    .replies-container {
        padding-left: 10px;
    }

    .reply-card::before {
        left: -8px;
    }
}

/* ========== COMMENT RULES MODAL ========== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30; /* Layer 30-39: Modal backdrop */
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

/* @keyframes modalSlideIn moved to animations.css */
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f3f4;
    color: #2c3e50;
}

.modal-body {
    padding: 20px 25px;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.rule-item .material-icons {
    color: #3498db;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.rule-item span {
    color: #2c3e50;
    line-height: 1.5;
    font-size: 14px;
}

.rules-footer {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #bee5eb;
}

.rules-footer p {
    margin: 0;
    font-size: 13px;
    color: #495057;
    line-height: 1.5;
}

.modal-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.modal-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.modal-actions {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions .btn {
    min-width: 120px;
    justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }

    .modal-header {
        padding: 15px 20px 10px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 15px 20px;
    }

    .rule-item {
        padding: 10px;
    }

    .modal-actions {
        padding: 15px 20px;
        flex-direction: column;
    }

    .modal-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

/* ========== REPORT MODAL STYLES ========== */

.report-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
}

.report-warning .material-icons {
    color: #f39c12;
    font-size: 24px;
}

.report-warning p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.reason-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reason-option:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.reason-option input[type="radio"] {
    margin: 0;
}

.reason-option input[type="radio"]:checked + span {
    color: #dc3545;
    font-weight: 600;
}

.reason-option:has(input[type="radio"]:checked) {
    background: #f8d7da;
    border-color: #dc3545;
}

.reason-option span {
    color: #495057;
    font-size: 14px;
}

#customReasonContainer {
    margin-top: 15px;
}

#customReasonText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

#customReasonText:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Report Button in Comments */
.comment-report-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.comment-report-count .material-icons {
    font-size: 14px;
}

