@charset "UTF-8";
/* ==========================================================================
   Yönetim paneli — stil dosyası
   Tasarım & yazılım: webtr.com.tr
   ========================================================================== */

:root {
	--kirmizi: #ba0c2f;
	--yesil: #1c1c1c;
	--koyu: #232a31;
	--koyu-2: #1b2127;
	--cizgi: #e3e7ea;
	--metin: #3b444c;
	--gri: #7b8792;
	--zemin: #f2f4f6;
}

* { box-sizing: border-box; }
body {
	margin: 0; background: var(--zemin); color: var(--metin);
	font: 14px/1.6 "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: #2a6fa8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 14px; color: #1f262c; line-height: 1.35; }
img { max-width: 100%; height: auto; }

/* --- giriş ekranı ------------------------------------------------------- */
.login-wrap {
	min-height: 100vh; display: grid; place-items: center; padding: 30px 16px;
	background: #232a31;
	background-image: radial-gradient(circle at 20% 20%, #2f3944 0%, #1b2127 60%);
}
.login-card {
	width: 100%; max-width: 380px; background: #fff; border-radius: 6px;
	padding: 34px 32px 28px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.login-card .brand { text-align: center; margin-bottom: 24px; }
.login-card .brand b { color: var(--kirmizi); }
.login-card .brand small { display: block; color: var(--gri); font-size: 12px; margin-top: 4px; }
.login-card label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #4a555f; }
.login-card input[type="text"],
.login-card input[type="password"] {
	width: 100%; padding: 11px 13px; border: 1px solid #d6dbe0; border-radius: 4px;
	margin-bottom: 16px; background: #fafbfc; font-size: 14px;
}
.login-card input:focus { outline: 0; border-color: var(--kirmizi); background: #fff; }
.login-card .btn { width: 100%; justify-content: center; }
.login-foot { text-align: center; font-size: 11.5px; color: #9aa5ae; margin: 18px 0 0; }
.login-foot a { color: #9aa5ae; }
.login-note {
	background: #fbf3f2; border: 1px solid #f0d6d2; color: #8f3a2b;
	font-size: 12px; padding: 10px 12px; border-radius: 4px; margin-bottom: 16px;
}

/* --- yerleşim ----------------------------------------------------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
	width: 236px; flex: 0 0 236px; background: var(--koyu); color: #aeb8c2;
	display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo {
	padding: 18px 20px; border-bottom: 1px solid #2f3841;
	font-size: 16px; color: #fff; font-weight: 700; letter-spacing: -.2px;
}
.sidebar .logo span { color: var(--kirmizi); }
.sidebar .logo small { display: block; font-size: 11px; color: #7d8894; font-weight: 400; letter-spacing: 0; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 0 24px; }
.sidebar .grup {
	padding: 14px 20px 6px; font-size: 10.5px; text-transform: uppercase;
	letter-spacing: .9px; color: #6d7883;
}
.sidebar a {
	display: flex; align-items: center; gap: 10px; padding: 9px 20px;
	color: #c3ccd5; font-size: 13px; border-left: 3px solid transparent;
}
.sidebar a:hover { background: #2b333c; color: #fff; text-decoration: none; }
.sidebar a.aktif { background: #2b333c; color: #fff; border-left-color: var(--kirmizi); }
.sidebar a svg { opacity: .7; flex: 0 0 auto; }
.sidebar a.aktif svg { opacity: 1; color: #e5796a; }
.sidebar .rozet {
	margin-left: auto; background: var(--kirmizi); color: #fff; font-size: 10.5px;
	padding: 1px 7px; border-radius: 10px; font-weight: 700;
}
.sidebar .alt { padding: 14px 20px; border-top: 1px solid #2f3841; font-size: 11.5px; color: #7d8894; }
.sidebar .alt b { color: #cfd7de; display: block; font-size: 12.5px; }
.sidebar .alt a { display: inline; padding: 0; border: 0; color: #9aa5b0; font-size: 11px; white-space: nowrap; }
.sidebar .alt a:hover { background: transparent; color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
	background: #fff; border-bottom: 1px solid var(--cizgi);
	padding: 0 26px; height: 60px; display: flex; align-items: center; gap: 16px;
	position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; }
.topbar .sag { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--gri); }
.topbar .sag a { color: var(--gri); }
.marka-webtr {
	display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #98a1a9;
	padding: 3px 9px; border: 1px solid #e3e7ea; border-radius: 12px;
}
.marka-webtr:hover { color: #e2001a; border-color: #f0d3da; text-decoration: none; }
.badge-rol {
	background: #eef2f5; color: #55606b; font-size: 11px; padding: 3px 9px;
	border-radius: 10px; font-weight: 600;
}
.badge-rol.super { background: #fdeeeb; color: #a8382a; }
.content { padding: 24px 26px 60px; }

/* --- kartlar / tablolar -------------------------------------------------- */
.card {
	background: #fff; border: 1px solid var(--cizgi); border-radius: 5px;
	margin-bottom: 20px; overflow: hidden;
}
.card-head {
	padding: 14px 18px; border-bottom: 1px solid var(--cizgi);
	display: flex; align-items: center; gap: 12px;
}
.card-head h2 { font-size: 14.5px; margin: 0; }
.card-head .sag { margin-left: auto; display: flex; gap: 8px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.istatistik { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat {
	background: #fff; border: 1px solid var(--cizgi); border-radius: 5px; padding: 16px 18px;
	display: flex; align-items: center; gap: 14px;
}
.stat .ic {
	width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
	background: #f3f6f8; color: #5d6b78; flex: 0 0 auto;
}
.stat .ic.kirmizi { background: #fdeeeb; color: var(--kirmizi); }
.stat .ic.yesil { background: #eff7e8; color: #4f8a25; }
.stat b { display: block; font-size: 22px; color: #1f262c; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--gri); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
	text-align: left; padding: 10px 14px; background: #f7f9fa; color: #5b666f;
	font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
	border-bottom: 1px solid var(--cizgi); white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid #eef1f3; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #fcfdfd; }
td .islem { display: flex; gap: 6px; justify-content: flex-end; }
td.kucuk { font-size: 12px; color: var(--gri); }
.mono { font-family: ui-monospace, "Consolas", monospace; font-size: 12px; }

.durum { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.durum.yeni { background: #fdeeeb; color: #a8382a; }
.durum.arandi { background: #fff5e2; color: #8a6212; }
.durum.planlandi { background: #eaf2fb; color: #2a5f92; }
.durum.tamamlandi { background: #eef7e7; color: #4b7c25; }
.durum.iptal { background: #f0f1f2; color: #6d7883; }
.durum.aktif { background: #eef7e7; color: #4b7c25; }
.durum.pasif { background: #f0f1f2; color: #77828c; }

/* --- düğmeler ----------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 7px; justify-content: center;
	padding: 9px 15px; border-radius: 4px; border: 1px solid transparent;
	font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; color: #46525c;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--kirmizi); border-color: var(--kirmizi); color: #fff; }
.btn-primary:hover { background: #b1000f; border-color: #b1000f; color: #fff; }
.btn-yesil { background: var(--yesil); border-color: var(--yesil); color: #fff; }
.btn-yesil:hover { background: #68a838; color: #fff; }
.btn-gri { background: #fff; border-color: #d6dbe0; color: #4a555f; }
.btn-gri:hover { border-color: #aab4bd; color: #232a31; }
.btn-mini { padding: 5px 10px; font-size: 12px; }
.btn-tehlike { color: #b03a2a; border-color: #eccfc9; background: #fdf6f5; }
.btn-tehlike:hover { background: #fbeae7; color: #94180a; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- formlar ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .tam { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; font-weight: 600; color: #4a555f; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="tel"], input[type="date"], input[type="url"], select, textarea {
	width: 100%; padding: 9px 12px; border: 1px solid #d6dbe0; border-radius: 4px;
	background: #fff; font: inherit; font-size: 13px; color: #333;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--kirmizi); box-shadow: 0 0 0 3px rgba(192, 57, 43, .08); }
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
textarea.buyuk { min-height: 300px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.yardim { font-size: 11.5px; color: #96a1aa; margin: 5px 0 0; }
.onay { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; margin: 0; }
.onay input { width: 16px; height: 16px; accent-color: var(--kirmizi); }
.form-actions {
	display: flex; align-items: center; gap: 10px; padding: 14px 18px;
	border-top: 1px solid var(--cizgi); background: #fafbfc;
}
.form-actions .sag { margin-left: auto; font-size: 12px; color: var(--gri); }
.gorsel-alan { display: flex; gap: 14px; align-items: flex-start; }
.gorsel-onizle {
	width: 120px; height: 84px; border: 1px dashed #cfd6dc; border-radius: 4px;
	display: grid; place-items: center; background: #fafbfc; overflow: hidden; flex: 0 0 auto;
}
.gorsel-onizle img { width: 100%; height: 100%; object-fit: contain; }
.gorsel-onizle span { font-size: 11px; color: #a6b0b8; }

/* --- uyarılar ----------------------------------------------------------- */
.uyari {
	display: flex; gap: 11px; align-items: flex-start; padding: 12px 15px;
	border-radius: 4px; font-size: 13px; margin-bottom: 18px; border: 1px solid transparent;
}
.uyari svg { flex: 0 0 auto; margin-top: 1px; }
.uyari-basarili { background: #eef7e7; border-color: #d5e9c5; color: #46701f; }
.uyari-hata { background: #fdeeeb; border-color: #f2d3cd; color: #98301f; }
.uyari-bilgi { background: #eef4fb; border-color: #d6e4f4; color: #2b5c8d; }

.bos-durum { text-align: center; padding: 46px 20px; color: #96a1aa; }
.bos-durum svg { margin: 0 auto 12px; color: #c2cbd3; }
.bos-durum p { margin: 0 0 14px; }

.filtre-bar {
	display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
	padding: 12px 14px; border-bottom: 1px solid var(--cizgi); background: #fafbfc;
}
.filtre-bar a {
	font-size: 12px; padding: 5px 11px; border-radius: 12px; color: #5b666f;
	background: #fff; border: 1px solid #dfe4e8;
}
.filtre-bar a.aktif { background: var(--koyu); border-color: var(--koyu); color: #fff; }
.filtre-bar a:hover { text-decoration: none; border-color: #b9c2c9; }
.filtre-bar .sag { margin-left: auto; display: flex; gap: 8px; }
.filtre-bar input[type="text"] { width: 200px; padding: 6px 10px; font-size: 12.5px; }

.sayfalama { display: flex; gap: 5px; padding: 14px 18px; justify-content: center; }
.sayfalama a, .sayfalama span {
	min-width: 32px; text-align: center; padding: 5px 9px; font-size: 12.5px;
	border: 1px solid #dfe4e8; border-radius: 4px; color: #55606b; background: #fff;
}
.sayfalama .aktif { background: var(--koyu); border-color: var(--koyu); color: #fff; }

.ikili { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

/* --- detay tablosu ------------------------------------------------------ */
dl.detay { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 0; }
dl.detay dt {
	padding: 10px 14px; background: #fafbfc; font-size: 12px; color: #6d7883;
	border-bottom: 1px solid #eef1f3; font-weight: 600;
}
dl.detay dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid #eef1f3; font-size: 13px; }

.ipucu { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.ipucu li { padding: 8px 0; border-bottom: 1px dashed #eef1f3; color: #6d7883; }
.ipucu li:last-child { border: 0; }
.ipucu b { color: #3b444c; }

.etiket { display: inline-block; font-size: 11px; background: #eef2f5; color: #5b666f; padding: 2px 8px; border-radius: 3px; margin: 0 4px 4px 0; }
.kopya { display: flex; gap: 6px; }
.kopya input { font-size: 12px; }

@media (max-width: 1000px) {
	.istatistik { grid-template-columns: 1fr 1fr; }
	.ikili { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.sidebar { position: fixed; left: -236px; z-index: 60; transition: left .2s ease; }
	.sidebar.acik { left: 0; }
	.content { padding: 16px; }
	.content table { display: block; overflow-x: auto; }
}

/* --- menü ikon seçimi ---------------------------------------------------- */
.ikon-secim {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 8px; margin-top: 4px; max-height: 264px; overflow-y: auto;
	padding: 4px; border: 1px solid #e6eaee; border-radius: 6px; background: #fbfcfd;
}
.ikon-secenek {
	position: relative; display: flex; align-items: center; gap: 7px;
	padding: 8px 9px; border: 1px solid #e6eaee; border-radius: 5px;
	background: #fff; cursor: pointer; font-size: 11.5px; line-height: 1.2; color: #4b565f;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ikon-secenek:hover { border-color: #c9d2d9; }
.ikon-secenek input { position: absolute; opacity: 0; pointer-events: none; }
.ikon-secenek .ikon-kutu { display: grid; place-items: center; color: #7d8891; flex: 0 0 auto; }
.ikon-secenek .ikon-ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ikon-secenek:has(input:checked) {
	border-color: #e2001a; box-shadow: 0 0 0 1px #e2001a inset; color: #23272b;
}
.ikon-secenek:has(input:checked) .ikon-kutu { color: #e2001a; }
.ikon-hucre { display: flex; align-items: center; gap: 8px; }
.ikon-onizleme { color: #7d8891; display: grid; place-items: center; flex: 0 0 auto; }
.ipucu-metin { font-weight: 400; color: #8b96a0; font-size: 11.5px; }
.field-full { grid-column: 1 / -1; }

/* --- il satırları -------------------------------------------------------- */
.il-satir { border: 1px solid #e6eaee; border-radius: 6px; padding: 12px 14px; background: #fbfcfd; }
.il-yeni { background: #fffdf7; border-style: dashed; }
.il-alanlar { display: grid; grid-template-columns: 2fr 90px 1.6fr 90px 130px; gap: 10px; }
.il-alanlar label { font-size: 11.5px; }
.il-alanlar input { padding: 7px 10px; font-size: 13px; }
.il-alt { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
@media (max-width: 900px) {
	.il-alanlar { grid-template-columns: 1fr 1fr; }
}
