/* Genel Ayarlar ve Font */
:root {
    --primary-color: #4CAF50; /* Ferahlatıcı Yeşil */
    --secondary-color: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.15); /* Hafif şeffaf beyaz */
    --text-color: #1a1a1a;
    --dark-text: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8, #c4d7e7); /* Yumuşak, ferahlatıcı arka plan */
    display: flex;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Glassmorphism Efekti Uygulayan Genel Sınıf */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px); /* Temel Glass efekti */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Hafif çerçeve */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* 🌟 Işıklandırma Efektleri (iOS 26 tarzı) */
.light-spot-1 {
    position: absolute;
    top: 5%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(76, 175, 80, 0.4); /* Primary renk tonu */
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    animation: moveLight1 15s infinite alternate;
}

.light-spot-2 {
    position: absolute;
    bottom: 15%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: rgba(0, 123, 255, 0.3); /* Mavi tonu */
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: moveLight2 20s infinite alternate;
}

@keyframes moveLight1 {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 50px); }
}

@keyframes moveLight2 {
    from { transform: translate(0, 0); }
    to { transform: translate(-80px, -40px); }
}

/* --- SIDEBAR YAPISI --- */
.sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    /* Sidebar'a da glass efekti uygulayalım */
    background: var(--glass-bg); 
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 30px;
    padding: 0 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background: rgba(255, 255, 255, 0.3);
    border-left: 5px solid var(--primary-color);
    color: var(--primary-color);
}

/* --- ANA İÇERİK YAPISI --- */
.main-content {
    margin-left: 250px; /* Sidebar genişliği kadar boşluk bırak */
    padding: 30px;
    width: calc(100% - 250px);
    flex-grow: 1;
}

/* Dashboard kartları için glass efekti */
.dashboard-card {
    min-height: 150px;
    margin-bottom: 20px;
    /* Glass efekti */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}

/* --- INPUT ve TEXTAREA İYİLEŞTİRMESİ --- */
input[type="text"], 
input[type="number"], 
input[type="password"], 
input[type="email"], 
input[type="file"],
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Şeffaf beyaz çerçeve */
    border-radius: 10px; /* Daha yuvarlak köşeler */
    background: rgba(255, 255, 255, 0.2); /* Şeffaf arka plan */
    color: var(--dark-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none; /* Odaklandığında kenarlığı kaldırma */
}

input[type="file"] {
    padding: 10px; /* File input genelde daha az padding ister */
}

/* Input Odak Efekti (iOS tarzı hafif parlama) */
input[type="text"]:focus, 
input[type="number"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus, 
textarea:focus {
    border: 1px solid var(--primary-color); /* Odaklandığında ana renk çerçevesi */
    background: rgba(255, 255, 255, 0.8); /* Daha opak hale gelme */
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); /* Hafif ışıklandırma */
}

/* --- BUTON İYİLEŞTİRMESİ --- */
button.primary-btn, 
.primary-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color); /* Beyaz yazı */
    padding: 12px 25px;
    border: none;
    border-radius: 10px; /* Daha yuvarlak köşeler */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4); /* Hafif gölge */
    outline: none;
    display: inline-block;
}

button.primary-btn:hover,
.primary-btn:hover {
    background-color: #388E3C; /* Koyulaşma efekti */
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.6);
}

/* Farklı renkteki butonlar için (Örn: Reddet) */
button[name="action"][value="reddet"] {
    background-color: #dc3545 !important; 
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}
button[name="action"][value="reddet"]:hover {
    background-color: #c82333 !important;
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.6);
}

/* Güncelleme butonu için farklı bir renk (Örn: Mavi) */
button[name="action"][value="guncelle"],
button.update-btn {
    background-color: #007bff !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}
button[name="action"][value="guncelle"]:hover,
button.update-btn:hover {
    background-color: #0056b3 !important;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
}

/* --- TABLO İYİLEŞTİRMESİ --- */
table {
    border-radius: 10px;
    overflow: hidden; /* Kenar yuvarlaklığını korumak için */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

table thead tr {
    background: rgba(76, 175, 80, 0.7); /* Başlık için primary rengin şeffafı */
    color: white;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

table tbody tr:hover {
    background: rgba(76, 175, 80, 0.1); /* Satır üzerine gelince hafif yeşil parlama */
}

/* Tablodaki inputları da iyileştirilmiş input stiline uydur */
table td input[type="text"], 
table td input[type="number"] {
    padding: 8px; /* Tablo içinde daha az padding */
    margin: 0;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.7); /* Tablo içinde daha belirgin olması için */
}

/* --- COMBOBOX (SELECT) İYİLEŞTİRMESİ --- */
select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 10px; 
    background: rgba(255, 255, 255, 0.2); /* Şeffaf arka plan */
    color: var(--dark-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: all 0.3s ease;
    appearance: none; /* Varsayılan ok simgesini kaldır (isteğe bağlı) */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* Özel ok simgesi */
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; /* Ok simgesi için boşluk */
    cursor: pointer;
}

select:focus {
    border: 1px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); 
}

/* Option elemanları */
select option {
    background-color: var(--secondary-color); /* Açılır menü arka planı */
    color: var(--dark-text);
    padding: 10px;
}

/* --- CHECKBOX / RADIO BUTTON İYİLEŞTİRMESİ --- */

/* Varsayılan görünümleri gizle */
input[type="checkbox"],
input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Özel radio/checkbox konteynerı */
.custom-control {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    margin-right: 15px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    margin-bottom: 10px;
}

/* Özel işaretleyici (Görsel kısım) */
.custom-control-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Checkbox'lar için kare */
input[type="checkbox"] ~ .custom-control-indicator {
    border-radius: 5px;
}

/* Radio butonlar için yuvarlak */
input[type="radio"] ~ .custom-control-indicator {
    border-radius: 50%;
}

/* Seçili Durum */
input[type="checkbox"]:checked ~ .custom-control-indicator,
input[type="radio"]:checked ~ .custom-control-indicator {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* İşaret (Tik) */
.custom-control-indicator:after {
    content: "";
    position: absolute;
    display: none;
}

/* Checkbox tik stili */
input[type="checkbox"]:checked ~ .custom-control-indicator:after {
    display: block;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Radio buton iç nokta stili */
input[type="radio"]:checked ~ .custom-control-indicator:after {
    display: block;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

/* ========================================================= */
/* --- ÖZEL TARİH/SAAT INPUT İYİLEŞTİRMELERİ (GLASS UYUMLU) --- */
/* ========================================================= */

/* input[type="date"] ve input[type="time"] genel stilleri */
input[type="date"], 
input[type="time"] {
    /* Genel input stillerimiz (Yuvarlak köşeler, şeffaf arka plan) zaten var. */
    
    /* Gerekli görünüm kaldırmaları */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Metnin ortalanmasını engelle, sola hizala */
    text-align: left;
    
    /* Varsayılan font rengini dark-text olarak ayarla */
    color: var(--dark-text);
    
    /* Sağdaki Takvim/Saat simgelerini şık hale getirmek için zorlama */
    filter: invert(0.1) grayscale(0.2); /* İkonları hafif karart ve grileştir */
}

/* Tarih Seçici İndikatörünü Özelleştirme (Chrome/WebKit) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    /* Takvim/Saat ikonunu gizleyip, yerine kendi background-image ikonumuzu koymak
       en iyi çözümdür, ancak hızlıca stilimizi uygulayalım: */
    
    opacity: 0.8; /* İkonun opaklığını azalt */
    cursor: pointer;
    /* İkonların rengini doğrudan değiştirmek zor olduğu için filter kullanmak daha güvenli. */
}

/* Tarih ve Saat metin alanlarını hedefleme (Özellikle seçilmemişken placeholder gibi görünmesi için) */
/* Metin kısmını, sanki normal bir metin inputuymuş gibi göstereceğiz. */
/* Eğer seçili değilse metni daha açık renkte tutmak için: */
input[type="date"]:invalid,
input[type="time"]:invalid {
    color: rgba(0, 0, 0, 0.5); /* Seçilmemişken hafif gri/şeffaf metin */
}
input[type="date"]:valid,
input[type="time"]:valid {
    color: var(--dark-text); /* Seçilmişken normal siyah metin */
}

/* İpuçlarını (placeholder) tamamen kaldırıp, input alanını temiz göstermek: */
input[type="date"]::placeholder,
input[type="time"]::placeholder {
    color: transparent;
}