﻿/* dino.tiklagelsin yonetim paneli */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #22262b;
    background: #f2f4f7;
}

a { color: #0b6bcb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- ust bar ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #e5133c;
    color: #fff;
    padding: 0 20px;
    height: 52px;
}
.topbar .brand { font-weight: 700; font-size: 16px; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar nav a {
    color: #fff; padding: 6px 12px; border-radius: 4px; opacity: .85; white-space: nowrap;
}
.topbar nav a:hover { background: rgba(255,255,255,.15); opacity: 1; text-decoration: none; }
.topbar nav a.active { background: rgba(0,0,0,.2); opacity: 1; }
.topbar .user { display: flex; align-items: center; gap: 10px; font-size: 13px; }

.content { padding: 20px; max-width: 1500px; margin: 0 auto; }

/* ---------- kartlar ---------- */
.card {
    background: #fff; border: 1px solid #dfe3e8; border-radius: 6px;
    padding: 18px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 15px; color: #444; }

.card-narrow { max-width: 400px; margin: 60px auto; }

.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat {
    background: #fff; border: 1px solid #dfe3e8; border-radius: 6px;
    padding: 14px 18px; min-width: 165px; flex: 1;
}
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat .l { color: #6b7280; font-size: 12px; margin-top: 4px; }
.stat.bad .n { color: #c62828; }
.stat.warn .n { color: #ef6c00; }
.stat.ok .n { color: #2e7d32; }

/* ---------- tablolar ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eceff1; vertical-align: top; }
th { background: #f7f8fa; font-size: 12px; text-transform: uppercase; color: #6b7280; letter-spacing: .03em; }
tr:hover td { background: #fafbfc; }
td.num, th.num { text-align: right; }
.muted { color: #9099a3; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; }

/* ---------- rozetler ---------- */
.badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 12px; white-space: nowrap;
}
.s-none   { background: #eceff1; color: #607d8b; }
.s-prep   { background: #fff3e0; color: #e65100; }
.s-way    { background: #e3f2fd; color: #1565c0; }
.s-done   { background: #e8f5e9; color: #2e7d32; }
.s-cancel { background: #ffebee; color: #c62828; }

/* ---------- mesajlar ---------- */
.alert { padding: 10px 14px; border-radius: 5px; margin-bottom: 12px; }
.alert-error { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }
.alert-warn  { background: #fff8e1; color: #7c4a03; border: 1px solid #ffe0a3; }
.alert-info  { background: #e3f2fd; color: #0d47a1; border: 1px solid #bbdefb; }
.alert-ok    { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- form ---------- */
label { display: block; margin: 12px 0 4px; font-size: 13px; color: #444; }
input[type=text], input[type=password], input[type=date], select {
    width: 100%; padding: 8px 10px; border: 1px solid #cfd6dd; border-radius: 4px;
    font-size: 14px; font-family: inherit; background: #fff;
}
input:focus, select:focus { outline: none; border-color: #0b6bcb; }

.btn {
    display: inline-block; padding: 8px 16px; border: 0; border-radius: 4px;
    background: #0b6bcb; color: #fff; font-size: 14px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #0a5ba8; text-decoration: none; color: #fff; }
.btn-plain { background: #6b7280; }
.btn-plain:hover { background: #565d68; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters > div { flex: 1; min-width: 130px; }
.filters label { margin-top: 0; }

/* ---------- ham JSON ---------- */
pre.json {
    background: #1e2227; color: #d8dee9; padding: 14px; border-radius: 5px;
    overflow-x: auto; font-family: Consolas, "Courier New", monospace;
    font-size: 12px; line-height: 1.5; margin: 0;
}
details > summary { cursor: pointer; color: #0b6bcb; padding: 4px 0; }

/* ---------- zaman cizelgesi ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    border-left: 3px solid #dfe3e8; padding: 0 0 18px 18px; margin-left: 8px; position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:before {
    content: ""; position: absolute; left: -7px; top: 4px;
    width: 11px; height: 11px; border-radius: 50%; background: #0b6bcb; border: 2px solid #fff;
}
.timeline .when { color: #6b7280; font-size: 12px; }

.empty { color: #9099a3; padding: 20px; text-align: center; }
