.admin-body { min-height: 100vh; background: #f2f6fc; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 250px; display: flex; flex-direction: column; padding: 28px 20px 22px; color: #c8d8f4; background: #061a44; }
.admin-brand { margin: 0 10px 50px; }
.admin-brand strong { color: white; }
.admin-brand small { color: #779ad0; font: 700 .58rem Arial,sans-serif; letter-spacing: .15em; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 10px; color: #9eb6dc; font-size: .88rem; font-weight: 700; text-decoration: none; }
.admin-nav a svg { width: 20px; }
.admin-nav a:hover, .admin-nav a.active { color: white; background: #123a79; }
.admin-nav a.active { box-shadow: inset 3px 0 #6ba9ff; }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid #193967; }
.sidebar-user > div { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #1d5fbf; color: white; font-weight: 800; }
.sidebar-user span { min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: white; font-size: .78rem; }
.sidebar-user small { color: #7898c5; font-size: .66rem; }
.sidebar-user a { color: #8faad0; }
.sidebar-user svg { width: 20px; }
.admin-shell { min-height: 100vh; margin-left: 250px; }
.admin-topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 58px); background: white; border-bottom: 1px solid #dce5f2; }
.admin-topbar > div span, .admin-topbar > div strong { display: block; }
.admin-topbar > div span { color: #71829b; font-size: .65rem; }
.admin-topbar > div strong { font-size: .91rem; }
.admin-create { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 9px; color: white; background: var(--blue); font-size: .8rem; font-weight: 700; text-decoration: none; }
.admin-create svg { width: 18px; }
.sidebar-toggle { display: none; border: 0; background: none; }
.sidebar-toggle > span { display: block; width: 23px; height: 2px; margin: 5px; background: var(--navy); }
.admin-main { padding: 50px clamp(24px, 4vw, 58px) 80px; }
.dashboard-intro, .editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.dashboard-intro h1, .editor-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.035em; }
.dashboard-intro p, .editor-heading p { margin: 8px 0 0; color: var(--muted); }
.system-status { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; padding: 12px 16px; border: 1px solid #d5e1f1; border-radius: 10px; background: white; }
.system-status i { width: 8px; height: 8px; border-radius: 50%; background: #11a878; box-shadow: 0 2px 10px rgba(17,168,120,.4); }
.system-status span { font-size: .76rem; font-weight: 800; }
.system-status time { grid-column: 2; color: var(--muted); font: 700 .62rem Arial,sans-serif; }
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 38px; border: 1px solid #dce5f2; border-radius: 12px; background: white; box-shadow: 0 12px 32px rgba(7,23,51,.06); }
.stats-strip > div { padding: 24px clamp(18px, 3vw, 34px); border-right: 1px solid #e1e8f2; }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip span, .stats-strip small, .stats-strip strong { display: block; }
.stats-strip span { color: var(--muted); font-size: .72rem; }
.stats-strip strong { margin: 5px 0 1px; color: var(--navy); font: 800 2rem/1.15 Arial,sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats-strip small { color: #7a8ca5; font-size: .65rem; }
.news-manager { padding: 30px; border: 1px solid #dce5f2; border-radius: 14px; background: white; box-shadow: 0 16px 40px rgba(7,23,51,.06); }
.manager-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.manager-heading h2 { margin: 0; font-size: 1.5rem; }
.manager-heading p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.admin-search { width: min(350px,50%); display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #d7e1ef; border-radius: 9px; background: #f8fafd; }
.admin-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,93,255,.11); }
.admin-search svg { width: 18px; color: #69809f; }
.admin-search input { width: 100%; padding: 5px; border: 0; outline: 0; background: transparent; font-size: .8rem; }
.status-tabs { display: flex; gap: 25px; margin-top: 28px; border-bottom: 1px solid #e2e9f2; }
.status-tabs a { position: relative; padding: 0 0 12px; color: var(--muted); font-size: .76rem; font-weight: 700; text-decoration: none; }
.status-tabs a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--blue); }
.status-tabs a.active { color: var(--blue); }
.status-tabs a.active::after { right: 0; }
.table-scroll { overflow-x: auto; }
.news-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.news-table th { padding: 16px 12px; color: #6b7e99; font-size: .65rem; text-align: left; font-weight: 700; }
.news-table td { padding: 17px 12px; border-top: 1px solid #e5ebf3; color: #40526d; font-size: .76rem; }
.news-table td:first-child { width: 46%; }
.news-table td:first-child > a { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 14px; text-decoration: none; }
.table-thumb { display: block; height: 55px; border-radius: 8px; }
.news-table td strong, .news-table td small { display: block; }
.news-table td strong { color: var(--ink); font-size: .82rem; line-height: 1.35; }
.news-table td small { color: #788aa2; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; }
.status-badge.published { color: #087258; background: #e5f7f1; }
.status-badge.published i { background: #0a9672; }
.status-badge.draft { color: #6a7890; background: #edf1f6; }
.status-badge.draft i { background: #8290a4; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions a, .row-actions button { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #647895; background: transparent; cursor: pointer; }
.row-actions svg { width: 17px; }
.row-actions a:hover { color: var(--blue); background: var(--ice); }
.row-actions button:hover { color: var(--danger); background: #fff0f2; }
.admin-empty { text-align: center; padding: 75px 20px 55px; }
.admin-empty h3 { margin: 22px 0 5px; }
.admin-empty p { margin: 0 0 25px; color: var(--muted); }

.form-alert { margin-bottom: 26px; padding: 13px 16px; border-radius: 9px; font-size: .82rem; }
.form-alert.success { color: #08674f; background: #e2f7f0; }
.form-alert.error { color: #9d2535; background: #ffedf0; }
.form-alert ul { margin: 6px 0 0; padding-left: 20px; }
.editor-heading > div > a { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: .78rem; font-weight: 700; }
.preview-link { display: inline-flex; gap: 8px; align-items: center; color: var(--blue); font-size: .78rem; font-weight: 700; }
.preview-link svg { width: 17px; }
.editor-form { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.editor-main { display: grid; gap: 25px; }
.form-section { padding: 28px; border: 1px solid #dce5f2; border-radius: 12px; background: white; box-shadow: 0 12px 30px rgba(7,23,51,.045); }
.form-section h2 { margin: 0 0 23px; padding-bottom: 15px; border-bottom: 1px solid #e6ecf4; font-size: 1rem; }
.field { display: block; margin-bottom: 21px; color: #243852; font-size: .78rem; font-weight: 700; }
.field:last-child { margin-bottom: 0; }
.field > span { color: var(--blue); }
.field > small { float: right; color: #8290a4; font-weight: 400; }
.field input, .field textarea, .field select { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid #cfdaea; border-radius: 8px; color: var(--ink); background: white; outline: 0; font-weight: 400; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,93,255,.1); }
.field input::placeholder, .field textarea::placeholder { color: #8291a5; }
.field .char-count { float: none; display: block; margin-top: 4px; text-align: right; }
.image-preview { height: 280px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 10px; color: rgba(255,255,255,.75); font-size: .72rem; }
.image-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-preview span { position: relative; z-index: 1; padding: 5px 8px; background: rgba(2,14,39,.5); border-radius: 5px; }
.editor-aside { display: grid; gap: 18px; position: sticky; top: 20px; }
.check-field { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 15px 0; border-top: 1px solid #e6ecf4; border-bottom: 1px solid #e6ecf4; }
.check-field input { width: 17px; height: 17px; accent-color: var(--blue); }
.check-field strong, .check-field small { display: block; }
.check-field strong { font-size: .78rem; }
.check-field small { color: var(--muted); font-size: .66rem; }
.publish-actions { display: grid; gap: 10px; margin-top: 20px; text-align: center; }
.save-button { border: 0; border-radius: 8px; padding: 11px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
.save-button:hover { background: #0c47ce; }
.publish-actions a { color: var(--muted); font-size: .74rem; }
.editor-note { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 17px; color: #27466e; background: #e9f2ff; border-radius: 10px; }
.editor-note svg { width: 21px; color: var(--blue); }
.editor-note strong { font-size: .75rem; }
.editor-note p { margin: 3px 0 0; font-size: .67rem; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: white; }
.login-visual { position: relative; overflow: hidden; padding: 50px clamp(35px, 6vw, 86px); color: white; background: #061a44 url('../images/orbital-news-hero.png') center/cover no-repeat; }
.login-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle,#b9d6ff 1px,transparent 1.4px); background-size: 70px 70px; opacity: .25; }
.login-brand { position: relative; z-index: 2; }
.login-brand strong { color: white; }
.login-brand small { color: #86a9dc; }
.login-orbit { display: none; }
.login-orbit::before, .login-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.login-orbit::before { width: 120px; height: 120px; left: 34%; top: 20%; background: radial-gradient(circle at 34% 28%,#e9f4ff,#80b4fa 25%,#1e5eb9 58%,#082554 80%); box-shadow: 20px 25px 50px rgba(0,0,0,.35); }
.login-orbit::after { width: 9px; height: 9px; right: 5%; top: 18%; background: white; box-shadow: 0 2px 14px rgba(255,255,255,.8); }
.login-message { position: absolute; z-index: 2; left: clamp(35px,6vw,86px); bottom: 90px; }
.login-message h1 { margin: 0; font-size: clamp(3rem,5.8vw,5.7rem); line-height: .95; letter-spacing: -.035em; }
.login-message em { color: #83b8ff; font-style: normal; }
.login-message p { max-width: 510px; margin: 28px 0 0; color: #b9cef0; }
.login-coordinate { position: absolute; z-index: 2; right: 30px; bottom: 35px; color: #7296cb; font: 700 .6rem/1.6 Arial,sans-serif; letter-spacing: .12em; text-align: right; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-form { width: min(410px,100%); }
.login-form h2 { margin: 0; font-size: clamp(2rem,4vw,3.1rem); line-height: 1.1; letter-spacing: -.03em; }
.login-form > p { margin: 12px 0 35px; color: var(--muted); }
.login-form label { display: block; margin-bottom: 19px; color: #263b58; font-size: .78rem; font-weight: 700; }
.login-form input { width: 100%; display: block; margin-top: 8px; padding: 12px 13px; border: 1px solid #ced9e8; border-radius: 8px; outline: 0; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,93,255,.11); }
.login-form button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; padding: 12px; border: 0; border-radius: 8px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
.login-form button:hover { background: #0c47ce; }
.login-form button svg { width: 19px; }
.login-form > small { display: block; margin-top: 16px; color: #798aa1; text-align: center; }
.mobile-login-logo { display: none; }

@media (max-width: 1050px) {
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid #e1e8f2; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-aside { position: static; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; }
  .mobile-login-logo { display: inline-flex; margin-bottom: 55px; }
}
@media (max-width: 800px) {
  .admin-sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 16px 0 40px rgba(0,0,0,.18); }
  .admin-sidebar.open { transform: none; }
  .admin-shell { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .admin-topbar { justify-content: flex-start; gap: 18px; }
  .admin-topbar .admin-create { margin-left: auto; }
  .dashboard-intro, .editor-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .admin-main { padding: 35px 16px 60px; }
  .admin-topbar { padding: 0 14px; }
  .admin-topbar > div { display: none; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip > div { padding: 18px; }
  .news-manager { padding: 20px 16px; }
  .manager-heading { align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .form-section { padding: 22px 18px; }
  .login-panel { padding: 28px 22px; }
}

