/* public/assets/style.css


/* =========================
   Theme tokens
========================= */
:root {
  --bg0: #f7f8fc;
  --bg1: #ffffff;

  --text: #0b1220;
  --muted: #5b6476;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);

  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.14);

  --radius: 18px;
  --radius-sm: 12px;

  /* Brand */
  --primary: #9e0069;
  --primary2: #0c6cc5;

  /* Accent for hover/focus */
  --hover: #0280c9; /* teal */
  --hover-ink: #0058aa;

  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;

  /* Login- Text selection color - Color */
  --focus: 0 0 0 1px rgba(5, 101, 190, 0.4);

  --pad: 18px;
  --pad-lg: 22px;

  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgb(248, 248, 250)), var(--bg0);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent iOS zoom on focus */
input,
select,
textarea,
button {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--hover);
  text-decoration: none;
}
a:active {
  opacity: 0.85;
}

small {
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}
p {
  margin: 8px 0;
  color: var(--muted);
}
ul,
ol {
  margin: 10px 0 0 18px;
  color: var(--muted);
}
code {
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 8px;
  word-break: break-word;
}

/* Keyboard focus */
:where(a, button, input, select, textarea, [tabindex]):focus {
  outline: none;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  box-shadow: var(--focus);
  border-radius: 12px;
}

/* =========================
   Layout
========================= */
.container {
  max-width: min(1400px, 96vw);
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 16px 0;
}

.title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: rgb(1, 15, 114);
}
/* --------------------------------------------------------- */
/* .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 10px 0;
  max-width: 78ch;
  color: rgba(0, 13, 27, 0.81);
} */

/* Globally subtitle only */
.subtitle {
  display: inline-block;

  font-size: 0.85rem;
  font-weight: 500;

  color: #0b1320;

  background: linear-gradient(
    135deg,
    rgba(62, 105, 247, 0.16),
    rgba(6, 182, 212, 0.12)
  );

  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);

  padding: 6px 14px;
  border-radius: 999px;

  margin: 1px 0 12px;
}


/* Main Login Page subtitle only - Stable color */
/*
.login-page-header .subtitle {
  display: inline-block;

  font-size: 0.85rem;
  font-weight: 500;

  color: #0b1320;

  background: linear-gradient(
    135deg,
    rgba(28, 143, 236, 0.16),
    rgba(45, 213, 243, 0.12),
    rgba(45, 243, 167, 0.12)
  );

  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 6px 14px;
  border-radius: 999px;

  margin: 1px 0 12px;

  overflow: hidden;
}
*/


/* Main Login Page subtitle only -Softer Light Blue Shine Animation */
.login-page-header .subtitle {
  display: inline-block;

  font-size: 0.85rem;
  font-weight: 500;

  color: #0b1320;

  background: linear-gradient(
    135deg,
    rgba(28, 143, 236, 0.16),
    rgba(45, 213, 243, 0.12),
    rgba(45, 243, 167, 0.12)
  );

  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 6px 14px;
  border-radius: 999px;

  margin: 1px 0 12px;

  position: relative;
  overflow: hidden;
}

/* UPDATED: softer, thinner, less bright shine */
.login-page-header .subtitle::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%; /* NEW: starts further out for smoother entry */

  width: 60%; /* NEW: thinner shine */
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(120, 200, 255, 0.25), /* NEW: much softer opacity */
    transparent
  );

  animation: shineSweep 4s ease-in-out infinite; /* NEW: slower + smoother */
}

@keyframes shineSweep {
  100% {
    left: 120%;
  }
}



/* MFA page subtitle only */
.mfa-subtitle {
  display: inline-block;

  font-size: 0.85rem;
  font-weight: 500;

  color: #0b1320;

  background: linear-gradient(
    135deg,
    rgba(236, 19, 19, 0.16),
    rgba(212, 147, 6, 0.12)
  );

  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* NEW: Safari support */

  padding: 6px 14px;
  border-radius: 999px;

  margin: 1px 0 12px;

  overflow: hidden; /* NEW: keeps rounded blur clean */
}



/* Employee Dashboard Page .subtitle - Only*/

.employee-page .subtitle {
  display: block;                     
  width: 100vw;                        
  max-width: 100%;                     
  margin: 22px 0;                      
  padding: 12px 16px;                  
  background: rgba(141, 194, 252, 0.1); /* background color */
  border: 1px solid rgba(141, 194, 252, 0.4); /* light border */
  border-radius: 10px;
  font-size: 15px;
  color: #03213f;
  font-weight: 600;
  box-sizing: border-box;
  text-align: left;                     
  position: relative;                   
  left: 50%;
  right: 50%;
  transform: translateX(-50%);          
}

@media (max-width: 768px) {
  .employee-page .subtitle {
    text-align: center;           /* text centered on mobile */
  }
}

/* ------------------------------------------------------------------ */
.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================
   Cards
========================= */
.card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--pad-lg);
  position: relative;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.card + .card {
  margin-top: 14px;
}

.card-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 10px;
  color: rgba(0, 12, 107, 0.8);
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
  opacity: 0.9;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.card p {
  max-width: 78ch;
}
.card > :first-child {
  margin-top: 0;
}
.card > :last-child {
  margin-bottom: 0;
}

/* =========================
   Forms
========================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.label {
  font-size: 13px;
  font-weight: 650;
  color: rgba(11, 18, 32, 0.82);
  margin-bottom: 6px;
  display: block;
}

.input,
select,
textarea,
input[type="file"] {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.05s ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type="file"] {
  padding: 10px 12px;
}

.input::placeholder,
textarea::placeholder {
  color: rgba(91, 100, 118, 0.72);
}

.input:hover,
select:hover,
textarea:hover,
input[type="file"]:hover {
  border-color: var(--border-strong);
}

.input:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
  border-color: rgba(19, 181, 166, 0.55);
  box-shadow: var(--focus);
}

.input:disabled,
select:disabled,
textarea:disabled,
input[type="file"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.03);
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  display: block;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, 0.82); /* neutral */
  color: var(--text);
  transition:
    transform 0.06s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}
a.btn {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary*/

/* Primary — soft blue-gray neutral */
.btn-primary {
  background: rgba(240, 245, 250, 0.95);
  border-color: rgba(12, 108, 197, 0.22);
  color: rgba(11, 18, 32, 0.92);
}

.btn-primary:hover {
  background: rgba(19, 181, 166, 0.12);
  border-color: rgba(19, 181, 166, 0.35);
}

/* Ghost — same family, lighter */
.btn-ghost {
  background: rgba(240, 245, 250, 0.7);
  border-color: rgba(12, 108, 197, 0.22);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(19, 181, 166, 0.12);
  border-color: rgba(19, 181, 166, 0.32);
}

/* Danger keeps color (for delete) */

.btn-danger {
  color: rgba(88, 15, 15, 0.95);
  background: linear-gradient(135deg, #fde2e2, #fbcaca);
  border-color: rgba(220, 38, 38, 0.28);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #fbcaca, #f8b4b4);
  border-color: rgba(220, 38, 38, 0.45);
}

/* Disable box-shadow for ALL buttons */
.btn,
button {
  box-shadow: none;
}

.btn:hover,
button:hover {
  box-shadow: none;
}

/* Keep ghost button text color stable on hover */
.btn-ghost:hover {
  color: inherit;
}

/* Link */
.btn-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 750;
}
.btn-link:hover {
  color: var(--hover);
  text-decoration: none;
}

/* =========================================================
   Global button hover override (except Main login page)
========================================================= */

body:not(.login-page) .btn:hover:not(.btn-danger),
body:not(.login-page) .btn-primary:hover:not(.btn-danger),
body:not(.login-page) .btn-ghost:hover:not(.btn-danger),
body:not(.login-page) button:hover:not(.btn-danger) {
  background: rgba(12, 108, 197, 0.14);
  border-color: rgba(12, 108, 197, 0.35);
}

/* Default plain <button> (neutral, no colored background) */
button {
  border-radius: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.06s ease,
    filter 0.18s ease;
}

/* Hover ONLY for plain buttons */
button:not(.btn):hover {
  border-color: rgba(19, 181, 166, 0.32);
  background: rgba(19, 181, 166, 0.1);
}

button:active {
  transform: translateY(1px);
}

/* =========================
   Alerts / Flash messages
========================= */
.alert {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

/* Font size for alerts */
.alert {
  font-size: 13.5px;
}

.alert + .alert {
  margin-top: 10px;
}

.alert strong {
  color: var(--text);
}

.alert-success {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.1);
  color: #14532d;
}

.alert-error {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.1);
  color: #7f1d1d;
}

.alert-warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
  color: #7c2d12;
}

/* =========================
   Tables (more modern)
========================= */
.table-wrap {
  margin-top: 10px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  scroll-snap-type: x proximity;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
}
.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(11, 18, 32, 0.72);
  text-align: left;
  padding: 12px 14px;
  /* Table header (thead) background color */
  background: linear-gradient(
    180deg,
    rgba(178, 205, 255, 0.47),
    rgba(174, 196, 248, 0.34)
  );
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

thead th:first-child {
  border-top-left-radius: 14px;
}
thead th:last-child {
  border-top-right-radius: 14px;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: rgba(11, 18, 32, 0.88);
  vertical-align: top;
  word-break: break-word;
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.018);
}

/* Table hover color */
tbody tr:hover {
  background: rgba(181, 151, 19, 0.09);
}
/* Table focus color */
tbody tr:focus-within {
  outline: none;
  background: rgba(19, 130, 181, 0.12);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.actions button {
  margin: 0;
}

.table-wrap a {
  text-decoration: none;
}
.table-wrap a:hover {
  color: var(--hover);
  text-decoration: none;
}

/* =========================
   Badges
========================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(11, 18, 32, 0.72);
}
.badge-ok {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.22);
  color: #14532d;
}
.badge-bad {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.22);
  color: #7f1d1d;
}

/* =========================
   Pagination
========================= */
.pager {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.pager .meta {
  color: var(--muted);
  font-size: 13px;
}
.pager .links {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* =========================
   Mobile polish
========================= */
@media (max-width: 640px) {
  .container {
    padding: 14px;
  }
  .title {
    font-size: 17px;
  }
  .card {
    padding: 16px;
  }
  table {
    min-width: 980px;
  }
}

@media (max-width: 480px) {
  .top-actions {
    width: 100%;
  }
  .top-actions > * {
    flex: 1 1 auto;
  }
  .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }
  .actions .btn {
    width: auto;
  }
}

/* Print mode */
@media print {
  body {
    background: #fff;
  }
  .card,
  .table-wrap {
    box-shadow: none;
    background: #fff;
  }
  .top-actions {
    display: none;
  }
  table {
    min-width: 0;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  a {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

/* Extra tiny polish (optional) */
.actions form {
  margin: 0;
}
.actions a,
.actions button {
  white-space: nowrap;
}

/* app/Views/admin/dashboard.php - Admin dashboard.php (Tiles with visuals) ------------------------*/

/* =========================
   Admin Dashboard Tiles (REAL SaaS)
========================= */
.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .dashboard-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .dashboard-tiles {
    grid-template-columns: 1fr;
  }
}

.dash-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.dash-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Icon block (visual, not emoji) */
.dash-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
}

.dash-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  color: var(--text);
}

.dash-body p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.dash-cta {
  margin-top: auto;
  font-weight: 750;
  font-size: 13px;
  color: var(--primary);
}

/* ------------------------------------------------------------------- */

/* =========================
   Dashboard Stat Cards
========================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

.stat-label {
  font-size: 13px;
  font-weight: 750;
  color: rgba(11, 18, 32, 0.72);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.stat-sub {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(11, 18, 32, 0.75);
}

.stat-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}

.stat-card::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  margin: 10px 0 6px;
}

/* =========================================================
   Admin Dashboard – System Status Colors - // dashboard.php
   OK  -> Green
   WARN -> Amber
   (Pure CSS, no layout changes)
========================================================= */

/* Default neutral (fallback) */
.stat-value {
  font-weight: 900;
}

/* System OK */
.stat-value.ok {
  color: #08963c; /* green-700 */
}

/* System WARN */
.stat-value.warn {
  color: #f81c1c; /* amber-700 */
}

/* -------------------------------------------------------------------- */

/* upload_review.php */
/* NEW: Upload progress animation (client-side only) */
.upload-progress-wrap {
  display: none; /* hidden until submit */
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

/* Show when JS adds the class */
.upload-progress-wrap.is-show {
  display: block;
}

.upload-progress-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

.upload-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.upload-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 35%;
  border-radius: 999px;
  background: rgba(19, 181, 166, 0.45);
  animation: uploadBarMove 1.1s ease-in-out infinite;
}

@keyframes uploadBarMove {
  0% {
    transform: translateX(-40%);
  }
  50% {
    transform: translateX(140%);
  }
  100% {
    transform: translateX(240%);
  }
}

/* ------------------------------------------------------------------------- */

/* =========================
   Employee Info Card
========================= */

.employee-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .employee-info {
    grid-template-columns: 1fr;
  }
}

.employee-info p {
  margin: 0;
  color: rgba(11, 18, 32, 0.85);
}

.employee-info strong {
  display: inline-block;
  min-width: 120px;
  color: rgba(11, 18, 32, 0.65);
  font-weight: 700;
}

/* Highlight stats */
.employee-info .highlight {
  font-weight: 900;
  color: var(--text);
}

/* Small badge-style number */
.employee-info .count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(19, 181, 166, 0.12);
  color: #064e3b;
  font-weight: 800;
  font-size: 12px;
}

/* =========================================================
   Admin Dashboard - Password Generator Modal (Window)
========================================================= */

/* Ensure modal overlay sits above everything */
#pwToolModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* Backdrop (with graceful fallback if blur unsupported) */
#pwToolBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
}

/* Use blur only if supported (Safari/Chrome support; Firefox may not) */
@supports (
  (backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))
) {
  #pwToolBackdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* Dialog container: centered, responsive, and not too tall */
#pwToolModal [role="dialog"] {
  position: fixed;
  left: 50%;
  top: 12vh; /* nice on desktop */
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 28px)); /* responsive width */
  max-height: calc(100vh - 24vh);
  overflow: auto; /* prevents overflow on small screens */
  z-index: 10000;
}

/* Modal card: modern look (does not change other .card usage) */
#pwToolModal .card {
  border-radius: 20px;
  padding: 16px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
}

/* Header */
#pwToolModal .page-header {
  margin: 0 0 10px 0;
  align-items: center;
}

#pwToolModal .card-title {
  font-size: 15px;
  font-weight: 900;
  margin: 0;
}

#pwToolModal .subtitle {
  font-size: 12.5px;
  margin: 6px 0 0 0;
  max-width: 56ch;
}

/* Password input: readable, copy-friendly */
#pwToolValue {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  letter-spacing: 0.02em;
  font-size: 14px;
  padding: 11px 12px;
}

/* Buttons: compact and responsive */
#pwToolModal .actions {
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#pwToolModal .actions .btn {
  padding: 10px 12px;
  border-radius: 14px;
}

/* Status message */
#pwToolMsg {
  font-size: 13px;
  font-weight: 750;
  color: rgba(11, 18, 32, 0.72);
}

/* Desktop/laptop: slightly more breathing room */
@media (min-width: 900px) {
  #pwToolModal [role="dialog"] {
    top: 14vh;
    width: min(500px, calc(100vw - 40px));
  }
  #pwToolModal .card {
    padding: 18px 18px;
  }
}

/* Mobile: center better and reduce vertical offset */
@media (max-width: 520px) {
  #pwToolModal [role="dialog"] {
    top: 10vh;
    width: calc(100vw - 22px);
    max-height: calc(100vh - 20vh);
  }
}

/* Very small phones: keep it comfortable */
@media (max-width: 380px) {
  #pwToolModal [role="dialog"] {
    top: 8vh;
    max-height: calc(100vh - 16vh);
  }
}

/* Reduced motion users */
@media (prefers-reduced-motion: reduce) {
  #pwToolModal * {
    transition: none !important;
    animation: none !important;
  }
}

/* ------IMPORTANT: use CSS class to control visibility (// public/assets/password-tool.js)---------- */
/* FIX: modal must be hidden by default (prevents showing on refresh) */
#pwToolModal {
  display: none;
}

/* Optional (recommended): a dedicated "open" state */
#pwToolModal.is-show {
  display: block;
}
/* ------------------------------------------------------------------------- */

/* =========================================================
   Employee table: slightly more mobile-friendly
========================================================= */
@media (max-width: 640px) {
  .table-wrap {
    border-radius: 14px;
  }
  table {
    min-width: 720px; /* smaller than global 860 to feel better on phones */
  }
  tbody td,
  thead th {
    padding: 10px 12px;
  }
}
.table-wrap td {
  word-break: break-word;
}

/* Tiny badges for employee table (Regular / Bonus) */

.tiny-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(11, 18, 32, 0.72);
  margin-bottom: 8px;
}

.tiny-badge-regular {
  background: rgba(12, 108, 197, 0.1);
  border-color: rgba(12, 108, 197, 0.2);
  color: rgba(12, 108, 197, 0.92);
}

.tiny-badge-bonus {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.22);
  color: #0f833d;
}

/* =========================================================
   Employee Dashboard – "My Information" card polish (CSS only)
   (No HTML changes needed)
========================================================= */

.employee-info {
  /* keep your existing grid but make it feel cleaner */
  gap: 6px 12px;
  padding-top: 6px;
}

.employee-info p {
  /* turn each line into a neat row */
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.employee-info strong {
  /* label style */
  min-width: 120px;
  color: rgba(11, 18, 32, 0.62);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.employee-info p > :not(strong) {
  /* value style */
  margin-left: auto;
  color: rgba(11, 18, 32, 0.92);
  font-weight: 850;
  text-align: right;
}

/* Make email wrap nicely on narrow screens */
.employee-info p:nth-child(3) {
  word-break: break-word;
}

/* Keep your existing count badge but make it a bit punchier */
.employee-info .count {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(19, 181, 166, 0.22);
  background: rgba(19, 181, 166, 0.1);
}

/* Subtle highlight style already exists; just ensure it pops */
.employee-info .highlight {
  font-weight: 950;
}

/* Mobile: stack label/value, avoid squeezed rows */
@media (max-width: 640px) {
  .employee-info p {
    flex-direction: column;
    align-items: flex-start;
  }
  .employee-info p > :not(strong) {
    margin-left: 0;
    text-align: left;
  }
  .employee-info strong {
    min-width: 0;
  }
}

/* =========================================================
   Employee Info – Mobile fix (force one-line rows)
========================================================= */

@media (max-width: 640px) {
  body .employee-info p {
    flex-direction: row; /* NEW: override old "column" so label + value stay on same line */
    align-items: baseline; /* NEW: align text nicely on one baseline */
    gap: 8px; /* NEW: space between label and value */
  }

  body .employee-info strong {
    white-space: nowrap; /* NEW: keep label like "Full Name:" from breaking */
  }

  body .employee-info p > :not(strong) {
    margin-left: auto; /* NEW: push value to the right side */
    text-align: right; /* NEW: align value text to the right */
    white-space: nowrap; /* NEW: keep short values on one line */
  }

  body .employee-info p:nth-child(3) > :not(strong) {
    white-space: normal; /* NEW: allow email value to wrap if it’s long */
    text-align: left; /* NEW: email wrapping looks better left-aligned */
    margin-left: 0; /* NEW: reset right-push for email line */
  }
}

/* =========================================================
   Main Login page polish (logo + password eye inside input)
========================================================= */

/* Optional: make login card a bit narrower on desktop */
.auth-card {
  width: min(460px, calc(100vw - 28px));
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

/* Brand row */
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.login-logo {
  width: 60px;
  height: 60px;
  border-radius: 1px;
  /* border: 1px solid rgba(15, 23, 42, 0.1); */
  background: rgba(255, 255, 255, 0.85);
  object-fit: contain;
  flex: 0 0 auto;
}

/* Password wrapper: eye button sits INSIDE the input */
.pw-wrap {
  position: relative;
  width: 100%;
}

.pw-wrap .input {
  padding-right: 46px; /* space for the eye */
}

/* Eye icon button */
.pw-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.pw-eye:active {
  transform: translateY(-50%) translateY(1px);
}

.pw-eye svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Default: show open eye, hide closed eye */
.pw-eye-closed {
  display: none;
}

/* =========================================================
   Password eye – fully neutral (no hover / no shadow)
========================================================= */

.pw-eye,
.pw-eye:hover,
.pw-eye:focus,
.pw-eye:active {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* =========================================================
   Login page – header centering + auth card + toggle styles
========================================================= */

.login-page-header {
  justify-content: center;
  text-align: center;
  margin-top: 50px;
}

.login-brand {
  justify-content: center;
  width: 100%;
}

.login-brand-text {
  text-align: center;
  margin-top: 10px;
}

/* Error spacing */
.login-error {
  margin-bottom: 10px;
}

/* Ensure eye button sits inside input */
.pw-wrap {
  position: relative;
  width: 100%;
}
.pw-wrap .input {
  padding-right: 46px;
}
.pw-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: auto;
}

/* =========================================================
   Global footer
========================================================= */

.site-footer {
  margin-top: 0; /* closer */
  padding-top: 6px; /* optional: smaller gap */
  padding-bottom: 12px;
}

.site-footer .container {
  text-align: center;
  font-size: 14px;
}

/* Footer sits immediately after content */
.site-footer {
  margin-top: 0;
  padding-top: 4px;
  padding-bottom: 8px;
}

/* =========================================================
   Login page – footer spacing FINAL control
========================================================= */

body .container {
  padding-bottom: 0;
}

.auth-card {
  margin-bottom: 0 !important;
}

.site-footer {
  margin-top: 0;
  padding-top: 2px;
  padding-bottom: 6px;
}

/* Center login heading */
body.login-page .auth-card .card-title {
  text-align: center;
}

/* Center sign-in button */
body.login-page .auth-card .btn-primary {
  margin-left: auto;
  margin-right: auto;
  margin-top: 6px;
  display: block;
}

/* =========================================================
   Login page – Sign in button (base + hover)
========================================================= */

body.login-page .auth-card .btn-primary {
  width: 100%;
  background: rgba(12, 108, 197, 0.14);
  border-color: rgba(12, 108, 197, 0.35);
  color: rgba(11, 18, 32, 0.96);
}

/* Hover: slightly stronger, no motion */
body.login-page .auth-card .btn-primary:hover {
  background: rgba(12, 108, 197, 0.22);
  border-color: rgba(12, 108, 197, 0.45);
}

body.login-page .auth-card .btn-primary {
  margin-top: 15px;
}

/* =========================================================
   LOGIN PAGE – RESPONSIVE (Desktop + Mobile)
   Scoped only to: <body class="login-page">
========================================================= */

body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Main Login Background Color */
  background: radial-gradient(rgba(12, 108, 197, 0.05));
}

/* ---- Main area (container) ---- */
body.login-page .container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px; /* safe baseline padding (desktop + mobile) */
}

/* ---- Header ---- */
body.login-page .page-header {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin: 100px 0 0 0; /* desktop spacing */
}

/* Brand row (logo + text) */
body.login-page .login-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body.login-page .login-brand-text {
  text-align: center;
}

/* ---- Login Card ---- */
body.login-page .auth-card {
  width: 100%;
  max-width: 460px;
  margin: 10px auto 0 auto; /* small gap from header on desktop */
}

/* ---- Center "Login" title ---- */
body.login-page .auth-card .card-title {
  text-align: center;
}

/* ---- Make Sign In button full width ---- */
body.login-page .auth-card .btn-primary {
  width: 100%;
  display: block;
  margin-top: 14px;
}

/* ---- Footer ---- */
body.login-page .site-footer {
  margin-top: 0;
  padding: 10px 0 12px 0;
  text-align: center;
}

body.login-page .site-footer .container {
  max-width: 100%;
  padding: 0 14px;
}

/* =========================================================
   Mobile adjustments
========================================================= */
@media (max-width: 640px) {
  body.login-page .container {
    padding: 18px 14px; /* mobile breathing room */
  }

  body.login-page .page-header {
    margin: 10px 0 0 0;
  }

  body.login-page .login-brand {
    flex-direction: column;
    gap: 10px;
  }

  body.login-page .login-brand-text .title {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  body.login-page .auth-card {
    margin-top: 10px;
  }
}

/* =========================================================
   Floating Labels (Login) — UI only
   Uses placeholder=" " (blank) so no i18n text needed
========================================================= */

.fl-field {
  position: relative;
}

/* Space for the label inside the input */
.fl-input {
  padding-top: 18px;
  padding-bottom: 10px;
}

/* Label sits inside input by default */
.fl-label {
  position: absolute;
  left: 12px;
  top: 12px;
  margin: 0;
  pointer-events: none;
  transform-origin: left top;
  transform: translateY(4px);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
  opacity: 0.75;
}

/* Email: label is immediately after input */
.fl-input:focus + .fl-label,
.fl-input:not(:placeholder-shown) + .fl-label {
  transform: translateY(-8px) scale(0.86);
  opacity: 0.95;
}

/* Password: label comes after the eye button */
.pw-wrap .fl-label {
  right: 46px; /* avoid eye area */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-wrap .fl-input:focus + .pw-eye + .fl-label,
.pw-wrap .fl-input:not(:placeholder-shown) + .pw-eye + .fl-label {
  transform: translateY(-8px) scale(0.86);
  opacity: 0.95;
}

/* =========================================================
   Login – submit spinner (UI only)
========================================================= */

.js-login-spinner.is-loading {
  position: relative;
  opacity: 0.85;
  cursor: not-allowed;
}

/* Spinner */
.js-login-spinner.is-loading::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  vertical-align: -2px;
  animation: loginSpin 0.75s linear infinite;
}

@keyframes loginSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Logout button – light red color background
========================================================= */

.top-actions form[action="/logout"] .btn-ghost {
  background: rgba(38, 102, 220, 0.1); /* light red background */
  border-color: rgba(38, 81, 220, 0.35);
  color: #073f92;
}

/* Hover state */
.top-actions form[action="/logout"] .btn-ghost:hover {
  background: rgba(245, 7, 7, 0.27);
  border-color: rgba(220, 38, 38, 0.45);
}

/* =========================================================
   Employee Dashboard – Table spacing (mobile view only)
   Scoped to: app/Views/employee/dashboard.php
========================================================= */

@media (max-width: 640px) {
  /* Tighter table cells */
  body .table-wrap tbody td {
    padding: 8px 10px;
  }

  /* Reduce vertical gap above Download button */
  body .table-wrap td div[style*="margin-top"] {
    margin-top: 4px !important;
  }

  /* Make table buttons slightly smaller */
  body .table-wrap .btn {
    min-height: 34px;
    padding: 9px 12px;
  }

  /* Reduce badge spacing */
  body .table-wrap .tiny-badge {
    margin-bottom: 4px;
  }
}

/* ---------------------------------------------------------------------------------- */

/* =========================================================
   Employee Dashboard – Mobile table as cards (badge-driven)
========================================================= */

/* ---------------- Desktop / Table View ------------------ */

/* Remove default HTML table border (applies to all views) */
.table-wrap table {
  border: 0; /* keeps table clean in desktop and mobile */
}

/* Slot labels must NEVER appear on desktop */
body .m-slot-label {
  display: none; /* desktop/table view already has column headers */
}

/* ---------------- Mobile View (≤ 640px) ----------------- */

@media (max-width: 640px) {
  /* Table wrapper becomes a card container */
  .table-wrap {
    overflow-x: visible; /* allow cards to flow naturally */
    border: 0; /* remove table border */
    background: transparent; /* no table background */
    box-shadow: none; /* cards handle shadow instead */
  }

  /* Reset table layout for mobile cards */
  .table-wrap table {
    min-width: 0 !important; /* prevent horizontal scroll */
    width: 100%; /* full-width cards */
    border-collapse: separate; /* allow card spacing */
    border-spacing: 0;
  }

  /* Hide table header on mobile */
  .table-wrap thead {
    display: none; /* header not needed in card layout */
  }

  /* Each table row becomes a card */
  .table-wrap tbody tr {
    display: block; /* stack rows vertically */
    margin-bottom: 12px; /* spacing between cards */
    border: 1px solid var(--border); /* card border */
    border-radius: 16px; /* rounded card corners */
    background: rgba(255, 255, 255, 0.88); /* soft card background */
    box-shadow: var(--shadow-sm); /* subtle elevation */
    overflow: hidden; /* clip child elements */
  }

  /* Each cell becomes a row inside the card */
  .table-wrap tbody td {
    display: block; /* stack cell content */
    padding: 10px 12px; /* comfortable spacing */
    border-bottom: 1px solid var(--border); /* divider between rows */
  }

  /* Remove divider from last row */
  .table-wrap tbody td:last-child {
    border-bottom: 0; /* no divider at bottom */
  }

  /* Month cell acts as card header */
  .table-wrap tbody td:first-child {
    font-weight: 900; /* strong emphasis */
    color: rgba(11, 18, 32, 0.92); /* readable text */
    background: rgba(12, 108, 197, 0.06); /* subtle header background */
  }

  /* Buttons stay compact on mobile */
  .table-wrap .btn {
    width: auto; /* avoid full-width buttons */
    min-height: 34px; /* comfortable tap size */
  }

  /* ---------------- Slot Labels (Regular / Bonus) ---------------- */

  /* Show slot labels only on mobile */
  body .m-slot-label {
    display: inline-block; /* visible only in mobile cards */
    font-size: 12px; /* small helper text */
    font-weight: 900; /* strong label weight */
    letter-spacing: 0.06em; /* uppercase spacing */
    text-transform: uppercase; /* visual distinction */
    margin-right: 8px; /* space before text */
    color: rgba(11, 18, 32, 0.7); /* default muted label color */
  }

  /* Regular slot label color (matches Regular badge) */
  body .m-slot-label.m-slot-label-regular {
    color: rgba(12, 108, 197, 0.85); /* blue for Regular */
  }

  /* Bonus slot label color (matches Bonus badge) */
  body .m-slot-label.m-slot-label-bonus {
    color: #0f833d; /* green for Bonus (same tone as badge text) */
  }

  .m-not-available {
    font-size: 13px;
    color: rgba(11, 18, 32, 0.6); /* subtle, neutral */
  }

  /* ---------------- Empty State Text ---------------- */

  /* Adjust "Not available" text size on mobile */
  .m-not-available {
    font-size: 13px; /* softer, less dominant text */
  }

  /* ---------------- File Size ---------------- */

  /* Hide file size on mobile to reduce clutter */
  .file-size {
    display: none; /* desktop still shows file size */
  }
}

/* Row wrapper for slot + state */
.m-slot-row {
  display: inline-flex; /* keep everything on one line */
  align-items: baseline; /* text aligns nicely */
  gap: 6px; /* balanced spacing */
}

/* Dash separator */
.separator {
  color: rgba(11, 18, 32, 0.55); /* softer than main text */
  font-weight: 600;
}

/* Not available text */
.m-not-available {
  font-size: 13px;
  color: rgba(11, 18, 32, 0.6); /* neutral, secondary */
}

/* =========================================================
   Employee Dashboard – Mobile table as cards (end)
========================================================= */

/* Mobile Menu */
.header-bar {
  display: flex; /* NEW: title + actions on one row */
  align-items: center; /* NEW: vertical align */
  justify-content: space-between; /* NEW: push logout to right */
  gap: 14px; /* NEW: spacing */
  width: 100%; /* NEW: full row */
}

@media (max-width: 640px) {
  .top-actions {
    width: auto; /* stop stretching container */
  }

  .top-actions .btn-ghost {
    width: auto; /* prevent full-width button */
    align-self: flex-end; /* keep it right-aligned */
  }
}

/* Menu - Light header background - Mobile */
@media (max-width: 640px) {
  .header-bar {
    background: rgba(8, 47, 138, 0.06); /* subtle header surface */
    padding: 10px 12px;
    border-radius: 12px;
  }
}

/* Menu - Header bar – desktop */
.header-bar {
  background: rgba(8, 47, 138, 0.03); /* lighter than mobile */
  padding: 8px 10px;
  border-radius: 10px;
}

/* -------------------------------------------------------------------- */

/* =========================================================
   Header Bar (Admin / Employee / Users pages)
   UI-only wrapper around .page-header
========================================================= */

/* Base header bar style (applies to desktop + mobile) */
.header-bar {
  background: rgba(8, 47, 138, 0.06); /* NEW: subtle light header background */
  padding: 10px 12px; /* NEW: spacing around header content */
  border-radius: 12px; /* NEW: soft rounded corners */
  margin-bottom: 10px; /* NEW: space below header bar */
}

/* Keep page-header layout intact */
.header-bar .page-header {
  margin: 0; /* NEW: remove default margin so bar stays tight */
}

/* =========================================================
   Mobile polish (only small tweaks, no layout changes)
========================================================= */

@media (max-width: 640px) {
  .header-bar {
    padding: 8px 10px; /* NEW: slightly tighter padding on mobile */
    border-radius: 10px; /* NEW: slightly smaller radius for mobile */
  }

  /* Prevent top-actions from stretching */
  .header-bar .top-actions {
    width: auto; /* NEW: avoid full-width container */
  }

  /* Keep Back / Logout button compact */
  .header-bar .top-actions .btn-ghost {
    width: auto; /* NEW: prevent full-width button */
    align-self: flex-end; /* NEW: keep button aligned to the right */
  }
}

/* =========================================================
   Page header – Back button to page corner (desktop only)
========================================================= */

@media (min-width: 641px) {
  /* Make header act as positioning context */
  .header-bar {
    position: relative; /* NEW: anchor for absolute positioning */
  }

  /* Push Back button to the page corner */
  .header-bar .top-actions {
    position: absolute; /* NEW: detach from flow */
    top: 10px; /* NEW: distance from top edge */
    right: 12px; /* NEW: distance from right edge */
  }
}

/* --------------------------------------------------------------------------------------- */

/* =========================================================
   User Invite page – already setup message (E-mail)
========================================================= */
.invite-already-setup {
  text-align: center;
  padding: 18px 10px;
}

.invite-already-setup .message {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* =========================================================
   Hide browser-built-in password reveal (Microsoft Edge)
   ========================================================= */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

/* NEW: Invite Code 3-box layout (invite page only) */

.invite-code-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.invite-code-part {
  text-align: center;
  letter-spacing: 0.12em;
  font-weight: 900;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.invite-code-sep {
  font-weight: 900;
  opacity: 0.65;
}

/* Mobile: tighten spacing */
@media (max-width: 420px) {
  .invite-code-grid {
    gap: 8px;
  }
}

/* --------------------------------------------------- */

/* =========================================================
   All - Alerts – balanced spacing & readability
========================================================= */

.alert {
  margin: 14px 0 18px 0; /* space above & below */
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

/* When alerts appear at top of a card */
.card > .alert:first-child {
  margin-top: 6px;
}

/* When alert is followed by a form or table */
.alert + .form,
.alert + .table-wrap,
.alert + .card {
  margin-top: 14px;
}

/* Success */
.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: rgba(20, 83, 45, 0.95);
}

/* Error */
.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: rgba(127, 29, 29, 0.95);
}

/* Warning */
.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: rgba(120, 53, 15, 0.95);
}

/* =========================================
   Invite Page - Brand Header - Logo
   ========================================= */

.brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Mobile */
  margin-top: 1px;
  margin-bottom: 12px;

  text-align: center;
}

/* --- Logo --- */
.brand-logo-img {
  width: 45px;
  height: auto;
  display: block;
  margin-bottom: 5px;
}

/* --- Company Name --- */
.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* ===== Tablet and up ===== */
@media (min-width: 768px) {
  .brand {
    margin-top: 16px;
  }

  .brand-name {
    font-size: 1rem;
  }
}

/* ===== Laptop/Desktop ===== */
@media (min-width: 1024px) {
  .brand-name {
    font-size: 1.05rem;
  }
}

/* ===== Large Screens ===== */
@media (min-width: 1400px) {
  .brand-name {
    font-size: 1.1rem;
  }
}

/* Upload - rules info box ------------------*/
.upload-rules {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

/* Title */
.rules-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e293b;
}

/* Code example */
.upload-rules code {
  background: #f0f9ff; /* very light blue */
  color: #000000; /* black text */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 4px;
  border: 1px solid #e0f2fe;
}

/* List */
.rules-list {
  padding-left: 18px;
  margin: 0;
}

.rules-list li {
  margin-bottom: 6px;
  color: #334155;
}

.rules-list li::marker {
  color: #3b82f6;
  font-weight: bold;
}

/* ----------------------------------- */

/* Status for review (ERROR / READY */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.status-ready {
  background: #eafaf1;
  color: #157347;
  border: 1px solid #b7ebc6;
}

.status-error {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f1b0b7;
}
/* -------------------------------------------- */

/* ------------------------------------------------
   Storage Cleanup - Danger Zone
------------------------------------------------ */

.danger-zone {
    border: 1px solid #f3c2c2;
    background: #fff6f6;
    padding: 18px;
    border-radius: 6px;
    margin-top: 18px;
}

.danger-zone-title {
    font-weight: 600;
    font-size: 16px;
    color: #b42318;
    margin-bottom: 6px;
}

.danger-zone-text {
    font-size: 14px;
    color: #6b1a1a;
    margin-bottom: 14px;
}

/* Confirmation input */
.danger-confirm {
    max-width: 260px;
    margin-top: 6px;
}

/* Cleanup button container */
.cleanup-btn-wrap {
    margin-top: 14px;
}

/* Disabled cleanup button */
.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Dashboard - Company Logo */
.title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 28px; /* adjust as needed */
}


/* --- Employee header logo and title - Mobile ONLY --- */
@media (max-width: 640px) {

  body .header-bar {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body .header-bar .title {
    margin: 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
  }

  body .header-bar .logo {
    height: 30px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }

  body .header-bar .top-actions {
    margin: 0;
    display: flex;
    align-items: center;
  }

}

/* --- Desktop: header title + logout button fit fix --- */
@media (min-width: 641px) {
  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    min-height: 52px;
  }

  .header-bar .title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
  }

  .header-bar .logo {
    height: 26px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }

  .header-bar .top-actions {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .header-bar .top-actions form {
    margin: 0;
  }

  .header-bar .top-actions .btn-ghost {
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}


/* Client-side upload blocking error (upload.php only) */
#blockedUploadError {
  display: none; /* controlled by JS */

  margin-top: 12px;
  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.28);

  background: rgba(220, 38, 38, 0.08);
  color: rgba(127, 29, 29, 0.95);

  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;

  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08); /* subtle depth */
}

/* Optional: better spacing if multiple lines */
#blockedUploadError strong {
  display: block;
  margin-bottom: 4px;
}





