@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap");
/* ==========================================================================
   Σύγχρονη εμφάνιση (επικαλύπτει το style.css — για επαναφορά αρκεί να αφαιρεθεί αυτό το αρχείο)
   ========================================================================== */
@media screen {
html[data-theme="dark"] {
  --bg: #0d1014; --card: #151a21; --text: #e8ebf0; --muted: #8e98a8; --line: #232a34;
  --accent: #6ea8ff; --accent-bg: rgba(110,168,255,.14); --ok: #5fd39a; --ok-bg: rgba(95,211,154,.12);
  --warn: #f3c260; --warn-bg: rgba(243,194,96,.12); --err: #ff8a8a; --err-bg: rgba(255,138,138,.12);
  --hdr-bg: rgba(13,16,20,.78); --field: #0f1318; --field-line: #2b333f; --head: #121820; --head-text: #8e98a8;
  --line2: #1d232c; --foot: #121820; --grp: #18202b; --hover: #19202a; --dim: #5d6675; --full: #121a17;
  --role-bg: #1f2630; --l1-bg: rgba(95,211,154,.13); --l1: #7fe0b1; --l2-bg: rgba(255,153,102,.13); --l2: #ffb38a;
  --tb-bg: rgba(160,140,255,.15); --tb: #c3b6ff; --pe-bg: rgba(255,120,170,.14); --pe: #ff9cc2;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  --glow: 0 0 0 3px rgba(110,168,255,.25);
}
}
html[data-theme="light"], :root {
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --glow: 0 0 0 3px rgba(31,95,153,.18);
}
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14.5px; letter-spacing: -.005em;
       font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
html[data-theme="dark"] body { background:
    radial-gradient(1200px 500px at 10% -10%, rgba(110,168,255,.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(160,140,255,.06), transparent 60%), var(--bg);
  background-attachment: fixed; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 18px; }
h1 small { font-size: 14px; font-weight: 500; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
td, .tile b { font-variant-numeric: tabular-nums; }

/* κεφαλίδα: «γυάλινη», χωρίς βαρύ μπλε μπλοκ */
header.top { background: var(--hdr-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); padding: 10px 22px; gap: 22px; }
html[data-theme="light"] header.top { background: #1d3b5c; border-bottom: 0; }
header.top .brand { font-size: 15.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
header.top .brand::before { content: ""; width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  background: linear-gradient(135deg, #6ea8ff, #a08cff); box-shadow: 0 0 14px rgba(110,168,255,.45); }
header.top nav a { color: #aeb8c7; font-weight: 500; padding: 6px 11px; border-radius: 8px; transition: background .15s, color .15s; }
html[data-theme="light"] header.top nav a { color: #dbe7f3; }
header.top nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
header.top nav a.on, html[data-theme="dark"] header.top nav a.on { background: rgba(110,168,255,.16); color: #cfe0ff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(110,168,255,.35); }
html[data-theme="light"] header.top nav a.on { background: #fff; color: #1d3b5c; box-shadow: none; }
header.top .user { color: #aeb8c7; }
header.top select { background: rgba(255,255,255,.06); color: #e8ebf0; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 4px 8px; }
.theme-btn { border-radius: 8px; border-color: rgba(255,255,255,.18); padding: 4px 10px; }
main { padding: 26px 28px 70px; }

/* κάρτες, φίλτρα, πλακίδια */
.card, .filters, .tile { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow); }
.card { padding: 18px 20px; margin-bottom: 18px; }
.filters { padding: 14px 16px; margin-bottom: 18px; }
.tiles { gap: 14px; margin-bottom: 18px; }
.tile { padding: 16px 18px; position: relative; overflow: hidden; }
.tile b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 2px; }
.tile span { font-size: 13px; }
html[data-theme="dark"] .tile::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #6ea8ff, #a08cff); opacity: .7; }

/* πεδία και κουμπιά */
input, select, textarea { border-radius: 9px; padding: 8px 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.form label { font-size: 12px; font-weight: 500; letter-spacing: .01em; gap: 5px; }
.btn { border-radius: 9px; padding: 8px 14px; font-weight: 550; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 4px 10px; border-radius: 7px; font-size: 12.5px; }
html[data-theme="dark"] .btn { background: #1a2029; border-color: #2b333f; }
html[data-theme="dark"] .btn:hover { background: #202733; border-color: #3a4556; }
.btn.primary, html[data-theme="dark"] .btn.primary { background: linear-gradient(180deg, #7db1ff, #5a95f5); border-color: transparent; color: #08101d;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(90,149,245,.28); }
html[data-theme="light"] .btn.primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(31,95,153,.25); }
.btn.primary:hover { filter: brightness(1.07); }

/* πίνακες: στρογγυλεμένο πλαίσιο, ήπια επικεφαλίδα */
table.grid { border: 1px solid var(--line); border-radius: 14px; border-collapse: separate; border-spacing: 0; box-shadow: var(--shadow); }
table.grid thead tr:first-child th:first-child { border-top-left-radius: 13px; } table.grid thead tr:first-child th:last-child { border-top-right-radius: 13px; }
table.grid tbody tr:last-child td:first-child { border-bottom-left-radius: 13px; } table.grid tbody tr:last-child td:last-child { border-bottom-right-radius: 13px; }
table.grid th, table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line2); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid thead th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
table.grid tr.grp td { font-size: 12.5px; letter-spacing: .02em; color: var(--accent); background: var(--grp); }
table.grid tr:hover td { background: var(--hover); }
@media (max-width: 860px) { table.grid { border-radius: 12px; } }

/* μηνύματα, ετικέτες */
.msg { border-radius: 12px; padding: 11px 14px; border: 1px solid transparent; }
html[data-theme="dark"] .msg.ok { border-color: rgba(95,211,154,.25); }
html[data-theme="dark"] .msg.warn { border-color: rgba(243,194,96,.25); }
html[data-theme="dark"] .msg.err { border-color: rgba(255,138,138,.25); }
.chip { font-weight: 550; padding: 4px 11px; }
.role, .badge { border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.bar { background: var(--line); } .bar > div { background: linear-gradient(90deg, #5fd39a, #6ea8ff); border-radius: 99px; }

/* κύλιση */
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #262e3a; border-radius: 99px; border: 2px solid var(--bg); }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
@media print { header.top { backdrop-filter: none; } .card, .tile, table.grid { box-shadow: none; } body { background: #fff !important; } }

/* ---------- μενού σε ομάδες (υπολογιστής: αναδυόμενες λίστες) ---------- */
header.top nav.gnav { align-items: center; }
header.top .grp { position: relative; }
header.top .grp-btn { background: none; border: 0; color: #aeb8c7; font: inherit; font-weight: 500; padding: 6px 11px; border-radius: 8px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
html[data-theme="light"] header.top .grp-btn { color: #dbe7f3; }
header.top .grp-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .15s; }
header.top .grp.open > .grp-btn::after { transform: translateY(1px) rotate(225deg); }
header.top .grp-btn:hover, header.top .grp.open > .grp-btn { background: rgba(255,255,255,.07); color: #fff; }
header.top .grp.has-on > .grp-btn { background: rgba(110,168,255,.16); color: #cfe0ff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(110,168,255,.35); }
html[data-theme="light"] header.top .grp.has-on > .grp-btn { background: #fff; color: #1d3b5c; box-shadow: none; }
header.top .grp-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 30;
  flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: #161d29; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 34px rgba(0,0,0,.45); }
html[data-theme="light"] header.top .grp-menu { background: #1d3b5c; }
header.top .grp.open > .grp-menu { display: flex; }
header.top .grp-menu a { white-space: nowrap; padding: 8px 12px; }
@media (min-width: 861px) {
  header.top nav.gnav > a, header.top .grp-btn { padding: 6px 9px; }
}
@media (min-width: 861px) and (max-width: 1400px) {
  header.top, header.top .menu { gap: 16px; }
  header.top .brand span { display: none; }
  header.top .user { gap: 8px; }
  header.top .user > span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- κινητό: συρτάρι από αριστερά ---------- */
@media (max-width: 860px) {
  header.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: #10161f; }
  html[data-theme="light"] header.top { background: #1d3b5c; }
  header.top .menu-btn { order: -1; max-width: 64vw; }
  header.top .menu-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  header.top .menu { display: flex; position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: min(86vw, 330px);
    max-height: none; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: #10161f; border-right: 1px solid rgba(255,255,255,.1); box-shadow: 8px 0 30px rgba(0,0,0,.45);
    padding: 14px 12px 24px; z-index: 2; transform: translateX(-105%); visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s; }
  html[data-theme="light"] header.top .menu { background: #1d3b5c; }
  header.top.open .menu { transform: none; visibility: visible; transition: transform .22s ease; }
  header.top .menu::before { content: "Μενού"; display: block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
    color: #8b97a8; padding: 4px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; }
  header.top::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1; opacity: 0; pointer-events: none; transition: opacity .2s; }
  header.top.open::before { opacity: 1; pointer-events: auto; }
  header.top nav.gnav { align-items: stretch; }
  header.top .grp-btn { width: 100%; justify-content: space-between; padding: 11px 12px; font-size: 15px; }
  header.top .grp-menu { position: static; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid rgba(110,168,255,.35);
    border-radius: 0; background: none; margin: 2px 0 6px 14px; padding: 0 0 0 6px; }
  html[data-theme="light"] header.top .grp-menu { background: none; }
  header.top .grp-menu a { white-space: normal; padding: 10px 12px; }
}

/* κουμπί εξόδου: κόκκινο· στο κινητό τελευταίο στοιχείο του μενού, σε όλο το πλάτος */
header.top a.logout { background: #d64545; color: #fff !important; border-radius: 8px; padding: 5px 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
header.top a.logout:hover, header.top a.logout:focus-visible { background: #b83232; }
@media (max-width: 860px) {
  header.top .menu { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  header.top .user { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
  header.top .user > form, header.top .user select, header.top .user .theme-btn { width: 100%; }
  header.top .user > a:not(.logout) { padding: 4px 2px; }
  header.top a.logout { order: 99; display: block; text-align: center; padding: 12px; font-size: 16px; margin-top: 6px; }
}

/* ==========================================================================
   Πλαϊνή μπάρα (υπολογιστής ≥ 1000px): το μενού μόνιμα αριστερά, ομάδες που ανοιγοκλείνουν
   ========================================================================== */
.nv-ico { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
@media screen and (min-width: 1000px) {
  body:not(.print-mode) main { margin-left: 236px; max-width: 1500px; }
  header.top { position: fixed; top: 0; left: 0; bottom: 0; width: 236px; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    gap: 14px; padding: 16px 12px 14px; overflow-y: auto; overscroll-behavior: contain; z-index: 20;
    background: #0a0d11; border-right: 1px solid var(--line); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-theme="light"] header.top { background: #17324f; }
  header.top .brand { padding: 0 6px; font-size: 15px; }
  header.top .brand span { display: block; font-size: 11.5px; margin: 2px 0 0; opacity: .6; font-weight: 500; }
  header.top .menu-btn { display: none; }
  header.top .menu { display: flex; flex-direction: column; align-items: stretch; flex: 1; gap: 14px; flex-wrap: nowrap; }
  header.top nav, header.top nav.gnav { flex-direction: column; align-items: stretch; gap: 1px; flex: 0 0 auto; flex-wrap: nowrap; }
  header.top nav a, header.top nav.gnav > a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
  header.top nav a.on, html[data-theme="dark"] header.top nav a.on { background: rgba(110,168,255,.16); color: #e3edff; box-shadow: none; }
  header.top nav a.on .nv-ico { opacity: 1; color: #8fbcff; }
  header.top .grp { position: static; }
  header.top .grp-btn, header.top .grp.has-on > .grp-btn, header.top .grp-btn:hover, header.top .grp.open > .grp-btn {
    width: 100%; justify-content: space-between; background: none; box-shadow: none; color: #6f7a8a; font-size: 11px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; padding: 12px 10px 5px; border-radius: 0; }
  header.top .grp-btn:hover { color: #aeb8c7; }
  header.top .grp-btn::after, header.top .grp.open > .grp-btn::after { transform: translateY(1px) rotate(225deg); }
  header.top .grp.shut > .grp-btn::after { transform: translateY(-2px) rotate(45deg); }
  header.top .grp-menu, header.top .grp.open > .grp-menu { display: flex; position: static; flex-direction: column; gap: 1px; min-width: 0;
    padding: 0; margin: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  html[data-theme="light"] header.top .grp-menu { background: none; }
  header.top .grp.shut > .grp-menu { display: none; }
  header.top .grp.shut.has-on > .grp-btn { color: #8fbcff; }
  header.top .grp-menu a { white-space: normal; padding: 7px 10px; }
  header.top .user { margin-top: auto; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
  header.top .user > form, header.top .user select, header.top .user .theme-btn { width: 100%; }
  header.top .user > a:not(.logout) { padding: 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  header.top a.logout { text-align: center; padding: 7px 12px; }
}
@media (max-width: 999px) { header.top nav a .nv-ico { vertical-align: -3px; margin-right: 8px; } }

/* σήμα εφαρμογής */
.brand .app-logo{width:28px;height:28px;flex:none;vertical-align:middle;margin-right:8px;display:inline-block}
.logo-pick{display:inline-block;position:relative;vertical-align:middle}
.logo-pick>summary{list-style:none;cursor:pointer;display:inline-block}
.logo-pick>summary::-webkit-details-marker{display:none}
.logo-menu{position:absolute;left:0;top:34px;z-index:50;display:flex;gap:6px;padding:8px;border-radius:10px;background:#1f2229;border:1px solid #3a3e47;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.logo-menu button{background:none;border:2px solid transparent;border-radius:12px;padding:2px;cursor:pointer;line-height:0}
.logo-menu button.on{border-color:#FAC775}
.logo-menu .app-logo{margin:0;width:32px;height:32px}
@media (max-width:999px){.logo-menu{left:auto;right:-60px}}
header.top .brand::before{content:none;display:none}


/* ---------- κινητό: οι ομάδες του μενού ανοίγουν πλάγια (πάνελ που καλύπτει το μενού), όχι προς τα κάτω ---------- */
header.top .grp-back { display: none; }
@media (max-width: 860px) {
  header.top .grp-btn::after { transform: rotate(-45deg); }
  header.top .grp.open > .grp-btn::after { transform: rotate(-45deg); }
  header.top .grp.open > .grp-menu {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 5;
    width: min(86vw, 330px); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #10161f; border: 0; border-right: 1px solid rgba(255,255,255,.1); border-radius: 0;
    box-shadow: 8px 0 30px rgba(0,0,0,.45);
    animation: grpIn .2s ease;
  }
  html[data-theme="light"] header.top .grp.open > .grp-menu { background: #1d3b5c; }
  header.top .grp-back {
    display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.1);
    color: #cfe0ff; font: inherit; font-size: 15px; font-weight: 700; padding: 8px 12px 12px; margin-bottom: 6px; cursor: pointer;
  }
  @keyframes grpIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- πιο έντονα βελάκια στις ομάδες του μενού ---------- */
header.top .grp-btn::after { width: 6px; height: 6px; border-right-width: 2.5px; border-bottom-width: 2.5px; opacity: 1; margin-left: 8px; flex: 0 0 auto; }
@media (max-width: 860px) { header.top .grp-btn::after { border-color: #e6eefa; } }
@media screen and (min-width: 1000px) { header.top .grp-btn::after { border-color: #e6eefa; } }

/* ---------- πλαϊνή στήλη: χωρίς οριζόντια κύλιση, το «2ο ΕΠΑΛ Κομοτηνής» σε δεύτερη γραμμή ---------- */
@media screen and (min-width: 1000px) {
  header.top { overflow-x: hidden; }
  header.top .brand { flex-wrap: wrap; row-gap: 0; min-width: 0; }
  header.top .brand span { flex: 0 0 calc(100% - 44px); margin: 2px 0 0 44px; white-space: normal; }
  header.top .menu, header.top nav, header.top .grp, header.top .grp-menu, header.top .user { min-width: 0; max-width: 100%; }
}
