/**
 * ==============================================================================
 * Yazılım Tasarım Geliştiricisi: MUHARREM EDİP ŞAHİN
 * Telif Hakları: 
 * Versiyon: 3.0.0 (Görsel Referanslı Ultra Premium)
 * İletişim: 
 * Dosya: assets/css/style.css
 * ==============================================================================
 */

:root {
    --bg-color: #f4f6f9;
    --surface-color: #ffffff;
    --text-color: #333333;
    --text-muted: #777777;
    
    /* Sidebar Renkleri (Görseldeki gibi Koyu Lacivert/Gri) */
    --sidebar-bg: #222e3c;
    --sidebar-header-bg: #1e2936;
    --sidebar-text: #e9ecef;
    --sidebar-hover: #1c2633;
    --sidebar-border: #2b3a4a;
    
    /* Header Renkleri */
    --header-bg: #ffffff;
    --border-color: #e0e0e0;
    
    /* Vurgu Renkleri */
    --primary-color: #3b82f6; /* Modern Mavi */
    --primary-hover: #2563eb;
    --active-tab-bg: #1e293b;
    --active-tab-text: #ffffff;
    
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #f1f1f1;
    --text-muted: #aaaaaa;
    --sidebar-bg: #0f151c;
    --sidebar-header-bg: #0a0e13;
    --header-bg: #1e1e1e;
    --border-color: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg-color); color: var(--text-color); overflow-x: hidden; }

/* --- SIDEBAR MİMARİSİ --- */
.left-sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100vh; background: var(--sidebar-bg); color: var(--sidebar-text); z-index: 1000; display: flex; flex-direction: column; transition: var(--transition); }
.sidebar-logo-area { height: 70px; display: flex; align-items: center; justify-content: center; background: var(--sidebar-header-bg); border-bottom: 1px solid var(--sidebar-border); padding: 10px; }
.sidebar-logo-area img { max-width: 100%; max-height: 50px; }

/* Sidebar Arama Kutusu (Görseldeki gibi) */
.sidebar-search-box { padding: 15px; border-bottom: 1px solid var(--sidebar-border); display: flex; gap: 5px; }
.sidebar-search-box input { flex: 1; padding: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 4px; outline: none; }
.sidebar-search-box input::placeholder { color: #aaa; }
.sidebar-search-box button { padding: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 4px; cursor: pointer; }

/* Sidebar Menü */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-category { font-size: 11px; text-transform: uppercase; color: #8a98a5; padding: 10px 20px 5px 20px; font-weight: bold; letter-spacing: 1px; }
.menu-item a { display: flex; align-items: center; padding: 12px 20px; color: var(--sidebar-text); text-decoration: none; border-bottom: 1px solid var(--sidebar-border); transition: var(--transition); font-size: 14px; }
.menu-item a:hover { background: var(--sidebar-hover); border-left: 4px solid var(--primary-color); padding-left: 16px; }
.active-flash a { background: var(--sidebar-hover); border-left: 4px solid var(--primary-color); font-weight: bold; }

/* --- HEADER MİMARİSİ --- */
.main-wrapper { margin-left: 260px; min-height: 100vh; display: flex; flex-direction: column; transition: var(--transition); }
.top-header { height: 70px; background: var(--header-bg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 25px; position: sticky; top: 0; z-index: 999; }
.header-left { display: flex; align-items: center; gap: 20px; }
.menu-toggle { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-color); }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-icon { font-size: 18px; cursor: pointer; color: var(--text-color); background: none; border: none; }
.user-profile-badge { background: var(--primary-color); color: #fff; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 14px; text-decoration: none; }

/* --- ANA İÇERİK & FORMLAR --- */
.content-area { padding: 30px; flex: 1; }
.page-title { font-size: 22px; font-weight: bold; color: var(--text-color); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--primary-color); padding-left: 10px; text-transform: uppercase; }

/* Görseldeki Tab (Sekme) Yapısı */
.tabs-container { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; background: var(--surface-color); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px; text-transform: uppercase; }
.tab-btn.active { background: var(--active-tab-bg); color: var(--active-tab-text); border-color: var(--active-tab-bg); }

/* Görseldeki Form Düzeni (Grid) */
.form-card { background: var(--surface-color); border: 1px solid var(--border-color); padding: 25px; border-radius: 4px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.form-group label { display: block; font-size: 12px; font-weight: bold; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border-color); background: var(--surface-color); color: var(--text-color); border-radius: 4px; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary-color); }

/* Sağ Profil Kartı */
.profile-side-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 4px; text-align: center; }
.profile-header { background: var(--active-tab-bg); color: #fff; padding: 10px; font-weight: bold; font-size: 14px; text-transform: uppercase; }
.profile-body { padding: 20px; }
.profile-body img { width: 100%; border-radius: 4px; margin-bottom: 15px; }

/* Tema Değiştirici İkon Yönetimi */
[data-theme="dark"] .light-logo { display: none; }
[data-theme="dark"] .dark-logo { display: block; margin: 0 auto; }
[data-theme="light"] .dark-logo, body:not([data-theme="dark"]) .dark-logo { display: none; }
[data-theme="light"] .light-logo, body:not([data-theme="dark"]) .light-logo { display: block; margin: 0 auto; }

@media (max-width: 992px) {
    .left-sidebar { transform: translateX(-100%); }
    .main-wrapper { margin-left: 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}