/* ===========================================================
   Slender Otomasyon — Modern Admin Tasarımı
   Font: Poppins / Inter  |  Tema: Açık, sade, ferah
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg:            #f4f6fb;
    --surface:       #ffffff;
    --surface-2:     #fafbff;
    --border:        #e7eaf3;
    --text:          #1b2233;
    --text-soft:     #6b7493;
    --text-muted:    #9aa1bb;

    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --primary-light: #eef0ff;
    --accent:        #8b5cf6;

    --success:       #10b981;
    --success-bg:    #e7f9f1;
    --danger:        #ef4444;
    --danger-bg:     #fdecec;
    --warning:       #f59e0b;
    --warning-bg:    #fef5e7;
    --info:          #3b82f6;
    --info-bg:       #e8f1ff;

    --radius:        14px;
    --radius-sm:     10px;
    --shadow:        0 4px 24px rgba(30, 41, 99, 0.06);
    --shadow-lg:     0 12px 40px rgba(30, 41, 99, 0.12);
    --sidebar-w:     264px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Login ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1200px 600px at 10% 0%, #eef0ff 0%, transparent 50%),
        radial-gradient(1000px 500px at 100% 100%, #f3e8ff 0%, transparent 50%),
        var(--bg);
    padding: 20px;
}
.login-card {
    background: var(--surface);
    width: 100%;
    max-width: 410px;
    border-radius: 20px;
    padding: 44px 38px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.login-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 6px;
}
.login-logo .mark {
    width: 46px; height: 46px; border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 20px;
    box-shadow: 0 6px 18px rgba(99,102,241,.35);
}
.login-logo h1 { font-size: 20px; font-weight: 600; }
.login-sub { color: var(--text-soft); margin-bottom: 30px; font-size: 13.5px; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column;
    padding: 22px 16px;
    z-index: 50;
}
.sidebar .brand {
    display: flex; align-items: center; gap: 11px;
    padding: 6px 8px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.sidebar .brand .mark {
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center; color: #fff;
    font-weight: 700; font-size: 17px;
    box-shadow: 0 5px 14px rgba(99,102,241,.3);
}
.sidebar .brand b { font-weight: 600; font-size: 15.5px; }
.sidebar .brand small { display: block; color: var(--text-muted); font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted); padding: 14px 12px 6px; font-weight: 600; }
.nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-weight: 500; font-size: 14px;
    transition: all .18s ease;
}
.nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active {
    background: var(--primary-light); color: var(--primary-dark); font-weight: 600;
}
.nav a.active svg { color: var(--primary); }

.sidebar-foot {
    border-top: 1px solid var(--border); padding-top: 14px; margin-top: 10px;
    display: flex; align-items: center; gap: 11px;
}
.sidebar-foot .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary-dark);
    display: grid; place-items: center; font-weight: 600;
}
.sidebar-foot .info { flex: 1; }
.sidebar-foot .info b { font-size: 13px; font-weight: 600; }
.sidebar-foot .info span { display: block; font-size: 11px; color: var(--text-muted); }
.sidebar-foot a.logout { color: var(--text-muted); }
.sidebar-foot a.logout:hover { color: var(--danger); }

.main {
    flex: 1; margin-left: var(--sidebar-w);
    padding: 28px 36px 60px;
    max-width: 100%;
}

/* ---------- Topbar ---------- */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 26px;
}
.topbar h2 { font-size: 22px; font-weight: 600; }
.topbar p { color: var(--text-soft); font-size: 13.5px; margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-family: inherit; font-weight: 600; font-size: 13.5px;
    border: none; cursor: pointer; transition: all .18s ease;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border);
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none;
    box-shadow: 0 5px 16px rgba(99,102,241,.32);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(99,102,241,.42); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card-head {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.card-head h3 { font-size: 16px; font-weight: 600; }
.card-head p { font-size: 12.5px; color: var(--text-soft); }

/* ---------- Stat cards ---------- */
.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat .ico {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 14px;
}
.stat .ico svg { width: 22px; height: 22px; }
.stat .num { font-size: 28px; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--text-soft); font-size: 13px; margin-top: 6px; }
.ico-indigo { background: var(--primary-light); color: var(--primary); }
.ico-green  { background: var(--success-bg); color: var(--success); }
.ico-orange { background: var(--warning-bg); color: var(--warning); }
.ico-blue   { background: var(--info-bg); color: var(--info); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 7px; color: var(--text);
}
.form-group .hint { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.input, .select, textarea.input {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; color: var(--text);
    background: var(--surface-2); transition: all .18s ease;
}
.input:focus, .select:focus, textarea.input:focus {
    outline: none; border-color: var(--primary);
    background: #fff; box-shadow: 0 0 0 4px var(--primary-light);
}
textarea.input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left; font-size: 11.5px; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-muted); font-weight: 600;
    padding: 13px 20px; border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
tbody td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 30px;
    font-size: 11.5px; font-weight: 600;
}
.badge::before { content:''; width:6px; height:6px; border-radius:50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-muted   { background: #eef0f5; color: var(--text-muted); }

/* ---------- Alerts / Flash ---------- */
.alert {
    padding: 13px 16px; border-radius: var(--radius-sm);
    font-size: 13.5px; margin-bottom: 16px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: #0a7152; border-color: #c5ecdc; }
.alert-danger  { background: var(--danger-bg); color: #b42318; border-color: #f6c8c4; }
.alert-warning { background: var(--warning-bg); color: #9a6700; border-color: #f5e0b6; }
.alert-info    { background: var(--info-bg); color: #1d4ed8; border-color: #cfe0fb; }

/* ---------- Misc ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-sm { font-size: 12.5px; }
.mono { font-family: 'SF Mono','Roboto Mono',monospace; font-size: 12.5px; }
.empty {
    text-align: center; padding: 50px 20px; color: var(--text-muted);
}
.empty svg { width: 48px; height: 48px; opacity: .4; margin-bottom: 12px; }

.copy-chip {
    display:inline-flex; align-items:center; gap:6px;
    background: var(--surface-2); border:1px solid var(--border);
    padding: 3px 9px; border-radius: 7px; font-size: 12px; cursor: pointer;
    font-family: 'SF Mono', monospace;
}
.copy-chip:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Steps (site oluştur) ---------- */
.result-log {
    background: #0f1729; color: #cdd6f4; border-radius: var(--radius-sm);
    padding: 18px 20px; font-family: 'SF Mono', monospace; font-size: 12.5px;
    line-height: 1.9; max-height: 380px; overflow-y: auto;
}
.result-log .ok  { color: #a6e3a1; }
.result-log .err { color: #f38ba8; }
.result-log .step{ color: #89b4fa; }
.result-log .dim { color: #6c7086; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); transition: .25s; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; padding: 20px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .mobile-toggle { display: inline-flex !important; }
}
.mobile-toggle { display: none; }
