@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root {
  font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
  color: #1d2927;
  background: #f3f6f4;
  font-synthesis: none;
  --ink: #1d2927;
  --muted: #73817c;
  --line: #e5ebe7;
  --paper: #fff;
  --canvas: #f3f6f4;
  --green: #246d5a;
  --green-dark: #194d40;
  --green-soft: #e8f2ee;
  --gold: #a87827;
  --gold-soft: #fbf3e5;
  --red: #b84b4e;
  --red-soft: #f9ebeb;
  --shadow: 0 14px 38px rgba(31, 65, 54, .07);
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(ellipse at 85% 10%, #e2eee8 0, transparent 34%), radial-gradient(ellipse at 0 100%, #e4eee9 0, transparent 32%), #f5f8f6; }
.login-card { width: min(100%, 460px); padding: 40px 38px 30px; border: 1px solid #e7eeea; border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(32,71,57,.1); }
.brand-mark { position: relative; width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 22px; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#327d68,#195746); box-shadow: 0 9px 20px rgba(32,107,86,.24); }
.brand-mark span { position: relative; z-index: 1; font-size: 31px; font-weight: 700; }
.brand-mark i { position: absolute; left: -11px; bottom: -23px; width: 82px; height: 41px; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; transform: rotate(-23deg); }
.eyebrow { margin: 0 0 8px; color: var(--green); text-align: center; font-size: 13px; font-weight: 700; }
.login-card h1 { margin: 0; font-size: 27px; line-height: 1.35; text-align: center; letter-spacing: -.3px; }
.login-copy { margin: 10px 0 27px; color: var(--muted); text-align: center; line-height: 1.8; font-size: 14px; }
.form-field { margin: 14px 0; }
.form-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.form-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dfe7e2; border-radius: 10px; outline: 0; background: #fbfcfb; transition: .18s; }
.form-field input:focus { border-color: #70a694; box-shadow: 0 0 0 3px rgba(46,126,103,.11); }
.form-field small { display: block; padding-top: 6px; color: var(--muted); line-height: 1.65; font-size: 11px; }
.google-button-wrap { min-height: 42px; display: flex; justify-content: center; margin: 18px 0 10px; }
.google-button-wrap:empty { min-height: 0; margin: 0; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-dark { color: #fff; background: var(--green-dark); box-shadow: 0 5px 12px rgba(25,77,64,.13); }
.button-dark:hover { background: #123c32; }
.button-outline { border-color: #dfe7e2; color: #40504a; background: #fff; }
.button-outline:hover { border-color: #aac5b8; background: #f7faf8; }
.button-wide { width: 100%; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.button-review { min-height: 34px; padding: 0 12px; border-color: #cee4d9; color: var(--green-dark); background: #f2f9f5; font-size: 12px; }
.button-review:hover { background: #e8f4ed; }
.notice { margin-top: 14px; padding: 11px 13px; border: 1px solid #f0d8d8; border-radius: 10px; color: #9d4545; background: #fff7f7; line-height: 1.7; font-size: 12px; }
.allowlist-box { margin-top: 14px; padding: 15px; border: 1px solid #ead8b3; border-radius: 12px; color: #6e5425; background: #fffbf2; font-size: 12px; line-height: 1.8; }
.allowlist-box p { margin: 8px 0; }
.allowlist-box code { padding: 2px 5px; border-radius: 4px; background: rgba(80,63,20,.07); overflow-wrap: anywhere; }
#detected-identity { display: block; padding: 8px; direction: ltr; text-align: left; }
.privacy-note { margin: 18px 0 0; color: #89948f; text-align: center; font-size: 11px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 5; inset: 0 0 0 auto; width: 252px; display: flex; flex-direction: column; padding: 25px 17px 17px; border-left: 1px solid #e7ede9; background: #fff; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 27px; }
.brand-mark-small { width: 43px; height: 43px; margin: 0; border-radius: 14px; }
.brand-mark-small span { font-size: 25px; }
.brand-mark-small i { width: 62px; height: 31px; }
.sidebar-brand strong { display: block; font-size: 16px; }
.sidebar-brand small { display: block; margin-top: 2px; color: #82908a; font-size: 11px; }
.sidebar-label { margin: 0 12px 10px; color: #9ba6a1; font-size: 11px; font-weight: 600; }
.main-nav { display: grid; gap: 5px; }
.nav-item { position: relative; width: 100%; min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 10px; color: #69766f; background: transparent; text-align: right; font-size: 13px; transition: .16s; }
.nav-item:hover { color: var(--green-dark); background: #f6f9f7; }
.nav-item.active { color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.nav-item.active::before { position: absolute; right: -17px; width: 3px; height: 24px; border-radius: 3px 0 0 3px; background: var(--green); content: ''; }
.nav-icon { width: 19px; color: #74847c; text-align: center; font-size: 19px; line-height: 1; }
.nav-count { min-width: 23px; height: 22px; display: grid; place-items: center; margin-right: auto; padding: 0 6px; border-radius: 7px; color: #53635b; background: #eef2ef; font-size: 10px; font-weight: 600; }
.nav-count.alert-count { color: #a85a38; background: #f8eee5; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 10px 5px; border-top: 1px solid var(--line); }
.sidebar-foot-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #dcece3; border-radius: 9px; color: var(--green); background: #f1f8f4; font-size: 12px; }
.sidebar-foot strong { display: block; font-size: 11px; }
.sidebar-foot small { display: block; margin-top: 3px; color: #8b9892; font-size: 10px; }
.main-content { min-width: 0; width: calc(100% - 252px); min-height: 100vh; margin-right: 252px; display: flex; flex-direction: column; }
.topbar { position: sticky; z-index: 4; top: 0; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 32px; border-bottom: 1px solid #e8eeea; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa49f; font-size: 12px; }
.breadcrumb b { color: #c0c9c3; font-weight: 400; }
.breadcrumb strong { color: #34433c; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.good { color: #32785e; background: #eaf5ef; }
.status-chip.warn { color: #9b7025; background: #fbf3e5; }
.status-chip.bad { color: #a84d4d; background: #f8eaea; }
.status-chip.neutral { color: #7b8882; background: #f0f3f1; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e1e8e3; border-radius: 10px; color: #63716b; background: #fff; font-size: 17px; }
.icon-button:hover { color: var(--green-dark); border-color: #b7d0c4; }
.mobile-menu { display: none; }
.page-content { width: min(100%, 1370px); flex: 1; margin: 0 auto; padding: 30px 32px 38px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-heading h1 { margin: 0; font-size: 25px; line-height: 1.35; letter-spacing: -.3px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.heading-aside { color: #87938d; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 19px; }
.stat-card { min-height: 121px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 4px 12px rgba(39,72,58,.025); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #75827b; font-size: 12px; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: #ecf5f0; font-size: 16px; }
.stat-icon.gold { color: #a87524; background: #fbf2e3; }
.stat-icon.blue { color: #52789a; background: #edf3f8; }
.stat-icon.red { color: #b14d4f; background: #f9eded; }
.stat-value { margin-top: 11px; font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -.3px; }
.stat-foot { margin-top: 7px; color: #8d9892; font-size: 10px; }
.two-column { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,1fr); gap: 16px; }
.panel-card { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 4px 12px rgba(39,72,58,.025); }
.panel-card + .panel-card { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px 13px; }
.panel-head h2 { margin: 0; font-size: 14px; }
.panel-head p { margin: 4px 0 0; color: #85918b; font-size: 10px; }
.panel-body { padding: 0 19px 18px; }
.text-link { padding: 5px 0; border: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; }
.text-link:hover { color: var(--green-dark); }
.quick-status { display: grid; gap: 10px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #edf1ee; border-radius: 10px; background: #fbfcfb; }
.status-row-label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.status-row-label i { width: 7px; height: 7px; border-radius: 50%; background: #69a280; }
.status-row-label i.warn-dot { background: #ca9b47; }
.status-row small { color: #84908a; font-size: 10px; }
.callout { padding: 13px 14px; border: 1px solid #e3ede7; border-radius: 12px; color: #56665d; background: #f5faf7; line-height: 1.8; font-size: 11px; }
.callout strong { color: #2c634f; }
.callout.warning { border-color: #efe2c7; color: #74613b; background: #fffbf3; }
.callout.warning strong { color: #856225; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 13px; color: #7d8983; background: #f8faf8; text-align: right; font-size: 10px; font-weight: 600; }
td { padding: 12px 13px; border-top: 1px solid #eff2f0; color: #45534c; vertical-align: middle; font-size: 11px; }
tr:hover td { background: #fcfdfc; }
.table-primary { color: #2c3933; font-weight: 600; }
.table-sub { display: block; max-width: 220px; margin-top: 3px; overflow: hidden; color: #97a19c; text-overflow: ellipsis; font-size: 10px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 7px; color: #596960; background: #f0f3f1; font-size: 10px; }
.badge.live { color: #317552; background: #e9f5ed; }
.badge.scheduled { color: #987024; background: #fbf3e5; }
.badge.ended { color: #718078; background: #eef1ef; }
.badge.private { color: #76608c; background: #f2eef7; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.search-box { position: relative; min-width: 200px; flex: 1; }
.search-box input, .filter-select { width: 100%; height: 39px; padding: 0 12px; border: 1px solid #e0e7e2; border-radius: 9px; outline: none; color: #46554d; background: #fff; font-size: 11px; }
.search-box input:focus, .filter-select:focus { border-color: #8db7a4; box-shadow: 0 0 0 3px rgba(46,126,103,.08); }
.filter-select { width: auto; min-width: 135px; }
.report-grid { display: grid; gap: 12px; }
.report-card { padding: 16px 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(39,72,58,.02); }
.report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.report-reason { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.report-reason-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #a34f44; background: #fbefeb; }
.report-date { color: #929d97; font-size: 10px; white-space: nowrap; }
.report-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 15px; margin: 12px 0 10px; color: #74817a; font-size: 10px; }
.report-meta span { display: inline-flex; align-items: center; gap: 4px; }
.report-detail { margin: 0; padding: 10px 12px; border-radius: 9px; color: #59665f; background: #f8faf8; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.report-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 45px 18px; border: 1px dashed #dce5df; border-radius: 13px; color: #7b8881; background: rgba(255,255,255,.55); text-align: center; }
.empty-state strong { color: #526159; font-size: 13px; }
.empty-state span { font-size: 11px; }
.unavailable-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 15px; }
.unavailable-card { padding: 16px; border: 1px solid #e9ece9; border-radius: 13px; background: #fff; }
.unavailable-card .unavailable-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 9px; color: #87918c; background: #f1f3f2; }
.unavailable-card strong { display: block; font-size: 12px; }
.unavailable-card p { margin: 5px 0 0; color: #87918b; line-height: 1.7; font-size: 10px; }
.ops-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.ops-card { min-height: 140px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.ops-card h3 { margin: 0; font-size: 13px; }
.ops-value { margin-top: 17px; color: var(--green-dark); font-size: 17px; font-weight: 700; }
.ops-card p { margin: 7px 0 0; color: #87938c; line-height: 1.7; font-size: 10px; }
.inline-code { direction: ltr; display: inline-block; overflow-wrap: anywhere; color: #64746b; font-family: ui-monospace,monospace; font-size: 10px; }
.footer-note { display: flex; justify-content: space-between; padding: 12px 32px 17px; color: #9aa49e; font-size: 10px; }
.toast { position: fixed; z-index: 20; right: 50%; bottom: 20px; max-width: min(92vw,480px); padding: 12px 16px; border: 1px solid #dce9e1; border-radius: 11px; color: #315847; background: #f6fbf8; box-shadow: var(--shadow); opacity: 0; transform: translate(50%, 12px); pointer-events: none; transition: .22s; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(50%, 0); }
.toast.error { border-color: #f0dada; color: #98494a; background: #fff8f8; }
.loading-line { height: 11px; width: 100%; border-radius: 99px; background: linear-gradient(90deg,#edf2ee,#f8faf8,#edf2ee); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .two-column { grid-template-columns: 1fr; }
  .sidebar { width: 225px; }
  .main-content { width: calc(100% - 225px); margin-right: 225px; }
  .page-content { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 760px) {
  .sidebar { width: 260px; transform: translateX(105%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: -20px 0 45px rgba(32,53,43,.12); }
  .main-content { width: 100%; margin-right: 0; }
  .topbar { min-height: 60px; padding: 0 14px; }
  .mobile-menu { display: grid; }
  .breadcrumb { margin-left: auto; }
  .top-actions { gap: 7px; }
  .top-actions .status-chip { display: none; }
  .top-actions .button-small { width: 35px; min-width: 35px; overflow: hidden; padding: 0; color: transparent; font-size: 0; }
  .top-actions .button-small span { color: var(--green); font-size: 19px; }
  .page-content { padding: 23px 14px 28px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .page-heading h1 { font-size: 22px; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 108px; padding: 13px; }
  .stat-top { font-size: 10px; }
  .stat-value { font-size: 23px; }
  .panel-head { padding-right: 14px; padding-left: 14px; }
  .panel-body { padding-right: 14px; padding-left: 14px; }
  .ops-grid { grid-template-columns: 1fr; }
  .unavailable-grid { grid-template-columns: 1fr; }
  .report-card { padding: 13px; }
  .report-top { flex-direction: column; gap: 6px; }
  .report-bottom { align-items: flex-start; flex-direction: column; }
  .footer-note { padding: 12px 14px 17px; }
  .login-card { padding: 32px 22px 25px; border-radius: 19px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-top { align-items: flex-start; gap: 5px; }
  .stat-icon { width: 27px; height: 27px; }
  .nav-item { min-height: 44px; }
  .page-heading p { font-size: 11px; }
}

.notice.success { border-color: #d9ebdf; color: #34654c; background: #f3faf5; }
