/* ===================================================
   STAFF.EXE — FUNKY EMPLOYEE PORTAL  (shared styles)
   Palette: #0f0f1f | #faf7f0 | #FFD60A | #b5179e | #06d6a0
=================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: 'Space Grotesk', sans-serif;
  background: #faf7f0;
  color: #0f0f1f;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ======== LOGIN PAGE ======== */
.login-body { background: #0f0f1f; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }

.login-wrap {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 60rem;
  flex-wrap: wrap;
}

.login-card {
  background: #faf7f0;
  border: 5px solid #FFD60A;
  box-shadow: 10px 10px 0 #FFD60A;
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 26rem;
  flex-shrink: 0;
}

.login-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.login-sub   { font-size: .85rem; color: #555; font-weight: 500; margin-bottom: 1.75rem; line-height: 1.5; }
.login-form  { display: flex; flex-direction: column; gap: .75rem; }

.login-hints {
  margin-top: 1.75rem;
  padding: 1rem;
  background: #0f0f1f;
  border-radius: .75rem;
  border: 3px solid #FFD60A;
}
.hint-title { font-size: .65rem; font-weight: 900; color: #FFD60A; letter-spacing: .15em; margin-bottom: .6rem; }
.hint-row   { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; font-size: .8rem; color: #ccc; }
.hint-row:last-child { margin-bottom: 0; }
.hint-role  { font-size: .6rem; font-weight: 900; padding: .15rem .5rem; border-radius: 999px; letter-spacing: .08em; flex-shrink: 0; }
.hint-role--admin { background: #b5179e; color: #fff; }
.hint-role--emp   { background: #06d6a0; color: #0f0f1f; }
.hint-row code { background: rgba(255,255,255,.1); padding: .1rem .4rem; border-radius: .25rem; font-size: .78rem; }

/* Deco floating cards */
.login-deco { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; }
.deco-card  {
  background: #fff;
  border: 4px solid #FFD60A;
  box-shadow: 5px 5px 0 #FFD60A;
  border-radius: 1rem;
  padding: .9rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f0f1f;
  white-space: nowrap;
}
.deco-card--1 { transform: rotate(-3deg); }
.deco-card--2 { transform: rotate(2deg);  background: #b5179e; color: #fff; border-color: #fff; box-shadow: 5px 5px 0 #fff; }
.deco-card--3 { transform: rotate(-1.5deg); background: #FFD60A; }
.deco-card--4 { transform: rotate(3deg); background: #06d6a0; }

/* ======== HEADER ======== */
.header {
  background: #0f0f1f;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 8px solid #FFD60A;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left  { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.header-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.brand     { font-size: 2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.brand-sub { font-size: .75rem; color: rgba(255,255,255,.4); font-weight: 500; }

.beta-badge {
  background: #b5179e;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .25rem .65rem;
  border-radius: 999px;
  letter-spacing: .1em;
  border: 2px solid #fff;
  box-shadow: 2px 2px 0 #fff;
  transform: rotate(-5deg);
  display: inline-block;
}

.role-chip         { font-size: .7rem; font-weight: 900; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .1em; text-transform: uppercase; border: 2px solid currentColor; }
.role-chip--admin  { color: #FFD60A; border-color: #FFD60A; }
.role-chip--emp    { color: #06d6a0; border-color: #06d6a0; }

.header-stat  { display: flex; align-items: center; gap: .4rem; }
.stat-num     { font-size: 1.3rem; font-weight: 800; }
.stat-lbl     { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.header-divider { width: 1px; height: 2rem; background: rgba(255,255,255,.15); }

.header-user { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.8); }

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #FFD60A;
  color: #0f0f1f;
  border: 4px solid #0f0f1f;
  padding: .65rem 1.25rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0f0f1f;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
  white-space: nowrap;
}
.btn-upload:hover  { transform: translate(2px,2px); box-shadow: 2px 2px 0 #0f0f1f; }
.btn-upload:active { transform: translate(4px,4px); box-shadow: none; }

.btn-logout {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 2px solid rgba(255,255,255,.3);
  padding: .55rem 1.1rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  text-decoration: none;
  border-radius: .4rem;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-logout:hover { color: #fff; border-color: #fff; }

/* ======== MAIN LAYOUT ======== */
.main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ======== TABS ======== */
.tabs { display: flex; gap: .75rem; flex-wrap: wrap; border-bottom: 4px solid #0f0f1f; padding-bottom: 1rem; margin-bottom: 2rem; }

.tab {
  display: inline-block;
  padding: .65rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  color: #0f0f1f;
  background: #fff;
  border: 4px solid #0f0f1f;
  box-shadow: 4px 4px 0 #0f0f1f;
  transition: background .15s, transform .1s, box-shadow .1s;
  white-space: nowrap;
}
.tab:hover     { background: #FFD60A; }
.tab--active   { background: #0f0f1f; color: #faf7f0; transform: translate(2px,2px); box-shadow: none; }

/* ======== STAT CARDS ======== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border: 4px solid #0f0f1f;
  border-radius: 1.25rem;
  box-shadow: 8px 8px 0 #0f0f1f;
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 #0f0f1f; }

.stat-card--yellow { background: #FFD60A; }
.stat-card--purple { background: #b5179e; color: #fff; }
.stat-card--green  { background: #06d6a0; }
.stat-card--dark   { background: #0f0f1f; }

.stat-card__icon   { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; display: block; }
.stat-card__number { font-size: 4.5rem; font-weight: 900; line-height: 1; margin-bottom: .35rem; letter-spacing: -.04em; }
.stat-card__label  { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; border-top: 4px solid currentColor; padding-top: .6rem; margin-top: .75rem; display: block; }
.stat-card__label--invert { background: #FFD60A; color: #0f0f1f; padding: .15rem .4rem; }

/* ======== LIST PANEL ======== */
.list-panel {
  background: #fff;
  border: 4px solid #0f0f1f;
  border-radius: 1.5rem;
  box-shadow: 8px 8px 0 #0f0f1f;
  overflow: hidden;
}

.list-panel__header {
  background: #0f0f1f;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.list-panel__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.live-badge {
  background: #b5179e;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .3rem .8rem;
  border-radius: 999px;
  letter-spacing: .08em;
  border: 2px solid #fff;
  animation: pulseLive 2s ease-in-out infinite;
}
@keyframes pulseLive { 0%,100%{ opacity:1 } 50%{ opacity:.6 } }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 3px solid #0f0f1f;
  transition: background .15s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover      { background: #faf7f0; }
.list-row--me        { background: rgba(255,214,10,.08); }

.list-row__left  { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; min-width: 0; }
.list-row__right { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; flex-shrink: 0; }

.avatar {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 50%;
  border: 3px solid #0f0f1f;
  box-shadow: 2px 2px 0 #0f0f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.list-row__info { min-width: 0; }
.list-row__name {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.list-row__task {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: #555;
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Chips / Badges ---- */
.time-chip { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #666; border: 2px solid #ccc; padding: .3rem .7rem; border-radius: .4rem; white-space: nowrap; }

.priority-badge {
  display: inline-flex;
  padding: .3rem .8rem;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid #0f0f1f;
  box-shadow: 2px 2px 0 #0f0f1f;
  letter-spacing: .06em;
  white-space: nowrap;
}
.badge--hot { background: #FFD60A; }
.badge--med { background: #00f5d4; }
.badge--low { background: #e5e5e5; }

.status-badge {
  display: inline-block;
  padding: .35rem .9rem;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 3px solid #0f0f1f;
  box-shadow: 3px 3px 0 #0f0f1f;
  text-align: center;
  white-space: nowrap;
}
.status--working   { background: #06d6a0; }
.status--uploading { background: #FFD60A; }
.status--idle      { background: #e5e5e5; color: #666; }

/* ---- Row action buttons (admin) ---- */
.row-actions { display: flex; gap: .4rem; }
.btn-action  {
  display: inline-block;
  padding: .3rem .75rem;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #0f0f1f;
  box-shadow: 2px 2px 0 #0f0f1f;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  white-space: nowrap;
}
.btn-action:hover  { transform: translate(1px,1px); box-shadow: 1px 1px 0 #0f0f1f; }
.btn-action--edit  { background: #FFD60A; color: #0f0f1f; }
.btn-action--del   { background: #ff6b6b; color: #fff; }

/* ======== FORM PANEL ======== */
.form-panel {
  background: #fff;
  border: 4px solid #0f0f1f;
  border-radius: 1.5rem;
  box-shadow: 8px 8px 0 #0f0f1f;
  overflow: hidden;
}

.form-body { padding: 1.75rem 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group--wide { grid-column: 1 / -1; }

.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ======== PROFILE HERO ======== */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  background: #0f0f1f;
  border: 4px solid #FFD60A;
  box-shadow: 8px 8px 0 #FFD60A;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.profile-avatar {
  width: 6rem;
  height: 6rem;
  min-width: 6rem;
  border-radius: 50%;
  border: 5px solid #FFD60A;
  box-shadow: 4px 4px 0 #FFD60A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.profile-info { flex: 1 1 auto; min-width: 0; }
.profile-name { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; }
.profile-meta { font-size: .85rem; color: rgba(255,255,255,.55); font-weight: 600; margin: .3rem 0 .75rem; }
.profile-task { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.85); }

.profile-status-col { display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }

/* ======== SHARED INPUTS ======== */
.field-label {
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #444;
}

.text-input {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: .8rem 1rem;
  border: 3px solid #0f0f1f;
  border-radius: .5rem;
  background: #fff;
  width: 100%;
  outline: none;
  transition: box-shadow .15s;
  -webkit-appearance: none;
}
.text-input:focus { box-shadow: 4px 4px 0 #0f0f1f; }
.text-input[disabled] { background: #f0f0f0; cursor: not-allowed; }

.select-input { cursor: pointer; }
.color-input  { height: 3rem; padding: .25rem .5rem; cursor: pointer; }

.textarea-input { resize: vertical; min-height: 5rem; }

.btn-submit {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #FFD60A;
  color: #0f0f1f;
  border: 4px solid #0f0f1f;
  box-shadow: 5px 5px 0 #0f0f1f;
  padding: .85rem 2rem;
  cursor: pointer;
  border-radius: .5rem;
  transition: transform .1s, box-shadow .1s;
  white-space: nowrap;
}
.btn-submit:hover  { transform: translate(2px,2px); box-shadow: 3px 3px 0 #0f0f1f; }
.btn-submit:active { transform: translate(5px,5px); box-shadow: none; }

.btn-secondary {
  display: inline-block;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: #0f0f1f;
  border: 3px solid #0f0f1f;
  padding: .8rem 1.5rem;
  border-radius: .5rem;
  box-shadow: 3px 3px 0 #0f0f1f;
  transition: transform .1s, box-shadow .1s;
  white-space: nowrap;
}
.btn-secondary:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 #0f0f1f; }

/* ======== UPLOAD ZONE ======== */
.upload-form { display: flex; flex-direction: column; gap: .9rem; }

.drop-zone {
  position: relative;
  border: 4px dashed #0f0f1f;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #faf7f0;
  transition: background .15s;
}
.drop-zone:hover, .drop-zone.drag-over { background: #FFD60A; }

.drop-icon      { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }
.drop-primary   { font-size: .95rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.drop-secondary { font-size: .75rem; color: #666; font-weight: 500; margin-top: .25rem; }
.drop-filename  { font-size: .8rem; font-weight: 700; color: #b5179e; margin-top: .5rem; min-height: 1.2em; }

.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ======== ALERTS ======== */
.alert {
  padding: .85rem 1.1rem;
  border: 3px solid #0f0f1f;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.alert--success { background: #06d6a0; }
.alert--error   { background: #ff6b6b; color: #fff; }

/* ======== EMPTY STATE ======== */
.empty-state { padding: 2.5rem; text-align: center; font-size: .9rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .08em; }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .header  { padding: .75rem 1rem; }
  .brand   { font-size: 1.5rem; }
  .main    { padding: 1.25rem 1rem 3rem; }
  .stat-card__number { font-size: 3.5rem; }
  .profile-hero   { padding: 1.25rem; gap: 1rem; }
  .profile-avatar { width: 4rem; height: 4rem; min-width: 4rem; font-size: 1.4rem; }
  .profile-name   { font-size: 1.4rem; }
  .login-deco { display: none; }
  .btn-upload { padding: .55rem .9rem; font-size: .8rem; }
  .list-row__right { gap: .35rem; }
  .status-badge { padding: .3rem .6rem; font-size: .65rem; }
}
