/* Zoomlly Corp - Intranet styles */
:root {
  --in-bg: #f4f6fb;
  --in-panel: #ffffff;
  --in-line: #e3e8f1;
  --in-ink: #0b1d3a;
  --in-muted: #5a6b85;
  --in-brand: #0b5fff;
  --in-brand-2: #1ec8ff;
  --in-accent: #ff8a3d;
  --in-ok: #16a34a;
  --in-warn: #d97706;
  --in-danger: #dc2626;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--in-bg); color: var(--in-ink); line-height: 1.5;
}
a { color: var(--in-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* App shell */
.app {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas: "side top" "side main";
  min-height: 100vh;
}

.in-top {
  grid-area: top;
  background: #fff;
  border-bottom: 1px solid var(--in-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  position: sticky; top: 0; z-index: 5;
}
.in-search {
  flex: 1; max-width: 460px; margin: 0 18px;
  display: flex; align-items: center; gap: 8px;
  background: var(--in-bg); border: 1px solid var(--in-line); border-radius: 8px;
  padding: 6px 10px;
}
.in-search input { flex: 1; border: none; outline: none; background: transparent; font-size: .95rem; }
.in-top-actions { display: flex; align-items: center; gap: 12px; }
.in-pill {
  background: #eaf1fb; color: var(--in-brand); padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}

.in-user {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px;
}
.in-user:hover { background: var(--in-bg); cursor: pointer; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--in-brand), var(--in-brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.in-user .meta { display: flex; flex-direction: column; line-height: 1.1; }
.in-user .meta .nm { font-weight: 600; font-size: .9rem; }
.in-user .meta .rl { color: var(--in-muted); font-size: .78rem; }

/* Sidebar */
.in-side {
  grid-area: side;
  background: #0b1d3a;
  color: #cfd8e8;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.in-side .brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 10px 6px 16px; border-bottom: 1px solid #1c3056;
}
.in-side .brand .brand-mark { height: 36px; width: auto; max-width: 100%; }
.in-side .brand .env-tag {
  color: #7fb6ff; font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; padding-left: 4px;
}

.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-group .lbl { color: #7990b8; font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; padding: 4px 10px 6px; }
.side-link {
  color: #cfd8e8; padding: 8px 10px; border-radius: 8px; font-size: .92rem;
  display: flex; align-items: center; gap: 10px;
}
.side-link:hover { background: #142a52; color: #fff; text-decoration: none; }
.side-link.active { background: linear-gradient(135deg, var(--in-brand), #0a4ed1); color: #fff; }
.side-link .glyph {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, #0b5fff 0%, #1ec8ff 100%);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(127,212,255,.25), inset 0 0 0 1px rgba(255,255,255,.12);
  transition: box-shadow .2s ease, transform .2s ease;
}
.side-link .glyph svg { width: 16px; height: 16px; display: block; }
.side-link:hover .glyph {
  box-shadow: 0 0 0 1px rgba(127,212,255,.55), 0 0 12px -2px rgba(30,200,255,.5),
              inset 0 0 0 1px rgba(255,255,255,.18);
}
.side-link.active .glyph {
  background: rgba(255,255,255,.22);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.2);
}

.side-foot { margin-top: auto; padding: 8px; border-top: 1px solid #1c3056; }
.side-foot .logout {
  display: block; text-align: center; padding: 8px 12px; border-radius: 8px;
  background: #142a52; color: #fff; font-weight: 600; font-size: .85rem;
}
.side-foot .logout:hover { background: #1c3a73; text-decoration: none; }

/* Main */
.in-main { grid-area: main; padding: 24px; }
.in-main h1 { margin: 0 0 4px; font-size: 1.7rem; }
.in-main .sub { color: var(--in-muted); margin-bottom: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--in-panel); border: 1px solid var(--in-line); border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.kpi .label { color: var(--in-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.kpi .value { font-size: 1.6rem; font-weight: 700; color: var(--in-ink); }
.kpi .delta { font-size: .82rem; color: var(--in-ok); }
.kpi .delta.neg { color: var(--in-danger); }

.row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.panel {
  background: var(--in-panel); border: 1px solid var(--in-line); border-radius: 12px;
  padding: 18px;
}
.panel h2 { font-size: 1.05rem; margin: 0 0 12px; }
.panel .panel-foot { margin-top: 12px; font-size: .85rem; }

.feed-item {
  display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--in-line);
}
.feed-item:last-child { border-bottom: none; }
.feed-item .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--in-brand); margin-top: 6px; flex-shrink: 0;
}
.feed-item.warn .dot { background: var(--in-warn); }
.feed-item.ok .dot { background: var(--in-ok); }
.feed-item .body { flex: 1; }
.feed-item .body .ttl { font-weight: 600; }
.feed-item .body .meta { color: var(--in-muted); font-size: .82rem; }

.in-table {
  width: 100%; border-collapse: collapse; background: var(--in-panel);
  border: 1px solid var(--in-line); border-radius: 10px; overflow: hidden;
}
.in-table th, .in-table td { padding: 10px 12px; border-bottom: 1px solid var(--in-line); text-align: left; font-size: .92rem; }
.in-table th { background: var(--in-bg); color: var(--in-ink); font-size: .82rem; }
.in-table tr:last-child td { border-bottom: none; }
.in-table .pill {
  font-size: .76rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; display: inline-block;
}
.pill.ok { background: #e6f6ec; color: var(--in-ok); }
.pill.warn { background: #fdf1e0; color: var(--in-warn); }
.pill.danger { background: #fdecec; color: var(--in-danger); }
.pill.info { background: #eaf1fb; color: var(--in-brand); }

.btn {
  display: inline-block; padding: 8px 14px; border-radius: 8px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: .9rem;
}
.btn-primary { background: var(--in-brand); color: #fff; }
.btn-primary:hover { background: #0a4ed1; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--in-ink); border-color: var(--in-line); }
.btn-ghost:hover { border-color: var(--in-brand); color: var(--in-brand); text-decoration: none; }

.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.person {
  background: var(--in-panel); border: 1px solid var(--in-line); border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.person .avatar.lg { width: 44px; height: 44px; }
.person .name { font-weight: 700; }
.person .title { color: var(--in-muted); font-size: .85rem; }
.person .meta { font-size: .82rem; color: var(--in-muted); margin-top: 4px; }

.tasklist { list-style: none; padding: 0; margin: 0; }
.tasklist li {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--in-line); font-size: .92rem;
}
.tasklist li:last-child { border-bottom: none; }
.tasklist input[type="checkbox"] { transform: scale(1.1); }

.welcome-banner {
  background: linear-gradient(120deg, #0b1d3a 0%, #11305f 100%);
  color: #fff; padding: 22px; border-radius: 14px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.welcome-banner h2 { color: #fff; margin: 0 0 6px; font-size: 1.2rem; }
.welcome-banner p { margin: 0; color: #cfd8e8; font-size: .95rem; }
.welcome-banner .now { font-size: .8rem; color: #9fb2d4; margin-top: 4px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .row-2, .row-3, .directory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "top" "main" "side"; }
  .in-side { position: static; height: auto; }
}
