:root {
    /* Ana Renk Paleti */
    --electric-blue: #2F80FF;
    --neon-cyan: #00E5FF;
    --deep-black: #0A0F1C;
    --soft-white: #F5F7FA;
    --accent-purple: #6C5CE7;
    
    /* Fontlar */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-modern: 'Sora', sans-serif;

    /* Dinamik Renk */
    --dynamic-accent: var(--neon-cyan);
}

/* Temel Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    transition: background 0.4s ease, color 0.4s ease;
}

/* --- 1. EKRAN KARARTMA (En Üstte) --- */
#screen-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    /* Alt barın ve tüm panellerin üzerinde olmalı */
    z-index: 9999 !important; 
    display: none;
    cursor: pointer;
}

/* --- TEMA MODLARI --- */
body.dark-theme { background-color: var(--deep-black); color: var(--soft-white); }
body.light-theme { background-color: var(--soft-white); color: var(--deep-black); --dynamic-accent: var(--electric-blue); }

/* --- ANA YAPI --- */
#app { display: flex; flex-direction: column; height: 100vh; position: relative; }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.brand {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: 4px;
    color: var(--dynamic-accent);
    text-shadow: 0 0 20px var(--dynamic-accent);
}

.tagline { font-family: var(--font-modern); font-weight: 500; margin-top: 10px; opacity: 0.8; }
.ai-highlight { color: var(--accent-purple); }

/* --- APP GRID (LAUNCHER) --- */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin-top: 50px;
    padding: 0 20px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    color: var(--soft-white) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.app-item:hover {
    background: rgba(47, 128, 255, 0.15) !important;
    border-color: var(--electric-blue) !important;
    transform: translateY(-8px);
}

.app-icon { font-size: 2.5rem; margin-bottom: 8px; }
.app-name { font-family: var(--font-modern); font-size: 0.9rem; font-weight: 500; }

/* --- 2. ALT MENÜ BAR (İkinci Sırada) --- */
.bottom-bar {
    width: 100%;
    height: 65px;
    background: rgba(13, 17, 28, 0.95); /* Arka planı biraz daha opak yaptık */
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    /* Panellerin (Kameralar/Ayarlar) üzerinde, Dimmer'ın altında olmalı */
    z-index: 5000 !important; 
}

.controls-left { display: flex; gap: 10px; justify-content: flex-start; }
.controls-center { display: flex; justify-content: center; align-items: center; }
.status-right { display: flex; align-items: center; gap: 15px; justify-content: flex-end; }
.media-controls { display: flex; gap: 10px; }

/* --- BUTONLAR (GENEL) --- */
button {
    width: 45px; height: 45px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

button:hover:not(.st-nav-item):not(.app-item) {
    background: rgba(47, 128, 255, 0.1);
    border-color: var(--electric-blue);
    color: var(--soft-white);
}

/* Menu Icon Grid */
.menu-icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 18px; }
.menu-icon-grid span { width: 7px; height: 7px; background-color: currentColor; border-radius: 2px; }

/* --- SAAT VE BAĞLANTI --- */
#digital-clock { font-family: var(--font-heading); font-size: 1.3rem; color: var(--soft-white); min-width: 60px; text-align: right; }

.connectivity-cluster { display: grid; grid-template-columns: repeat(2, auto); gap: 4px; opacity: 0.7; }
.connectivity-cluster .icon { font-size: 14px; }
.top-left { color: #00D1FF; } .top-right { color: #2F80FF; } .bottom-left { color: #2ECC71; } .bottom-right { color: #F39C12; }

/* --- AYARLAR MODÜLÜ (ST PREFİX) --- */
.st-overlay {
    position: fixed;
    bottom: 65px;
    left: 0;
    width: 100%;
    height: calc(100% - 65px);
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.st-overlay.st-active-panel { display: block; transform: translateY(0); }
.st-container { display: flex; width: 100%; height: 100%; }

.st-sidebar { width: 30%; background: rgba(255, 255, 255, 0.02); border-right: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 20px; }
.st-sidebar-title { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 30px; color: var(--dynamic-accent); }
.st-sidebar-nav { display: flex; flex-direction: column; gap: 8px; }

button.st-nav-item {
    width: 100%; height: 55px; justify-content: flex-start; gap: 15px; padding-left: 20px;
    background: transparent; border: 1px solid transparent; border-radius: 12px;
    color: rgba(245, 247, 250, 0.7); font-size: 0.95rem;
}

button.st-nav-item.st-active {
    background: rgba(47, 128, 255, 0.15); border-color: rgba(47, 128, 255, 0.3);
    color: var(--electric-blue); font-weight: 600;
}

.st-content {
    flex: 1;
    height: 100%; /* Panel yüksekliğini sabitle */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma çubuğu çıkar */

    padding: 20px 20px 20px 20px; /* Kaydırma çubuğu içeriğe yapışmasın */
    

    scrollbar-width: thin; /* Firefox için ince çubuk */
    scrollbar-color: var(--electric-blue) transparent; /* Çubuk rengi */
}
.st-content-header { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 15px; }

/* MUTE Çizgisi */
.mute-line { position: absolute; width: 2px; height: 0%; background-color: #FF4B2B; transform: rotate(45deg); transition: height 0.3s ease; }
button.active-mute .mute-line { height: 70%; }


/* --- AÇIK TEMA (LIGHT THEME) GÜNCELLEMESİ --- */

/* 1. Genel Panel Arka Planı */
body.light-theme .st-overlay {
    background: rgba(245, 247, 250, 0.98) !important; /* Açık gri/beyaz zemin */
    backdrop-filter: blur(25px);
}

/* 2. Sol Menü (Sidebar) Alanı */
body.light-theme .st-sidebar {
    background: rgba(0, 0, 0, 0.03) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 3. Sidebar Başlığı */
body.light-theme .st-sidebar-title {
    color: var(--deep-black) !important;
}

/* 4. Sidebar Butonları (Normal Durum) */
body.light-theme button.st-nav-item {
    color: rgba(10, 15, 28, 0.7) !important;
}

/* 5. Sidebar Butonları (Aktif/Seçili Durum) */
body.light-theme button.st-nav-item.st-active {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: var(--electric-blue) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 6. Sağ İçerik Alanı Metinleri */
body.light-theme .st-content-header h3,
body.light-theme .st-content-body p {
    color: var(--deep-black) !important;
}

body.light-theme .st-content-header {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* Ayar Grupları */
.st-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.st-label { font-family: var(--font-modern); font-weight: 600; font-size: 1.1rem; color: var(--soft-white); }
.st-desc { font-size: 0.85rem; opacity: 0.6; margin-top: 4px; }
.st-divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.05); margin: 10px 0; }

/* Switch (Açma/Kapama) Butonu */
.st-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.st-switch input { opacity: 0; width: 0; height: 0; }
.st-slider-toggle {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1); transition: .4s; border-radius: 34px;
}
.st-slider-toggle:before {
    position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .st-slider-toggle { background-color: var(--electric-blue); }
input:checked + .st-slider-toggle:before { transform: translateX(24px); }

/* Kaydırıcı (Range Slider) */
.st-range-slider {
    -webkit-appearance: none; width: 150px; height: 6px;
    background: rgba(255, 255, 255, 0.1); border-radius: 5px; outline: none;
}
.st-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px;
    background: var(--electric-blue); border-radius: 50%; cursor: pointer;
    box-shadow: 0 0 10px rgba(47, 128, 255, 0.5);
}

/* Açık Tema Uyumu */
body.light-theme .st-label { color: var(--deep-black); }
body.light-theme .st-slider-toggle { background-color: rgba(0, 0, 0, 0.1); }

/* Yazı Tipi Kontrolü Özel Alanı */
.st-font-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.st-font-label {
    font-weight: 800;
    opacity: 0.5;
    color: var(--soft-white);
}

.st-font-label.small { font-size: 0.8rem; }
.st-font-label.large { font-size: 1.5rem; }

/* Renk Seçici Slider (Gökkuşağı Efekti) */
.color-hue-slider {
    background: linear-gradient(to right, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff00ff, #ff0000) !important;
    height: 10px !important;
}

.color-hue-slider::-webkit-slider-thumb {
    border: 2px solid white !important;
    background: transparent !important;
}

/* Kademeli Font Slider (Küçük-Orta-Büyük için) */
.font-slider {
    width: 120px !important;
}

/* Açık Tema Uyumu */
body.light-theme .st-font-label {
    color: var(--deep-black);
}

/* Bağlantı Alt Butonları */
.st-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--soft-white);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.st-action-btn:hover {
    background: var(--electric-blue);
    color: white;
    border-color: var(--electric-blue);
}

.st-action-btn:hover {
    background: var(--electric-blue);
    color: white;
    border-color: var(--electric-blue);
}

/* Açık Tema Uyumu */
body.light-theme .st-action-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--deep-black);
}

/* Durum Çubukları Kapları */
.status-bar-item {
    flex-direction: column;
    align-items: flex-start !important;
}

.st-status-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--electric-blue);
    float: right;
}

.st-progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.st-progress-bar {
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* Renk Geçişleri: Yeşil -> Sarı -> Kırmızı */
.temp-gradient, .ram-gradient {
    background: linear-gradient(to right, #2ecc71, #f1c40f, #e74c3c);
    background-size: 500px 100%; /* Çubuğun renginin sabit kalması için */
}

/* Sistem Butonları */
.st-system-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.refresh-btn:hover { background: #3498db !important; }
.reset-btn { color: #e74c3c !important; border-color: rgba(231, 76, 60, 0.3) !important; }
.reset-btn:hover { background: #e74c3c !important; color: white !important; }

/* Alt Buton Grubu Konteynırı */
.st-sub-action-group {
    display: flex;
    gap: 12px;
    margin: 5px 0 15px 0;
    padding: 0 5px;
}

/* Modern Alt Buton Tasarımı */
.st-sub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    flex: 1; /* Butonların eşit genişlikte olması için */
    transition: all 0.2s ease;
}

.st-sub-btn:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: #00d2ff;
}

.sub-icon { font-size: 1.1rem; }
.sub-text { font-size: 0.85rem; white-space: nowrap; font-family: 'Sora', sans-serif; }

/* Ekran görüntüsündeki boşluk hatasını gidermek için */
.no-border { border-bottom: none !important; padding-bottom: 5px !important; }

/* Donanım Kartları */
.hw-monitor-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hw-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hw-value {
    font-family: 'Orbitron', sans-serif;
    color: var(--electric-blue);
    font-size: 0.95rem;
}

/* İlerleme Çubukları */
.hw-progress-bg {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.hw-progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Sistem Buton Grubu */
.st-system-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.st-sys-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sys-icon { font-size: 1.4rem; }
.sys-text { text-align: left; display: flex; flex-direction: column; }
.sys-text strong { font-size: 0.9rem; }
.sys-text span { font-size: 0.7rem; opacity: 0.6; }

/* Buton Hover Efektleri */
.st-sys-btn.refresh:hover { background: rgba(52, 152, 219, 0.2); border-color: #3498db; }
.st-sys-btn.reset:hover { background: rgba(231, 76, 60, 0.2); border-color: #e74c3c; }

/* Ağ Listesi Kutusu */
.network-list-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 10px 0 20px 0;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.network-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.network-item:hover { background: rgba(0, 210, 255, 0.1); }
.network-item.connected { color: #00d2ff; font-weight: bold; }
.signal-strength { opacity: 0.7; }

/* Hotspot Kartı */
.hotspot-config-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
}

.config-row {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.config-row label { font-size: 0.8rem; opacity: 0.7; color: var(--soft-white); }

.config-row input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-family: 'Sora', sans-serif;
}

.password-wrapper { position: relative; display: flex; }
.password-wrapper input { flex: 1; }
.view-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

.save-btn {
    margin-top: 10px;
    background: var(--electric-blue) !important;
    width: 100%;
}

.wifi-networks-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.wifi-network-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
}

.wifi-network-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.st-connect-btn {
    background: #3498db;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 12px;
}

/* --- BAĞIMSIZ KAMERA MODÜLÜ --- */
#cam-module-overlay {
    display: none;
    background-color: var(--deep-black);
    z-index: 5000; /* Ayarlar panelinin de üstünde olması için */
}

/* Kamera paneline özel ekleme (Padding) */
/* Kamera içeriği alt barın arkasında kalmaması için 65px yukarı itiyoruz */
.cam-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #000;
    /* Alt bar yüksekliği kadar padding ekliyoruz */
    padding-bottom: 0px; 
}

.cam-header { 
    height: 60px; 
    background: #0D111C; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
    /* Düzeltilen satır: */
    border-bottom: 1px solid #252933;  
}

/* rec-dot ve animasyonlarını silebilirsin, sağ taraf boş kalacak */
.cam-header-right {
    min-width: 45px; /* Yapıyı korumak için boş bir alan bırakır */
}

.cam-header-left {
    display: flex;
    align-items: center;
    gap: 10px; /* Elemanlar arası boşluk */
    justify-content: flex-start; /* Sola yasla */
}

.cam-module-title { 
    font-family: var(--font-heading); 
    color: var(--neon-cyan); 
    font-weight: bold; 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
}

.cam-nav-group { display: flex; background: rgba(255,255,255,0.05); padding: 4px; border-radius: 8px; }

.cam-nav-btn { 
    width: auto !important; height: 32px !important; 
    padding: 0 15px !important; font-size: 0.75rem !important; 
    border: none !important; background: transparent !important; 
    color: rgba(255,255,255,0.4) !important; cursor: pointer;
    border-radius: 0px;
}

.cam-nav-btn.active { background: var(--electric-blue) !important; color: #fff !important; border-radius: 6px; }

.cam-view-area { flex: 1; position: relative; }

.cam-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1fr 1fr; 
    height: 100%; 
    gap: 2px; 
    background: #151921; 
}

.cam-slot { 
    background: #000; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.cam-label { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: rgba(0,0,0,0.6); 
    color: var(--neon-cyan); 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.65rem; 
}

.no-signal { 
    color: #1a1f2b; 
    font-family: var(--font-heading); 
    letter-spacing: 2px; 
    font-size: 0.75rem; 
}

/* Arşiv Kartları */
.archive-container { height: 100%; overflow-y: auto; padding: 25px; background: #0A0F1C; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.archive-card { aspect-ratio: 16/9; background: #151921; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }

/* REC Animasyonu */
@keyframes cam-pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Büyültme/Küçültme Butonu Güncel Hali */
.expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    /* Boyutlar %25 küçültüldü (Önceki 40px civarındaydı, şimdi 30px) */
    width: 30px !important;
    height: 30px !important;
    /* %50 Saydamlık eklendi */
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important; /* İkon boyutu da küçüldü */
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; /* Hover efekti için geçiş */
}

/* Büyültme/Küçültme Butonu Üzerine Gelince (Hover) */
.expand-btn:hover {
    /* Saydamlık %100 (belirginlik için), ancak arka plan rengini %50 saydam yapıyoruz */
    opacity: 1; 
    /* rgba kullanarak mavi rengin (0, 229, 255) dolgusunu %50 saydamlaştırdık */
    background: rgba(0, 229, 255, 0.5) !important; 
    color: #fff !important;
    border-color: var(--neon-cyan) !important;
}

/* Büyültme/Küçültme Butonu Üzerine Gelince (Hover) */
.expand-btn:hover {
    /* Butonun genel saydamlığı (çerçeve ve ikon) tam görünsün */
    opacity: 1; 
    
    /* Arka plan mavi dolgusunu %25'e düşürdük (0.25) */
    background: rgba(0, 229, 255, 0.25) !important; 
    
    /* İkon rengi beyaz kalsın veya neon mavi ile uyumlu devam etsin */
    color: #fff !important;
    border-color: var(--neon-cyan) !important;
}

/* Büyütülmüş Slot */
.cam-slot.expanded {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 100 !important; /* Diğer slotların üstünde */
    background: #000;
}

/* Modül genel yapısı: Header ve Footer arası */
.cam-view-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Kamera Zaman Damgası (SOL ALT KÖŞE) */
.cam-timestamp {
    position: absolute;
    bottom: 10px;  /* Alt kenardan mesafe */
    left: 10px;    /* SOL kenardan mesafe */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: rgba(0, 229, 255, 0.7); /* UtkuOS Neon Mavisi */
    background: rgba(0, 0, 0, 0.4); 
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
    letter-spacing: 1px;
}




/* Header Hizalama */
.cam-header-left { display: flex; align-items: center; gap: 25px; }
.header-controls-wrapper { display: flex; align-items: center; gap: 12px; }

/* Mod Seçici (Canlı/Arşiv) */
.mode-selector-group {
    display: flex; align-items: center; background: #121417;
    border: 1px solid #252933; height: 36px; padding: 0 5px;
    border-radius: 6px;
}
.mode-btn {
    background: transparent; border: none; color: #555;
    font-family: 'Inter', sans-serif; font-size: 12px;
    font-weight: 700; padding: 0 15px; height: 100%; cursor: pointer;
}
.mode-btn.active { color: #fff; }
.mode-divider { color: #25282c; }

/* Yan yana düzgün dizilim */
.archive-only-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

/* Gönder butonu vurgusu */
.send-btn {
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
}

.action-btn {
    background: #121417; border: 1px solid #252933; color: #fff;
    height: 36px; padding: 0 12px; font-family: 'Inter', sans-serif;
    font-size: 13px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; gap: 10px; min-width: 100px;
    border-radius: 6px;
    width: 120px !important;
}




/* Takvim Kutusu Konteynırı */
.date-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #121417;
    border: 1px solid #252933;
    padding: 5px 10px;
    height: 38px;
    width: 140px !important;
    cursor: pointer;
    font-size: 10px !important;
    border-radius: 6px;
}

/* Takvim Giriş Alanı - Kesin Çözüm */
.date-box input[type="date"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Tamamen görünmez yapıyoruz */
    cursor: pointer;
    z-index: 2; /* En üstte ama görünmez, tıklamayı o alır */
}

/* Bizim görünen tarihimiz ve ikonumuz */
.date-display-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: none; /* Tıklamayı arka plana (input'a) geçirir */
}

.date-text {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}

.calendar-emoji {
    font-size: 14px;
    margin-left: 8px;
}

/* Tarayıcı ikonlarını her ihtimale karşı yine de gizleyelim */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}






/* Onay Butonu (Ok) */
.confirm-btn {
    background: #2F80FF;
    border: 1px solid #252933;
    color: white;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    border-radius: 6px; 
}


/* Dropdown Tasarımı */
.dropdown-wrapper { position: relative; }

/* Menülerin açılmasını sağlar */
.action-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}


.action-dropdown button:hover { background: #1a1d21; color: #fff; }
.dropdown-label { padding: 8px 15px; font-size: 10px; color: #444; text-transform: uppercase; }
.btn-arrow { font-size: 9px; color: #666; }

/* Onay Butonu Stili */
.confirm-btn {
    background: #2F80FF; /* İşlem vurgusu için mavi */
    border: 1px solid #333;
    color: white;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.confirm-btn:hover {
    background: #00E5FF; /* Neon Cyan vurgusu */
    transform: scale(1.05);
}

/* Dropdown içindeki butonlar */






.action-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 1000;

    display: none; position: absolute; top: 40px; left: 0;
    background: #121417; border: 1px solid #252933; min-width: 190px; z-index: 1000;
    border-radius: 6px;

    /* GENİŞLİĞİ YAZIYA GÖRE DARALTAN KRİTİK AYARLAR */
    width: max-content;  /* İçindeki en uzun öğe kadar genişle demek */
    min-width: 0;        /* Varsayılan tüm genişlik zorlamalarını sıfırlar */
    width: 120px !important;    
    background: #121417;
    border: 1px solid #2529335);
    border-radius: 6px !important;
    overflow: hidden;
}






.action-dropdown button {
    width: 100%;        /* Kutunun içini tam kaplasın */
    display: block;
    
    /* Yazının alt satıra geçmesini engeller, böylece kutu yazı boyunca açılır */
    white-space: nowrap; 
    
    /* Yazının sağından ve solundan ne kadar boşluk kalacağını sen belirle */
    /* (Örn: 15px sağ-sol boşluğu yazıya nefes aldırır ama kutuyu çok da büyütmez) */
    padding: 10px 15px !important; 
    
    text-align: left !important;
    background: transparent;
    border: none !important;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    border-radius: 0px !important;
}


.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 4px 0;
    border: 1px solid #252933;

}


/* 2. SADECE İÇTEKİ ARKAPLANLAR VE BUTONLAR (0px - Keskin Köşe) */
.cam-nav-btn,
.cam-nav-btn.active {
    border-radius: 0px !important;
}



/* Header ve Hizalama */
.cam-header-left { display: flex !important; align-items: center !important; gap: 15px !important; }
.header-controls-wrapper { display: flex !important; align-items: center !important; gap: 10px; }
.archive-only-controls { display: flex; align-items: center; gap: 10px; }

/* Kamera Paneli ve Switchler */
.cam-menu-panel { min-width: 160px !important; padding: 10px !important; background: #121417 !important; }
.cam-control-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cam-control-row:last-child { border-bottom: none; }

.utku-switch { position: relative; display: inline-block; width: 32px; height: 18px; }
.utku-switch input { opacity: 0; width: 0; height: 0; }
.utku-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #252933; transition: .3s; border-radius: 20px; }
.utku-slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .utku-slider { background-color: var(--neon-cyan); }
input:checked + .utku-slider:before { transform: translateX(14px); }


