/* panel by FUDEX (فيوبانل) — فوق styles.css: شبكة أدوات على غرار cPanel، مقاييس دائرية، مدير ملفات */
.fp-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 90px; }
.modes { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-inline-start: 8px; }
.modes a { text-decoration: none; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.modes a.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }

.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); margin-bottom: 12px; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--coral); }
.crumbs .ico { width: 14px; height: 14px; transform: scaleX(-1); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: var(--radius); }
.hero h1 { margin: 0; font-size: 24px; }
.hero .sub { color: #c9d0ea; font-size: 13.5px; margin-top: 2px; }
.hero .pill { background: rgba(255,255,255,.12); color: #fff; }
.hero .pill.ok { background: rgba(18,163,122,.25); color: #8ff0cf; }
.hero .pill.bad { background: rgba(217,58,58,.3); color: #ffb3b3; }
.gauges { display: flex; gap: 14px; }
.gauge { width: 76px; text-align: center; font-size: 12px; color: #c9d0ea; }
.gauge svg { width: 64px; height: 64px; display: block; margin: 0 auto 2px; }
.gauge .n { font-size: 15px; font-weight: 800; fill: #fff; }

.tgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tile-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile-group h2 { font-size: 14.5px; margin: 0 0 10px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile-group .tile { background: var(--surface-2); border-color: transparent; }
.tile-group .tile:hover { border-color: var(--coral); background: var(--surface); }
.fp-main .card-h { flex-wrap: wrap; row-gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; position: relative; }
.tile:hover { border-color: var(--coral); transform: translateY(-1px); }
.tile .ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.tile .ti .ico { width: 21px; height: 21px; }
.tile b { font-size: 14.5px; }
.tile span { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.tile .cnt { position: absolute; inset-inline-end: 12px; top: 12px; font-size: 12px; font-weight: 800; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 0 8px; }
.tile.navy .ti { background: var(--info-soft); color: var(--info); }
.tile.warn .ti { background: var(--warn-soft); color: var(--warn); }

.srv-card { display: block; text-decoration: none; padding: 16px; }
.srv-card:hover { border-color: var(--coral); }
.srv-card .meters { display: grid; gap: 5px; margin-top: 12px; }

.alerts { display: grid; gap: 8px; margin-bottom: 16px; }

/* مدير الملفات */
.fm-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.fm-path { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; direction: ltr; font-family: ui-monospace, Menlo, monospace; font-size: 13px;
  background: var(--surface-2); border-radius: 10px; padding: 6px 10px; flex: 1 1 260px; min-width: 0; }
.fm-path a { text-decoration: none; color: var(--text-2); padding: 0 2px; }
.fm-path a:hover { color: var(--coral); }
.fm { width: 100%; border-collapse: collapse; }
.fm td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.fm tr:hover td { background: var(--surface-2); }
.fm .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fm .nm a, .fm .nm span { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.fm .nm .ico { color: var(--text-3); }
.fm .nm .ico.dir { color: var(--warn); }
.fm .acts { white-space: nowrap; text-align: end; }
.fm .acts .btn { padding: 4px 8px; min-height: 30px; }
.fm .sz, .fm .mt, .fm .pm { color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.editor { width: 100%; min-height: 55vh; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.55;
  direction: ltr; text-align: left; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--text); resize: vertical; tab-size: 4; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--text-3); margin-top: 10px; }
.drop.on { border-color: var(--coral); background: var(--coral-soft); color: var(--coral); }
.logbox { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all;
  background: #0b1128; color: #d6dcf5; border-radius: 10px; padding: 12px; max-height: 60vh; overflow: auto; }
.working { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.working::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--coral); animation: fpspin .8s linear infinite; }
@keyframes fpspin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .modes { display: none; }
  .hero { grid-template-columns: 1fr; }
  .gauges { justify-content: space-between; }
  .fm .mt, .fm .pm { display: none; }
  .fm td { padding: 8px 6px; }
  .fm .acts .btn { padding: 4px 6px; }
  .fm .acts .btn .tiny { display: none; }
  .tgroups { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-main { padding-bottom: 40px; }
}
