:root {
    --bg: #f4f6f9;
    --bg-card: #ffffff;
    --text: #1e2430;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --navbar-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --radius: 10px;
}

[data-theme="dark"] {
    --bg: #0f1420;
    --bg-card: #1a2130;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #2a3242;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --navbar-bg: #151b28;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background .2s ease, color .2s ease;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ---------- Navbar ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}
.navbar .logo span { color: var(--text); }
.navbar-right { display: flex; align-items: center; gap: 16px; }
.system-id-badge {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .85rem;
    color: var(--text-muted);
}
.theme-toggle {
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* ---------- Kontrol Paneli Modül Kartları (sidebar yok) ---------- */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.panel-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease;
    color: var(--text);
    display: block;
}
.panel-tile:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--text); }
.panel-tile .icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.panel-tile .label { font-weight: 600; font-size: .95rem; }

/* ---------- Formlar ---------- */
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .alert-success { background: #14301f; color: #86efac; }
[data-theme="dark"] .alert-danger { background: #3a1a1a; color: #fca5a5; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--text-muted); font-weight: 600; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge-yayinda { background: #dcfce7; color: #166534; }
.badge-onay_bekliyor { background: #fef3c7; color: #92400e; }
.badge-revize_istendi { background: #fee2e2; color: #92400e; }
.badge-reddedildi { background: #fee2e2; color: #991b1b; }

/* ---------- Landing Page ---------- */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; }
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 24px;
    max-width: 1100px;
    margin: 0 auto;
}