:root {
  --primary:#0f4c81; --primary2:#1769aa; --accent:#f4b400; --bg:#f4f7fb;
  --card:#fff; --text:#1f2937; --muted:#64748b; --border:#dbe3ec;
  --danger:#b91c1c; --success:#166534;
}
*{box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit}.topbar{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;padding:18px 24px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.topbar-inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:20px;font-weight:700}.brand small{display:block;font-size:12px;font-weight:400;opacity:.85;margin-top:4px}
.nav a{display:inline-block;text-decoration:none;color:#fff;padding:9px 12px;border-radius:8px;margin-left:4px}.nav a:hover{background:rgba(255,255,255,.12)}
.container{max-width:1180px;margin:28px auto;padding:0 18px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:0 8px 26px rgba(15,76,129,.06)}
.kpi{font-size:38px;font-weight:800;color:var(--primary);margin:8px 0}.muted{color:var(--muted);font-size:14px}.section-title{margin:0 0 18px;font-size:21px}.actions{display:flex;flex-wrap:wrap;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;padding:11px 15px;font-weight:700;cursor:pointer;text-decoration:none;background:var(--primary);color:#fff}.btn:hover{filter:brightness(.95)}.btn.secondary{background:#475569}.btn.success{background:#15803d}.btn.light{background:#e8eef5;color:#16324f}.btn.danger{background:#b91c1c}
label{display:block;font-weight:700;margin-bottom:7px}.form-control{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:#fff;font-size:15px}.form-control:focus{outline:2px solid #b8d5ee;border-color:var(--primary)}.form-row{margin-bottom:16px}.alert{padding:12px 14px;border-radius:9px;margin:0 0 16px;border:1px solid}.alert.success{background:#ecfdf3;border-color:#bbf7d0;color:#166534}.alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.alert.info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#eef5fb,#f8fafc)}.login-card{width:100%;max-width:430px}.login-title{text-align:center;margin-bottom:24px}.login-title h1{font-size:25px;margin:0 0 8px;color:var(--primary)}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:10px}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:11px 12px;border-bottom:1px solid #e8edf2;text-align:left;font-size:14px}th{background:#edf3f8;color:#24445f}.query-card{max-width:650px;margin:35px auto}.result{margin-top:22px}.footer{text-align:center;color:var(--muted);font-size:12px;padding:28px 15px}
@media(max-width:850px){.grid{grid-template-columns:1fr}.topbar-inner{align-items:flex-start;flex-direction:column}.nav a{margin-left:0;margin-right:4px}.kpi{font-size:32px}}

/* Sade yönetim paneli */
.nav a.active{background:rgba(255,255,255,.18)}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.page-heading h1{margin:0 0 6px;font-size:28px;color:#153b5d}.page-heading p{margin:0;color:var(--muted)}
.module-grid{display:grid;grid-template-columns:1fr;gap:16px;max-width:930px;margin:22px auto}.module-card{display:grid;grid-template-columns:72px 1fr 28px;align-items:center;gap:18px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;text-decoration:none;box-shadow:0 8px 26px rgba(15,76,129,.06);transition:.18s ease}.module-card:hover{transform:translateY(-2px);border-color:#aac7df;box-shadow:0 12px 30px rgba(15,76,129,.11)}.module-icon{width:62px;height:62px;border-radius:14px;background:#eaf2f9;color:var(--primary);display:grid;place-items:center;font-weight:800;font-size:20px}.module-body h2{margin:0 0 6px;font-size:21px;color:#183b56}.module-body p{margin:0 0 10px;color:var(--muted);line-height:1.45}.module-count{display:inline-block;font-size:13px;font-weight:700;color:var(--primary);background:#eef6fc;border-radius:20px;padding:5px 10px}.module-arrow{font-size:34px;color:#7d9ab1}.narrow{max-width:980px}.help{font-size:12px;color:var(--muted);margin-top:6px}.badge{display:inline-block;border-radius:20px;padding:5px 9px;background:#e8f1f8;color:#134b78;font-weight:800;font-size:12px}.text-link{color:var(--primary);font-weight:700;text-decoration:none}.actions.compact{gap:6px}.actions.compact form{margin:0}.btn.small{padding:7px 10px;border-radius:7px;font-size:12px}
.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;border:1px solid var(--border);border-bottom:0;border-radius:9px 9px 0 0;background:#f7fafc}.editor-toolbar button{border:1px solid #cfd9e3;background:#fff;border-radius:6px;padding:7px 9px;cursor:pointer;color:#253c50}.editor-toolbar button:hover{background:#eaf2f8}.editor-toolbar span{width:1px;background:#d8e1e9;margin:2px 4px}.rich-editor{min-height:280px;padding:14px;border:1px solid var(--border);border-radius:0 0 9px 9px;background:#fff;line-height:1.55;overflow:auto}.rich-editor:focus{outline:2px solid #b8d5ee;border-color:var(--primary)}
@media(max-width:700px){.page-heading{align-items:flex-start;flex-direction:column}.module-card{grid-template-columns:54px 1fr 20px;padding:16px}.module-icon{width:48px;height:48px}.nav{display:flex;flex-wrap:wrap}.nav a{padding:7px 9px}.rich-editor{min-height:220px}}

/* v3 - Ana panel görünümü */
.dashboard-page{padding-top:6px}
.dashboard-page .page-heading{max-width:980px;margin:0 auto 22px;padding:20px 22px;background:linear-gradient(135deg,#ffffff,#f4f8fc);border:1px solid var(--border);border-radius:16px;box-shadow:0 6px 20px rgba(15,76,129,.05)}
.dashboard-page .page-heading h1{font-size:30px}
.dashboard-page .module-grid{max-width:980px}
.dashboard-page .module-card{min-height:128px;border-left:5px solid var(--primary);position:relative;overflow:hidden}
.dashboard-page .module-card::after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-55px;top:-55px;background:rgba(15,76,129,.045);pointer-events:none}
.dashboard-page .module-card:nth-child(1){border-left-color:#2563eb}
.dashboard-page .module-card:nth-child(2){border-left-color:#15803d}
.dashboard-page .module-card:nth-child(3){border-left-color:#d97706}
.dashboard-page .module-card:nth-child(1) .module-icon{background:#eaf2ff;color:#1d4ed8}
.dashboard-page .module-card:nth-child(2) .module-icon{background:#eaf8ef;color:#166534}
.dashboard-page .module-card:nth-child(3) .module-icon{background:#fff5df;color:#b45309}
.dashboard-page .module-body h2{text-decoration:none}
.dashboard-page .module-card,.dashboard-page .module-card:visited{color:var(--text);text-decoration:none}
.dashboard-page .module-card:hover .module-body h2{color:var(--primary)}
.dashboard-page .module-count{margin-top:2px}
@media(min-width:900px){.dashboard-page .module-grid{grid-template-columns:repeat(3,1fr);align-items:stretch}.dashboard-page .module-card{grid-template-columns:1fr;grid-template-rows:auto 1fr auto;text-align:center}.dashboard-page .module-icon{margin:0 auto}.dashboard-page .module-arrow{display:none}.dashboard-page .module-body p{min-height:62px}}

/* v5 - Gelismis duyuru editoru ve dokuman yukleme */
.editor-toolbar{position:sticky;top:0;z-index:3;align-items:center}
.editor-toolbar .upload-tool{background:#eaf7ef;border-color:#b9dec6;color:#166534;font-weight:700}
.editor-toolbar .upload-tool:hover{background:#dff2e6}
.editor-upload-status{min-height:0;padding:0;font-size:13px;border-left:1px solid var(--border);border-right:1px solid var(--border);background:#fff}
.editor-upload-status.loading,.editor-upload-status.success,.editor-upload-status.error{padding:8px 12px}
.editor-upload-status.loading{color:#1d4ed8;background:#eff6ff}
.editor-upload-status.success{color:#166534;background:#ecfdf3}
.editor-upload-status.error{color:#991b1b;background:#fef2f2}
.rich-editor{min-height:360px}
.rich-editor table{border-collapse:collapse;width:100%;margin:12px 0}
.rich-editor th,.rich-editor td{border:1px solid #cbd5e1;padding:8px;vertical-align:top}
.rich-editor th{background:#eef4f8}
.rich-editor a{color:#0f5f9d;text-decoration:underline}
.rich-editor .duyuru-dosya-link{display:block;margin:10px 0;padding:10px 12px;border:1px solid #c9d9e7;border-radius:8px;background:#f5f9fc}
