/* Sayfa iskeleti: site başlığı, hero, panel kabuğu (sidebar + toolbar), ızgaralar */
.container { width: min(1440px, calc(100% - 48px)); margin: auto; }

/* ---- Site başlığı ---- */
.site-header { height: 74px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-flex { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.top-links { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.top-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); padding: 10px 12px; border-radius: 10px; }
.top-links a:hover { background: #f0f6ff; text-decoration: none; }
.top-links .ico { color: var(--blue-btn); }
.header-actions { display: flex; gap: 9px; align-items: center; }
.mobile-menu-button { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: 19px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 38px; height: 42px; flex-shrink: 0; }
.logo b { display: block; font-weight: 800; }
.logo em { display: block; font-style: normal; color: var(--teal-ink); }
.logo.caps { text-transform: uppercase; letter-spacing: 0; }
.logo.on-dark { color: #fff; }
.logo.on-dark em { color: #46d3d3; }

.demo-strip { text-align: center; background: #e9f7ff; color: #175c8e; font-size: 12px; padding: 9px 12px; border-bottom: 1px solid #cce6f9; }

/* ---- Hero ---- */
.home-hero { background: linear-gradient(110deg, #eef8ff 5%, #d7edff 60%, #c7f8f5 100%); padding: 38px 0 78px; position: relative; overflow: hidden; }
.home-hero::after { content: ''; position: absolute; width: 500px; height: 500px; right: -220px; top: -210px; border-radius: 50%; border: 85px solid rgba(0, 183, 182, .14); pointer-events: none; }
.hero-layout { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 30px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; background: #007f90; color: #fff; border-radius: 40px; padding: 7px 13px; font-weight: 700; }
.home-hero h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -.035em; margin: 20px 0 15px; font-weight: 800; }
.home-hero h1 span { color: #008a8e; display: block; }
.home-hero .lead { max-width: 580px; color: #344665; line-height: 1.65; font-size: 17px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; font-weight: 700; margin-top: 24px; }
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list .ico { color: #fff; background: #00897b; border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }
.hero-visual { position: relative; min-height: 320px; display: flex; align-items: flex-end; justify-content: center; }
.hero-art { width: 100%; max-width: 640px; height: auto; }
.hero-float { position: absolute; right: 0; top: 0; background: #fff; border: 1px solid #dfebfb; border-radius: 17px; box-shadow: var(--shadow); padding: 14px 18px; font-size: 13px; font-weight: 700; display: grid; gap: 12px; }
.hero-float li { display: flex; align-items: center; gap: 9px; }
.hero-float .ico { color: var(--teal-ink); }

.home-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -52px; position: relative; z-index: 2; }
.section-wrap { padding: 28px 0 0; }
.section-grid { display: grid; grid-template-columns: 1.25fr 1.15fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.section-heading { font-size: 25px; margin-bottom: 4px; }

.footer { background: var(--navy); color: #d9e7f9; padding: 30px 0 22px; margin-top: 34px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; align-items: start; font-size: 13px; }
.footer h3 { font-size: 13px; color: #fff; margin-bottom: 10px; }
.footer a { color: #c8d9ef; display: inline-block; padding: 4px 0; }
.footer p { color: #a9bcd8; font-size: 13px; margin-top: 12px; max-width: 360px; }
.footer-legal { border-top: 1px solid #23406b; margin-top: 22px; padding-top: 16px; color: #a9bcd8; font-size: 12px; }

/* ---- Panel kabuğu ---- */
.workspace { display: flex; min-height: 100vh; }
.sidebar { width: 243px; flex-shrink: 0; background: linear-gradient(170deg, #0a1c38, #142c50); color: #fff; padding: 22px 14px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.sidebar .logo { padding: 0 12px 20px; }
.sidebar-label { color: #9dbad8; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 8px 14px; }
.role-chip { display: inline-block; background: var(--teal-btn); color: #fff; border-radius: 30px; font-size: 12px; font-weight: 700; padding: 4px 12px; margin: 0 12px 10px; align-self: flex-start; }
.nav-button { width: 100%; background: none; border: 0; color: #e3ecfa; text-align: left; display: flex; align-items: center; gap: 12px; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700; margin: 2px 0; min-height: 44px; }
.nav-button:hover { background: #ffffff14; text-decoration: none; color: #fff; }
.nav-button.active { background: linear-gradient(90deg, var(--teal-btn), #007a8a); color: #fff; }
.nav-button .count { margin-left: auto; background: #0fb5b0; color: #04262a; border-radius: 20px; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.nav-button .count.alert { background: #ff6b6b; color: #3a0505; }
.sidebar-help { margin-top: auto; border: 1px solid #35537e; border-radius: 15px; background: #ffffff0b; padding: 16px; font-size: 13px; }
.sidebar-help strong { font-size: 14px; display: flex; gap: 8px; align-items: center; }
.sidebar-help p { color: #c4d5ea; font-size: 12px; margin: 8px 0 12px; }

.workspace-main { flex: 1; min-width: 0; }
.workspace-top { display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); height: 73px; padding: 0 26px; position: sticky; top: 0; z-index: 30; }
.workspace-top .title { min-width: 0; }
.workspace-top .title strong { font-size: 16px; display: block; }
.workspace-top .title small { color: var(--muted); font-size: 12px; }
.workspace-top .mobile-only { display: none; }
.search-box { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search-box .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search { background: #f6f9fe; border: 1px solid #cfdcec; border-radius: 10px; padding: 11px 13px 11px 40px; width: 100%; color: var(--ink); min-height: 44px; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px #0b1e3b26; max-height: 360px; overflow: auto; z-index: 50; padding: 6px; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 13px; }
.search-results a:hover, .search-results a:focus-visible { background: #eef6ff; text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: inherit; }
.icon-button:hover { background: #eef4fb; }
.icon-button .dot-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; background: #d92d2d; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #17365d; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 3px 6px 3px 3px; border-radius: 30px; min-height: 44px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: #eef4fb; }
.user-menu .who { font-size: 13px; font-weight: 800; line-height: 1.2; }
.user-menu .who small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px #0b1e3b26; min-width: 230px; padding: 6px; z-index: 60; }
.user-menu .menu a, .user-menu .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 11px 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: #eef6ff; text-decoration: none; }

.content { padding: 24px 27px 40px; max-width: 1540px; margin: auto; }
.content:focus { outline: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); padding: 4px 0; }
.heading-row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.heading-row h1 { font-size: 27px; margin-bottom: 6px; }
.heading-row p { font-size: 14px; color: var(--muted); }
.heading-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 15px; margin: 16px 0; }
.admin-grid { display: grid; grid-template-columns: 1.2fr .9fr 1fr; gap: 15px; margin: 16px 0; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quad-grid { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr; gap: 15px; }
.page-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 15px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid .full { grid-column: 1 / -1; }

.mobile-bottom { display: none; }

/* Izgara çocukları içerik genişliğiyle taşmasın */
.page-grid > *, .detail-grid > *, .bottom-grid > *, .dash-grid > *, .admin-grid > *, .quad-grid > *, .section-grid > *, .hero-layout > * { min-width: 0; }
.icon-button.mobile-menu-button { display: none; }
.footer a.logo { display: inline-flex; }
.footer .footer-legal { max-width: none; }

/* Marka logosu (görsel) */
.logo img { height: 50px; width: auto; display: block; }
.sidebar .logo img { height: 56px; }

/* Menü: kaydırma çerçevesi (scrollbar) görünmez; admin grupları yana açılır */
.sidebar { scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.nav-group { cursor: pointer; font-family: inherit; }
.nav-group .chev { margin-left: auto; display: inline-flex; opacity: .8; }
.nav-group .count + .chev { margin-left: 8px; }
.nav-group[aria-expanded="true"]:not(.active) { background: #ffffff14; color: #fff; }
.nav-fly { position: fixed; z-index: 60; width: 270px; max-height: calc(100vh - 16px); overflow-y: auto; scrollbar-width: none; background: #142c50; color: #fff; border-radius: 0 14px 14px 0; padding: 10px 12px 12px; box-shadow: 14px 10px 30px rgba(10, 28, 56, .28); }
.nav-fly::-webkit-scrollbar { display: none; }
.nav-fly[hidden] { display: none; }
.sidebar { z-index: 50; }
