:root {
    --bg-dark: #050505;
    --sidebar-bg: #0a0a0a;
    --card-bg: #111111;
    --border: #333333;
    --primary: #d4d4d4;
    --accent: #ff3e3e; 
    --accent-glow: rgba(255, 62, 62, 0.2);
    --text-main: #eeeeee;
    --text-dim: #888888;
    --font-head: 'Rajdhani', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-head);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* SIDEBAR (DEFAULT DESKTOP) */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 25px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-name { font-size: 2rem; color: var(--text-main); letter-spacing: 2px; }
.pulse { color: var(--accent); animation: blink 1s infinite; }
.brand-sub { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 40px; }

.nav-category {
    font-size: 0.7rem;
    color: var(--accent);
    margin: 20px 0 10px 0;
    font-family: var(--font-code);
    opacity: 0.8;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    width: 100%;
    text-align: left;
    padding: 12px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
    font-family: var(--font-head);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-btn.active { background: var(--accent-glow); color: var(--accent); border-left: 3px solid var(--accent); }

.sidebar-footer { margin-top: auto; font-family: var(--font-code); font-size: 0.75rem; color: var(--text-dim); }
.dot.online { display: inline-block; width: 8px; height: 8px; background: #0f0; border-radius: 50%; box-shadow: 0 0 5px #0f0; }

/* MAIN CONTENT */
.main-content { flex: 1; padding: 30px; overflow-y: auto; background: radial-gradient(circle at top right, #1a0b0b 0%, transparent 40%); position: relative; }

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.user-profile { display: flex; align-items: center; gap: 10px; font-family: var(--font-code); font-size: 0.9rem; }
.avatar { width: 35px; height: 35px; background: var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* COMPONENTS */
.content-section { display: none; animation: slideUp 0.3s ease; }
.content-section.active { display: block; }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.card.wide { width: 100%; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.card h3 { font-size: 1.2rem; font-weight: 500; margin: 0; }

.badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; background: #222; color: #aaa; }
.badge.red { background: var(--accent); color: #000; font-weight: bold; }

.desc { color: var(--text-dim); margin-bottom: 15px; font-size: 0.95rem; }
.code-block, .cmd { background: #000; font-family: var(--font-code); color: #0f0; }
.code-block { padding: 15px; border-radius: 4px; font-size: 0.85rem; margin-bottom: 15px; }
.cmd { padding: 2px 6px; color: var(--accent); }

.search-box { display: flex; gap: 10px; }
input, select { background: #000; border: 1px solid var(--border); color: #fff; padding: 10px; flex: 1; border-radius: 4px; font-family: var(--font-code); font-size: 1rem; }
input:focus, select:focus { border-color: var(--accent); }

.action-btn { background: var(--text-main); color: #000; border: none; padding: 10px 20px; cursor: pointer; font-weight: bold; border-radius: 4px; font-family: var(--font-head); white-space: nowrap; }
.action-btn.danger { background: var(--accent); color: #fff; width: 100%; }
.action-btn:active { transform: scale(0.98); }

.terminal-output { background: #000; color: #0f0; padding: 15px; font-family: var(--font-code); height: auto; min-height: 150px; max-height: 400px; overflow-y: auto; border: 1px solid var(--border); font-size: 0.8rem; word-break: break-all; }

.warning-box { background: rgba(255, 62, 62, 0.1); border: 1px solid var(--accent); color: var(--accent); padding: 15px; margin-bottom: 20px; font-size: 0.9rem; display: flex; gap: 10px; align-items: center; }

/* --- MOBİL ÖZEL STİLLER (RESPONSIVE) --- */
#menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.mobile-close-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dim); }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); z-index: 999; }

@media (max-width: 768px) {
    /* Layout */
    body { overflow-x: hidden; }
    .main-content { padding: 15px; width: 100%; }
    
    /* Sidebar (Gizle ve Kaydır) */
    .sidebar { position: fixed; top: 0; left: 0; height: 100%; width: 280px; transform: translateX(-100%); box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    
    /* Header */
    #menu-toggle { display: block; }
    .mobile-close-btn { display: block; }
    .hide-mobile { display: none; }
    
    /* Grid ve Inputlar */
    .grid-layout { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; } /* Input ve buton alt alta */
    .mobile-full { width: 100% !important; border-radius: 4px !important; margin-left: 0 !important; margin-top: 5px; }
    
    /* Fontlar */
    .brand-name { font-size: 1.5rem; }
    .card h3 { font-size: 1.1rem; }
    
    /* Dokunmatik Hedefler */
    .nav-btn { padding: 15px; font-size: 1.2rem; } /* Daha büyük basma alanı */
    .action-btn { padding: 12px; font-size: 1rem; }
    input { padding: 12px; font-size: 1rem; }
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* --- PC'DE ÇARPI BUTONUNU GİZLEME YAMASI --- */
.mobile-close-btn {
    display: none !important; /* Masaüstünde kesinlikle gizle */
}

/* Sadece telefonda (ekran küçüldüğünde) göster */
@media (max-width: 768px) {
    .mobile-close-btn {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: #888;
    }
}