/* ---------- ROOT VARIABLES ---------- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-elevated: #1a1a1a;

  --text-primary: #ffffff;
  --text-secondary: #bfbfbf;

  --border-color: #2a2a2a;

  --radius: 8px;
  --transition-fast: 0.2s ease;
}

/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ---------- CENTER CONTAINER ---------- */
.center-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* ---------- CARD ---------- */
.card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
}

/* ---------- CARD TITLE ---------- */
.card h2 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- INPUT ---------- */
.input-group {
  margin-bottom: 1.2rem;
}

input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

input:focus,
button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ---------- BUTTON ---------- */
button {
  width: 100%;
  padding: 10px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

button:hover {
  opacity: 0.85;
}

button:active {
  transform: scale(0.98);
}

/* ---------- BUTTON LOADING STATE ---------- */
button.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

button.loading::after {
  content: " ";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid #000000;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- ERROR MESSAGE ---------- */
.error-message {
  background: #1a0000;
  border: 1px solid #330000;
  color: #ff4c4c;
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

/* ---------- SESSION EXPIRED MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.modal-box h3 {
  margin-bottom: 1rem;
}

.modal-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===============================
  HOMEWORK PAGE (DARK FIXED)
=============================== */

.page-container {
  padding: 20px;
}

/* SECTION */

.section {
  border: 1px solid var(--border-color);
  padding: 12px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.section.locked {
  opacity: 0.5;
}

/* HEADER */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-header > div {
  display: flex;
  gap: 6px;
}

.section button,
.row button {
  width: auto;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Name */

.section-header input.section-name {
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
}

/* ROW */

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;

  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  margin-left: 15px;
}

/* Inputs */

.row input,
.row select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Description grows */

.row input.desc {
  flex: 2;
}

/* NO HW */

.row.nohw {
  background: #ff7f7f;
  border: 1px dashed #555;
}

/* Edit Indicator */

.editIndicator {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Buttons override */

.section button,
.row button {
  width: auto;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Hover */

.section button:hover,
.row button:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Floating Button */

.floating-btn {
  position: fixed;
  margin-left: auto;
  width: 50px;
  height: 50px;
  font-size: 24px;
  bottom: 20px;
  right: 20px;

  background: var(--text-primary);
  color: var(--bg-primary);

  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 14px 14px;
}
/* DESCRIPTION BIGGER */
.row input.desc {
  flex: 3;
  min-width: 250px;
  font-size: 14px;
  height: 40px;
  padding: 6px;
}

/* DATE SMALLER */
.row input.date {
  flex: 0.8;
  color-scheme: dark;
  max-width: 130px;
  height: 40px;
  text-align: center;
  cursor: pointer;
}

.row input.date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  color: white;
}


/* STATUS SMALL */
.row select.status {
  flex: 0.8;
  max-width: 120px;
  height: 40px;
  border-radius: 9px;
}

.add-row {
  display: block;
  margin: 12px auto 0 auto;
  width: fit-content;
}

.glowing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #00FF00;
  border-radius: 50%;
  margin-left: 5px;
  margin-bottom: 0px;
  vertical-align: middle; /* Aligns it vertically with the text */
  
  /* Neon glow effect */
  box-shadow: 
    0 0 4px #00FF00, 
    0 0 10px #00FF00;
    
  /* Smooth pulsing animation */
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 1; box-shadow: 0 0 4px #00FF00, 0 0 8px #00FF00; }
  50% { opacity: 0.7; box-shadow: 0 0 2px #00FF00, 0 0 4px #00FF00; }
  100% { opacity: 1; box-shadow: 0 0 4px #00FF00, 0 0 8px #00FF00; }
}

/* ===== SECTION COLOR BAR ===== */

.section {
  position: relative;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: 0.2s;
}

/* LEFT COLOR BAR */

.section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
}

.section-blue::before {
  background: #a8d8ff;
}

.section-red::before {
  background: #ffb3b3;
}

/* LEFT BORDER STATUS COLORS */

.row {
  border-left: 6px solid transparent;
}

/* Assigned → Pastel Green */
.row.status-assigned {
  border-left: 6px solid #7ef5a3;
}

/* Unassigned → Pastel Red */
.row.status-unassigned {
  border-left: 6px solid #ff9b9b;
}

/* Optional → Pastel Orange */
.row.status-optional {
  border-left: 6px solid #ffcc99;
}

/* Test → Pastel Yellow */
.row.status-test {
  border-left: 6px solid #fff59d;
}

/* ===== ROW POP ===== */

.row {
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: 0.2s;
}

/* ===== TOOLTIP ===== */

.tooltip {
  font-size: 11px;
  opacity: 0.6;
}


/* ===== MODAL ===== */

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* UNASSIGNED SIDE BAR */
.row.nohw {
  position: relative;
}

.row.nohw::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 6px;
  height: 100%;
  background: #ff4d4d;
  border-radius: 4px;
}

#addSection {
  display: none;
}

#addSection.visible {
  display: flex;
}

.top-bar {
  width: 100%;
  padding: 0px 20px;
}

/* FIRST ROW */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 60px;
  padding: 0 20px;

  position: relative;

  /* 🔥 FULL WIDTH BREAKOUT */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);

  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

/* Presence bar below */
#presenceBar {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);

  display: flex;
  align-items: center;
  gap: 6px;

  padding-bottom: 6px;
}

/* Home button styling */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);

  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ===============================
   ACCOUNT PAGE
=============================== */

.account-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
}

.account-panel {
  width: 500px;
  height: 650px;

  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#signOut {
  margin-top: auto;
  margin-bottom: 10px;
  width: 90%;
}

/* SIGN OUT AT PAGE BOTTOM */
.signout-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* ===== HOME BUTTON ===== */

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ===== BANNER ===== */

.banner {
  height: 140px;
  position: relative;
  padding: 12px;
  font-weight: 600;
}

/* Positioning */

#uid {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 12px;
}

#role {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 12px;
}

#displayName {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
}

/* Role Gradients (stronger like you wanted) */

.role-user {
  background: linear-gradient(to right, #9be89b, #2ecc71);
}

.role-editor {
  background: linear-gradient(to right, #ffc48a, #ff7f2a);
}

.role-admin {
  background: linear-gradient(to right, #9ecbff, #2f6fff);
}

/* ===== ACCOUNT INFO ===== */

.account-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== BUTTONS ===== */

.account-info button {
  height: 45px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.account-info button:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

button.danger {
  background: #ff5c5c;
  color: white;
}

/* ===== CLASS SECTION ===== */

.class-section {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* ===== CLASS ROW ===== */

.class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px;
  margin-top: 10px;

  border: 1px solid var(--border-color);
  border-radius: var(--radius);

  background: var(--bg-elevated);
}

/* ===== TOAST ===== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: var(--bg-secondary);
  padding: 10px 15px;
  border-radius: var(--radius);

  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Smaller class buttons */
.class-row button {
  width: 28px;
  height: 28px;
  font-size: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border-radius: 6px;
}

/* Optional: tighter spacing */
.class-row {
  padding: 10px;
}

.top-bar-account {
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

/* Title styling */
.page-title-account {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* ================= AUDIT ================= */

.audit-row {
  flex-direction: column;
  align-items: flex-start;
}

.audit-top {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.audit-change {
  margin-top: 5px;
  font-size: 14px;
}

.before {
  color: #ff7f7f;
}

.after {
  color: #7fff7f;
}

/* =========================================
   TOOLBENCH HOMEWORK DISPLAY SYSTEM
   ========================================= */

   .tb-display-page {
    padding: 24px;
  }
  
  /* TOP BAR */
  
  .tb-display-toprow {
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    margin-bottom: 20px;
    padding-bottom: 14px;
  
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .tb-display-title {
  
    font-size: 22px;
    font-weight: 700;
  
    color: #dce7ff;
  }
  
  .tb-display-home {
  
    width: 38px;
    height: 38px;
  
    border-radius: 10px;
  
    border: 1px solid rgba(255,255,255,0.08);
  
    background: rgba(255,255,255,0.03);
  
    color: #dce7ff;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    cursor: pointer;
  
    transition: 0.2s ease;
  }
  
  .tb-display-home:hover {
  
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
  }
  
  /* SECTION */
  
  .tb-display-section {
  
    position: relative;
  
    margin-bottom: 20px;
  
    border-radius: 18px;
  
    overflow: hidden;
  
    background: rgba(255,255,255,0.03);
  
    border: 1px solid rgba(255,255,255,0.06);
  }
  
  /* SECTION SIDEBAR */
  
  .tb-display-section::before {
  
    content: "";
  
    position: absolute;
  
    left: 0;
    top: 0;
    bottom: 0;
  
    width: 7px;
  }
  
  /* CLEAN SINGLE SIDEBAR */
  
  .tb-display-section-blue::before {
    background: #8eb8ff;
  }
  
  .tb-display-section-red::before {
    background: #ff9fa1;
  }
  
  /* SECTION HEADER */
  
  .tb-display-section-header {

    display: flex;
    align-items: center;
  
    padding: 18px 22px;
  
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  
  /* SECTION TITLE */
  
  .tb-display-section-title {

    font-size: 18px;
    font-weight: 700;
  
    color: #ffffff;
  
    letter-spacing: 0.2px;
  
    white-space: nowrap;
  
    overflow: hidden;
  
    text-overflow: ellipsis;
  
    flex: 1;
  
    margin: 0;
  }
  
  /* COMPLETED SECTION */
  
  /* FORCE GREEN SIDEBAR */
  
  .tb-display-section-complete::before {
  
    background: #a8ddb5 !important;
  }
  
  /* COMPLETED SECTION TITLE */

  .tb-display-section-complete
  .tb-display-section-title {

    color: #74b774 !important;

  }
  
  /* ROW CONTAINER */
  
  .tb-display-rows {
  
    display: flex;
    flex-direction: column;
  }
  
  /* ROW */
  
  .tb-display-row {
  
    position: relative;
  
    display: grid;
  
    grid-template-columns:
      22px
      1fr
      120px
      110px
      110px;
  
    align-items: center;
  
    gap: 12px;
  
    padding: 12px 18px;
  
    min-height: 54px;
    max-height: 54px;
  
    overflow: hidden;
  
    border-bottom: 1px solid rgba(255,255,255,0.05);
  
    transition: background 0.2s ease;

    isolation: isolate;
  }

  .tb-display-checkbox {

    z-index: 5;
  }
  
  /* SECTION CHECKBOX */

  .tb-display-checkbox,
  .tb-display-section-checkbox {

    appearance: none;
    -webkit-appearance: none;

    width: 16px;
    height: 16px;

    border-radius: 5px;

    border: 2px solid #a8ddb5;
    background: rgba(255,255,255,0.04);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    flex-shrink: 0;
  }

  /* STATE CHECKBOX OVERRIDES */

  /* UNASSIGNED */
  .tb-display-row-unassigned .tb-display-checkbox {

    background: #ffd9d9 !important;
    border-color: #f0a4a4 !important;
  }

  /* COMPLETE */
  .tb-display-row-complete .tb-display-checkbox:not(:checked) {

    background: #d8f4d8 !important;
    border-color: #9fd8a7 !important;
  }

  /* KEEP CHECKED STATE GREEN */
  .tb-display-row-unassigned .tb-display-checkbox:checked,
  .tb-display-row-complete .tb-display-checkbox:checked {

    background: #a8ddb5 !important;
    border-color: #a8ddb5 !important;
  }
  
  .tb-display-checkbox::after,
  .tb-display-section-checkbox::after {

    content: "✓";

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    color: white;

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -55%) scale(0);

    transition: 0.12s ease;
  }

  .tb-display-checkbox:checked::after,
  .tb-display-section-checkbox:checked::after {

    transform: translate(-50%, -55%) scale(1);
  }

  .tb-display-checkbox:checked,
  .tb-display-section-checkbox:checked {

    background: #a8ddb5;
    border-color: #a8ddb5;
  }

  /* DESCRIPTION */
  
  .tb-display-desc {
  
    font-size: 14px;
    font-weight: 500;
  
    color: #dce7ff;
  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* DATE */
  
  .tb-display-date {
  
    text-align: right;
  
    font-size: 13px;
  
    color: #d5e0ff;
  }

  /* DAYS LEFT */
  
  .tb-display-days {
  
    text-align: right;
  
    font-size: 13px;
  
    font-style: italic;
  }
  
  /* DUE COLORS */
  
  .due-green {
    color: #9fd8a7;
  }
  
  .due-yellow {
    color: #ffe39d;
  }
  
  .due-red {
    color: #ffb3b3;
  }
  
  .due-overdue {
    color: #ff9494;
  }
  
  /* STATUS TEXT */
  
  .tb-display-status {
  
    text-align: right;
  
    font-size: 13px;
  
    font-weight: 400;
  }
  
  /* ASSIGNED */
  
  .status-assigned
  .tb-display-status {
  
    color: #a8ddb5;
  }
  
  /* OPTIONAL */
  
  .status-optional
  .tb-display-status {
  
    color: #ffd6a5;
  }
  
  /* TEST */
  
  .status-test
  .tb-display-status {
  
    color: #fff0a6;
  }
  
  /* UNASSIGNED */
  
  .status-unassigned
  .tb-display-status {
  
    color: #ffb7b7;
  }
  
  /* COMPLETED ROW */
  
  .tb-display-section-complete {

    background: #d8f4d8 !important;
  
    border: 1px solid rgba(168,221,181,0.35);
  }
  
  /* HIDE CONTENT */
  
  .tb-display-row-complete
  .tb-display-desc,
  
  .tb-display-row-complete
  .tb-display-date,
  
  .tb-display-row-complete
  .tb-display-days,
  
  .tb-display-row-complete
  .tb-display-status {
  
    opacity: 0;
  }
  
  /* CENTER LABEL */
  
  .tb-display-row-complete::after {
  
    content: "Completed";
  
    position: absolute;
  
    left: 50%;
    transform: translateX(-50%);
  
    font-weight: 700;
  
    color: #74b774;
  
    pointer-events: none;
  }
  
  
  /* UNASSIGNED ROW */
  
  .tb-display-row-unassigned {
  
    background: #ffd9d9 !important;
  
    min-height: 54px;
    max-height: 54px;
  }

  .tb-display-row-complete {
    background: #d8f4d8 !important;
  }
  
  /* HIDE CONTENT */
  
  .tb-display-row-unassigned
  .tb-display-desc,
  
  .tb-display-row-unassigned
  .tb-display-date,
  
  .tb-display-row-unassigned
  .tb-display-days,
  
  .tb-display-row-unassigned
  .tb-display-status {
  
    opacity: 0;
  }
  
  /* CENTER LABEL */
  
  .tb-display-row-unassigned::after {
  
    content: "Unassigned";
  
    position: absolute;
  
    left: 50%;
    transform: translateX(-50%);
  
    font-weight: 700;
  
    color: #f08d8d;
  
    pointer-events: none;
  }
  
  
  /* HOVER */
  
  .tb-display-row:hover {
  
    background: rgba(255,255,255,0.03);
  }
  
  /* KEEP COMPLETE COLOR */
  
  .tb-display-row-complete:hover {
  
    background: #d8f4d8 !important;
  }
  
  /* KEEP UNASSIGNED COLOR */
  
  .tb-display-row-unassigned:hover {
  
    background: #ffd9d9 !important;
  }
  
  
  /* RESPONSIVE */
  
  @media (max-width: 900px){
  
    .tb-display-row {
  
      grid-template-columns:
        22px
        1fr;
  
      grid-template-rows:
        auto
        auto
        auto
        auto;
    }
  
    .tb-display-date,
    .tb-display-days,
    .tb-display-status {
  
      text-align: left;
    }
  }

  .tb-display-section-header-left {

    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .tb-display-section-title {
  
    margin: 0;
  
    white-space: nowrap;
  
    color: #f2f6ff;
  }

  .tb-display-rows {
    display: flex;
    flex-direction: column;
    padding-bottom: 14px; /* space under last row */
  }

  .tb-display-rows {
    display: flex;
    flex-direction: column;
  
    padding: 0 14px 14px 14px; /* left + right + bottom spacing */
    box-sizing: border-box;
  }

/* =========================================================
   CONTROL PANEL ROOT
========================================================= */

:root{
  --cp-bg:#000000;
  --cp-surface:#0d0d0d;
  --cp-surface-2:#141414;
  --cp-border:#1f1f1f;

  --cp-text:#ffffff;
  --cp-text-soft:rgba(255,255,255,0.62);

  --cp-radius:18px;
  --cp-transition:0.18s ease;

  --cp-col-period: 90px;
  --cp-col-day: minmax(110px, 1fr);
  --cp-col-saturday-period: 90px;
  --cp-col-saturday: minmax(160px, 1fr);
}

/* =========================================================
   GLOBAL
========================================================= */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:#000;
  color:#fff;
  font-family:Inter,sans-serif;
}

/* =========================================================
   MAIN
========================================================= */

.cp-main{
  margin-left:110px;
  padding:28px;
  min-height:100vh;

  background:#000;
}

/* =========================================================
   SIDEBAR
========================================================= */

.cp-sidebar{
  position:fixed;

  top:16px;
  left:16px;

  width:72px;
  height:calc(100vh - 32px);

  background:#050505;

  border:1px solid #181818;
  border-radius:24px;

  display:flex;
  flex-direction:column;
  align-items:center;

  padding-top:18px;

  z-index:999;
}

.cp-sidebar-top{
  display:flex;
  flex-direction:column;
  gap:14px;

  width:100%;
  align-items:center;
}

.cp-sidebar-btn{
  width:46px;
  height:46px;

  border:none;
  border-radius:14px;

  background:transparent;
  color:rgba(255,255,255,0.65);

  cursor:pointer;

  transition:0.18s ease;
}

.cp-sidebar-btn:hover{
  background:#111;
  color:#fff;
}

.cp-sidebar-btn.active{
  background:#171717;
  color:#fff;
}

/* =========================================================
   TABS
========================================================= */

.cp-tab{
  display:none;
}

.cp-tab.active{
  display:block;
}

/* =========================================================
   SECTION HEADERS
========================================================= */

.cp-section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:18px;
}

/* =========================================================
   BUTTONS
========================================================= */

.tb-btn,
.cp-btn{
  height:42px;

  padding:0 16px;

  border:none;
  border-radius:12px;

  background:#1a1a1a;
  color:#fff;

  font-size:13px;
  font-weight:600;

  cursor:pointer;

  transition:0.18s ease;
}

.tb-btn:hover,
.cp-btn:hover{
  background:#252525;
}

.tb-btn.primary,
.cp-btn-primary{
  background:#2a2a2a;
}

.tb-btn.primary:hover,
.cp-btn-primary:hover{
  background:#343434;
}

/* /* =========================================================
   SCHEDULE ROOT
========================================================= */


/* =========================================================
   ANNOUNCEMENTS
========================================================= */

.announcement{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:18px;

  border-radius:16px;

  background:#0f0f0f;

  border:1px solid #262626;

  margin-bottom:10px;
}

.announcement-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.announcement-type{
  font-size:11px;
  font-weight:700;

  letter-spacing:0.08em;

  text-transform:uppercase;

  opacity:0.55;
}

.announcement-title{
  font-size:15px;
  font-weight:700;
}

.announcement-message{
  font-size:13px;
  opacity:0.72;
}

/* =========================================================
   COUNTDOWNS
========================================================= */

.countdown{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:18px;

  border-radius:16px;

  background:#0f0f0f;

  border:1px solid #262626;

  margin-bottom:10px;
}

.countdown-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.countdown-type{
  font-size:11px;
  font-weight:700;

  text-transform:uppercase;

  letter-spacing:0.08em;

  opacity:0.55;
}

.countdown-title{
  font-size:15px;
  font-weight:700;
}

.countdown-date{
  font-size:13px;
  opacity:0.7;
}

/* =========================================================
   ANNOUNCEMENTS
========================================================= */

.cp-announcement-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.announcement{
  background:#0f0f0f;

  border:1px solid #232323;
  border-radius:16px;

  padding:18px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.announcement-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.announcement-type{
  font-size:11px;
  font-weight:700;

  text-transform:uppercase;
  letter-spacing:0.08em;

  color:rgba(255,255,255,0.48);
}

.announcement-title{
  font-size:15px;
  font-weight:700;
}

.announcement-message{
  font-size:13px;
  color:rgba(255,255,255,0.68);
}

.announcement.important{
  border-color:#4d2424;
  background:#1a1010;
}

.announcement.maintenance{
  border-color:#54411d;
  background:#18140d;
}

.announcement.general{
  border-color:#2b2b2b;
}

.announcement.info{
  border-color:#1f3654;
  background:#0d141d;
}

/* =========================================================
   COUNTDOWNS
========================================================= */

.cp-countdown-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.countdown{
  background:#0f0f0f;

  border:1px solid #232323;
  border-radius:16px;

  padding:18px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.countdown-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.countdown-type{
  font-size:11px;
  font-weight:700;

  text-transform:uppercase;
  letter-spacing:0.08em;

  color:rgba(255,255,255,0.48);
}

.countdown-title{
  font-size:15px;
  font-weight:700;
}

.countdown-date{
  font-size:13px;
  color:rgba(255,255,255,0.68);
}

.countdown.test{
  border-color:#5a4a18;
  background:#17140c;
}

.countdown.celebration{
  border-color:#1e4b35;
  background:#0d1712;
}

/* =========================================================
   DATE PICKER ICON FIX
========================================================= */

.tb-modal-body input[type="date"]::-webkit-calendar-picker-indicator {

  filter: invert(1);

  opacity: 1;

  cursor: pointer;

  padding: 4px;

  border-radius: 6px;

  background-color: rgba(255,255,255,0.08);
}

/* =========================================================
   ICON BUTTON
========================================================= */

.icon-btn{
  width:34px;
  height:34px;

  border:none;
  border-radius:10px;

  background:#171717;
  color:rgba(255,255,255,0.72);

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  transition:0.18s ease;
}

.icon-btn:hover{
  background:#222;
  color:#fff;
}

/* =========================================================
   DECOR
========================================================= */

.cp-holiday-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.holiday-toggle-row{
  background:#0f0f0f;

  border:1px solid #222;
  border-radius:16px;

  padding:16px 18px;
  font-weight: 500;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* =========================================================
   SWITCH
========================================================= */

.cp-switch{
  position:relative;

  width:52px;
  height:28px;
}

.cp-switch input{
  opacity:0;
  width:0;
  height:0;
}

.cp-slider{
  position:absolute;
  inset:0;

  background:#252525;

  border-radius:999px;

  transition:0.18s ease;
}

.cp-slider::before{
  content:"";

  position:absolute;

  width:20px;
  height:20px;

  left:4px;
  top:4px;

  background:#fff;

  border-radius:50%;

  transition:0.18s ease;
}

.cp-switch input:checked + .cp-slider{
  background:#3b82f6;
}

.cp-switch input:checked + .cp-slider::before{
  transform:translateX(24px);
}

/* =========================================================
   MODAL
========================================================= */

.tb-modal-backdrop{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,0.72);

  backdrop-filter:blur(8px);

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:99999;
}

.tb-modal-backdrop.hidden{
  display:none;
}

.tb-modal-window{
  width:min(700px, calc(100vw - 120px));

  background:#0b0b0b;

  border:1px solid #1f1f1f;
  border-radius:22px;

  overflow:hidden;
}

.tb-modal-header{
  padding:22px 24px;

  border-bottom:1px solid #1f1f1f;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.tb-modal-title{
  font-size:20px;
  font-weight:700;
}

.tb-modal-body{
  padding:24px;

  display:flex;
  flex-direction:column;
  gap:18px;
}

.tb-modal-footer{
  padding:22px 24px;

  border-top:1px solid #1f1f1f;

  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* =========================================================
   FIELDS
========================================================= */

.tb-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.tb-field label{
  font-size:12px;
  font-weight:600;

  color:rgba(255,255,255,0.62);
}

.tb-field input,
.tb-field select,
.tb-field textarea{
  width:100%;

  background:#111;

  border:1px solid #252525;
  border-radius:12px;

  padding:13px 14px;

  color:#fff;

  outline:none;
}

.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus{
  border-color:#3a3a3a;
}


/* =========================================================
   SCHEDULE SYSTEM
========================================================= */

.cp-schedule-wrapper{
  width:100%;
  overflow-x:auto;
}

.cp-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:1400px;
}

/* =========================================================
 ROW WRAPPER
========================================================= */

.cp-row-wrapper{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  gap:10px;
  align-items:center;
}

/* =========================================================
 STATIC ROWS
========================================================= */

.cp-static-row {
  display: grid;
  gap: 8px;

  grid-template-columns:
    var(--cp-col-period)
    repeat(5, var(--cp-col-day))
    var(--cp-col-saturday-period)
    var(--cp-col-saturday);
}

.cp-row {
  display: grid;
  gap: 8px;

  grid-template-columns:
    var(--cp-col-period)
    repeat(5, var(--cp-col-day))
    var(--cp-col-saturday-period)
    var(--cp-col-saturday);
}

.cp-static-row .cp-cell{
  min-height:48px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:13px;
  font-weight:700;

  background:#111;
  color:#fff;

  border:1px solid #2a2a2a;
}

/* =========================================================
 ENTER CAMPUS
========================================================= */

.cp-enter-campus{
  grid-column:2 / 9;

  min-height:48px !important;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================================
 BASE CELL
========================================================= */

.cp-cell{
  min-height:60px;
  
  border-radius:14px;
  border:1px solid #2a2a2a;

  padding:8px 8px;

  display:flex;
  flex-direction:column;

  justify-content:flex-start;
  align-items:flex-start;

  overflow:hidden;

  transition:0.18s ease;

  box-sizing:border-box;
}

.cp-cell:hover{
  border-color:#444;
}

/* =========================================================
 PERIOD CELL
========================================================= */

.cp-period{
  background:#101010;
  color:#fff;

  align-items:center;
  justify-content:center;

  text-align:center;

  cursor:pointer;
}

.cp-period-name{
  font-size:13px;
  font-weight:700;
}

.cp-period-time{
  margin-top:4px;

  font-size:11px;
  opacity:0.7;

  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

/* =========================================================
 BREAK ROWS
========================================================= */

.cp-row--half .cp-cell{
  min-height:48px;
}

/* =========================================================
 CELL CONTENT
========================================================= */

.cp-cell-content{
  width:100%;

  display:flex;
  flex-direction:column;

  gap:3px;
}

/* SUBJECT + ROOM SAME ROW */

.cp-top-row{
  width:100%;

  display:flex;
  align-items:center;

  gap:6px;

  overflow:hidden;
}

.cp-subject{
  font-size:13px;
  font-weight:700;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  flex:1;
}

.cp-dot{
  opacity:0.5;
  flex-shrink:0;
}

.cp-room{
  font-size:11px;
  opacity:0.82;

  white-space:nowrap;

  flex-shrink:0;
}

.cp-teacher{
  font-size:11px;
  opacity:0.72;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================================================
 DELETE BUTTON
========================================================= */

.cp-row-delete{
  width:38px;
  height:38px;

  border:none;
  border-radius:12px;

  background:#141414;
  color:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  transition:0.18s ease;
}

.cp-row-delete:hover{
  background:#1f1f1f;
}

/* =========================================================
 PASTEL COLORS
========================================================= */

.cp-cell.pastel-blue{
  background:#dcecff;
  border-color:#bfd9ff;
  color:#14263d;
}

.cp-cell.pastel-green{
  background:#def6df;
  border-color:#bfe7c1;
  color:#16341b;
}

.cp-cell.pastel-red{
  background:#ffe1e1;
  border-color:#f0bcbc;
  color:#4a1e1e;
}

.cp-cell.pastel-yellow{
  background:#fff2cf;
  border-color:#ecdca8;
  color:#4d3d10;
}

.cp-cell.pastel-grey{
  background:#ececec;
  border-color:#d6d6d6;
  color:#232323;
}

/* =========================================================
 ANNOUNCEMENTS
========================================================= */

.announcement{
  background:#0f0f0f;

  border:1px solid #2a2a2a;
  border-radius:16px;

  padding:18px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:12px;
}

/* =========================================================
 COUNTDOWNS
========================================================= */

.countdown{
  background:#0f0f0f;

  border:1px solid #2a2a2a;
  border-radius:16px;

  padding:18px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:12px;
}

/* Audit */

.section {
  margin-bottom: 24px;
  padding: 18px;
  background: #0f0f0f;
  border: 1px solid #232323;
  border-radius: 16px;
}

.section-header h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.audit-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: #121212;
  margin-bottom: 8px;
}

.audit-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.audit-change {
  font-size: 13px;
}

.before {
  color: #ff7f7f;
}

.after {
  color: #7fff7f;
}

.cp-nav-btn {
  width: 38px;
  height: 38px;

  background: transparent; /* cleaner match to your UI */
  border: none;        /* removes border completely */

  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: 0.18s ease;

  position: relative;
  color: rgba(255,255,255,0.75);
}

.cp-nav-btn:hover {
  background: #161616;
  color: #fff;
}

/* IMPORTANT: controls icon size properly */
.cp-nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =========================================================
   TOOLTIP SYSTEM
========================================================= */

[data-tooltip] {
  position: relative;
}

/* ================= BASE ================= */

.cp-tooltip {

  position: absolute;

  background: rgba(15,15,15,0.96);

  border: 1px solid #262626;

  color: #ffffff;

  font-size: 11px;
  font-weight: 500;

  padding: 6px 9px;

  border-radius: 8px;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
      opacity 0.16s ease,
      transform 0.16s ease;

  z-index: 9999;
}

/* =========================================================
 RIGHT TOOLTIP (DEFAULT)
========================================================= */

.cp-tooltip.right {

  top: 50%;
  left: calc(100% + 8px);

  transform: translateY(-50%);
}

[data-tooltip]:hover .cp-tooltip.right {

  opacity: 1;
  visibility: visible;

  transform:
      translateY(-50%)
      translateX(2px);
}

/* =========================================================
 BOTTOM TOOLTIP
========================================================= */

.cp-tooltip.bottom {

  left: 50%;
  top: calc(100% + 8px);

  transform: translateX(-50%);
}

[data-tooltip]:hover .cp-tooltip.bottom {

  opacity: 1;
  visibility: visible;

  transform:
      translateX(-50%)
      translateY(2px);
}

/* Button Stuff for CP */

.cp-list-button {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-row-button {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 12px;
  border-radius: 10px;

  background: #141414;
  border: 1px solid #242424;
}

.cp-row-main-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-row-main-button strong {
  font-size: 14px;
}

.cp-row-main-button span {
  font-size: 12px;
  color: #888;
  word-break: break-all;
}

/* =========================================================
   SNACK TAB
========================================================= */

#snack-tab {

  flex-direction: column;

  gap: 20px;

  position: relative;
}

/* =========================================================
   SELECTED COLLECTORS SECTION
========================================================= */

.snack-selected-wrapper {

  background: #141414;

  border: 1px solid #2a2a2a;

  border-radius: 16px;

  overflow: hidden;
}

.snack-selected-header {

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 20px;

  border-bottom: 1px solid #262626;
}

.snack-selected-title {

  font-size: 12px;
  font-weight: 600;

  color: rgba(255,255,255,0.92);
}

.snack-last-updated {

  font-size: 11px;

  color: rgba(255,255,255,0.46);
}

.snack-selected-list {

  padding: 16px;

  display: flex;
  flex-direction: column;

  gap: 12px;
}

.dashboard-snack-row {

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #181818;

  border: 1px solid #303030;

  border-radius: 12px;

  padding: 14px 16px;
}

.day-label {

  font-size: 13px;
  font-weight: 600;

  color: rgba(255,255,255,0.7);
}

.selected-snacks {

  font-size: 14px;
  font-weight: 600;

  color: #ffcf7b;
}

/* =========================================================
   DAY SUBSECTIONS
========================================================= */

.snack-sections {

  display: flex;
  flex-direction: column;

  gap: 18px;
}

.snack-section {

  background: #141414;

  border: 1px solid #2a2a2a;

  border-radius: 16px;

  overflow: hidden;
}

.snack-section-header {

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 18px;

  border-bottom: 1px solid #262626;
}

.snack-section-title {

  font-size: 14px;
  font-weight: 600;

  color: rgba(255,255,255,0.92);
}

/* =========================================================
   LIST
========================================================= */

.snack-list {

  display: flex;
  flex-direction: column;

  padding: 10px;
}

/* =========================================================
   NAME ROWS
========================================================= */

.snack-row {

  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 46px;

  background: #191919;

  border: 1px solid #303030;

  border-radius: 10px;

  padding: 0 12px;

  margin-bottom: 10px;

  transition: 0.16s ease;
}

.snack-row:hover {

  border-color: #404040;

  background: #1d1d1d;
}

.snack-row-name {

  font-size: 14px;

  color: rgba(255,255,255,0.88);
}

/* =========================================================
   FOOTER / ADD BUTTON
========================================================= */

.snack-section-footer {

  padding: 16px 18px;

  border-top: 1px solid #262626;

  margin-top: 4px;
}

.cp-small-btn {

  height: 36px;

  padding: 0 14px;

  border-radius: 10px;

  border: 1px solid #323232;

  background: #1c1c1c;

  color: rgba(255,255,255,0.82);

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition: 0.16s ease;
}

.cp-small-btn:hover {

  background: #232323;

  border-color: #454545;

  color: white;
}

/* =========================================================
   DELETE BUTTON
========================================================= */

.snack-delete-btn {

  width: 28px;
  height: 28px;

  border: none;

  background: transparent;

  color: rgba(255,255,255,0.45);

  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: 0.16s ease;
}

.snack-delete-btn:hover {

  background: rgba(255,70,70,0.12);

  color: #ff7b7b;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.snack-empty {

  padding: 18px;

  text-align: center;

  font-size: 13px;

  color: rgba(255,255,255,0.4);
}

/* ================= DASHBOARD LAYOUT ================= */

.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* ================= SIDEBAR ================= */

.dashboard-sidebar {

  position: sticky;
  top: 0;

  height: 100vh;

  width: 74px;

  flex-shrink: 0;

  background: var(--bg-secondary);

  border-right: 1px solid var(--border-color);

  padding: 18px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;

  z-index: 100;
}

/* hide text */

.sidebar-title,
.sidebar-btn span {

  display: none;
}

.sidebar-btn {

  width: 46px;
  height: 46px;

  padding: 0;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;

  border: none;

  color: rgba(255,255,255,0.72);

  transition: 0.16s ease;
}

.sidebar-btn i {

  font-size: 16px;

  width: auto;
}

.sidebar-btn:hover {

  background: rgba(255,255,255,0.06);

  color: white;
}

/* ================= MAIN ================= */

.dashboard-main {
  flex: 1;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ================= SECTIONS ================= */

.dashboard-main section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;

  padding: 16px;
}

.dashboard-main h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

/* ================= DECOR ================= */

.decor-banner {
  height: 80px;
  border-radius: 14px;

  background-size: cover;
  background-position: center;

  border: 1px solid var(--border-color);
}

/* ================= CAROUSEL ================= */

.carousel-wrapper {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  padding: 10px 0;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  min-width: 260px;
  flex-shrink: 0;

  scroll-snap-align: center;

  padding: 14px;

  border-radius: 14px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ================= ANNOUNCEMENTS ================= */

.announcement-card {
  border-radius: 14px;
  padding: 14px;
  color: white;
}

.announcement-type {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

/* TYPE THEMES */

.announcement-important {
  background: linear-gradient(135deg, #ff4d4d33, #ff000022);
  border: 1px solid rgba(255, 80, 80, 0.25);
}

.announcement-maintenance {
  background: linear-gradient(135deg, #4da3ff33, #0066ff22);
  border: 1px solid rgba(80, 160, 255, 0.25);
}

.announcement-general {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.announcement-info {
  background: linear-gradient(135deg, #7c4dff33, #4d00ff22);
  border: 1px solid rgba(140, 100, 255, 0.25);
}

/* ================= COUNTDOWN ================= */

.countdown-card {
  position: relative;
  padding: 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.countdown-title {
  margin-bottom: 6px;
}

.countdown-end {
  font-size: 12px;
  opacity: 0.75;
}

.countdown-percent {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 6px;
}

/* ================= DASHBOARD BUTTONS ================= */

#dashboardButtons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-btn {
  padding: 12px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.03);
  color: white;

  cursor: pointer;
  transition: 0.15s ease;
}

.dash-btn:hover {
  background: rgba(255,255,255,0.06);
}

/* ================= SNACK SYSTEM (SIMPLIFIED) ================= */

.snack-card {
  padding: 12px;
  border-radius: 12px;

  background: rgba(255,180,80,0.06);
  border: 1px solid rgba(255,180,80,0.15);
}

/* full width rows (your requirement) */
.snack-row {
  width: 100%;
  padding: 12px 14px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-radius: 10px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);

  font-size: 14px;
}

/* snack list spacing */
.snack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* ================= DASHBOARD GRID SYSTEM ================= */

.dashboard-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* responsive */
@media (max-width: 1200px) {
  .dashboard-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dashboard-grid-4 {
    grid-template-columns: 1fr;
  }
}

.carousel-card,
.announcement-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
}

.snack-box-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.snack-pill {
  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.countdown-days {

  margin-top: 8px;

  font-size: 13px;

  font-weight: 600;

  color: #ffcf7b;
}

/* ================= SNACK DUTY ================= */

.snack-duty-card {

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 16px 18px;

  border-radius: 14px;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  box-sizing: border-box;
}

.snack-duty-name {

  flex: 1;

  text-align: center;

  font-size: 15px;
  font-weight: 500;

  color: rgba(255,255,255,0.92);
}

.snack-duty-dot {

  width: 8px;
  height: 8px;

  border-radius: 999px;

  background: #ffb84d;

  flex-shrink: 0;
}

.snack-duty-empty {

  width: 100%;

  text-align: center;

  color: rgba(255,255,255,0.55);
}

/* =========================================================
   SNACK COLLECTOR DISPLAY
========================================================= */

.snack-display-row {

  width: 100%;

  display: flex;
  align-items: center;

  gap: 14px;
}

.snack-display-box {

  flex: 1;

  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;

  border-radius: 14px;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.92);

  font-size: 13px;
  font-weight: 600;
}

.snack-display-dot {

  width: 8px;
  height: 8px;

  border-radius: 999px;

  background: white;

  flex-shrink: 0;

  opacity: 0.9;
}

/* ================= COUNTDOWN ================= */

.countdown-days {

  margin-top: 10px;

  font-size: 13px;

  color: rgba(255,255,255,0.7);
}

/* ================= COUNTDOWN BAR ================= */

.progress-bar {

  width: 100%;

  height: 10px;

  margin-top: 14px;

  border-radius: 999px;

  overflow: hidden;

  background: rgba(255,255,255,0.06);
}

.progress-fill {

  height: 100%;

  border-radius: 999px;

  transition:
      width 0.4s ease,
      background 0.25s ease;
}

/* 100 -> 75 */

.progress-green {

  background:
      linear-gradient(
          90deg,
          #9fe6b8,
          #7ddfa4
      );
}

/* 75 -> 50 */

.progress-yellow {

  background:
      linear-gradient(
          90deg,
          #f5e7a1,
          #efd97f
      );
}

/* 50 -> 25 */

.progress-orange {

  background:
      linear-gradient(
          90deg,
          #f6c28b,
          #eea45f
      );
}

/* 25 -> 0 */

.progress-red {

  background:
      linear-gradient(
          90deg,
          #f2a0a0,
          #e57d7d
      );
}

/* ================= COUNTDOWN WIDTH FIX ================= */

.countdown {

  width: 100%;
}

.countdown-left {

  width: 100%;

  display: flex;
  flex-direction: column;
}

/* progress wrapper */

.progress-bar {

  width: 100%;

  align-self: stretch;

  box-sizing: border-box;
}

/* =========================================================
   DASHBOARD SCHEDULE
========================================================= */

.dashboard-schedule-grid {

  display: flex;
  flex-direction: column;

  gap: 10px;

  overflow-x: auto;

  padding-bottom: 6px;
}

.dashboard-schedule-grid .cp-row {

  min-width: 1100px;
}

/* =========================================================
   WELCOME
========================================================= */

.dashboard-welcome {

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.welcome-title {

  font-size: 28px;
  font-weight: 700;

  color: white;
}

.welcome-subtitle {

  font-size: 14px;

  color: rgba(255,255,255,0.6);
}

/* =========================================================
 FOOTER
========================================================= */

.dashboard-footer {

  margin-top: 20px;

  padding-top: 18px;

  border-top: 1px solid rgba(255,255,255,0.06);

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 12px;

  color: rgba(255,255,255,0.45);
}

/* =========================================================
   FOOTER
========================================================= */

.tb-footer {

  margin-top: 40px;

  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 22px;

  border-top: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.45);

  font-size: 13px;

  background:
      linear-gradient(
          to bottom,
          rgba(255,255,255,0.01),
          rgba(255,255,255,0.02)
      );

  border-radius: 14px 14px 0 0;
}

.tb-footer-left,
.tb-footer-right {

  letter-spacing: 0.3px;
}

.tb-footer-right {

  opacity: 0.7;
}

/* =========================================================
   ADMIN PANEL
========================================================= */

.admin-topbar {

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;

  padding: 14px;

  max-height: 50px;
}


.admin-title {
  font-weight: 700;

  line-height: 1.1;

  margin: 0;
}

.admin-search-wrapper {

  width: 320px;
}

.admin-search {

  width: 100%;

  border-radius: 14px;

  border:
      1px solid rgba(255,255,255,0.08);

  background:
      rgba(255,255,255,0.04);

  color: white;

  outline: none;

  transition: 0.2s;
}

.admin-search:focus {

  border:
      1px solid rgba(79,140,255,0.7);
}

/* =========================================================
 USER GRID
========================================================= */

.admin-users-grid {

  display: grid;

  grid-template-columns:
      repeat(4, 1fr);

  gap: 18px;
}

/* =========================================================
 USER CARD
========================================================= */

.admin-user-card {

  background:
      rgba(255,255,255,0.04);

  border:
      1px solid rgba(255,255,255,0.08);

  border-radius: 20px;

  padding: 18px;

  display: flex;
  flex-direction: column;

  gap: 18px;

  backdrop-filter: blur(12px);

  transition: 0.2s;
}

.admin-user-card:hover {

  transform:
      translateY(-2px);

  border:
      1px solid rgba(255,255,255,0.14);
}

.admin-user-top {

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-user-name {

  font-size: 20px;
  font-weight: 700;
}

.admin-role-pill {

  padding: 6px 12px;

  border-radius: 999px;

  background:
      rgba(255,255,255,0.08);

  font-size: 12px;

  text-transform: capitalize;
}

.admin-user-info {

  display: flex;
  flex-direction: column;

  gap: 10px;

  font-size: 14px;

  opacity: 0.85;

  word-break: break-word;
}

/* =========================================================
 ACTION BUTTONS
========================================================= */

.admin-user-actions {

  display: grid;

  grid-template-columns:
      repeat(2, 1fr);

  gap: 10px;
}

.admin-btn {

  border: none;

  border-radius: 12px;

  padding: 12px;

  cursor: pointer;

  background:
      rgba(255,255,255,0.06);

  color: white;

  transition: 0.2s;

  font-weight: 600;
}

.admin-btn:hover {

  background:
      rgba(255,255,255,0.12);
}

.admin-btn-danger {

  background:
      rgba(255,80,80,0.16);
}

.admin-btn-danger:hover {

  background:
      rgba(255,80,80,0.28);
}

/* =========================================================
 MODAL OVERLAY
========================================================= */

.tb-modal-overlay {

  position: fixed;

  inset: 0;

  background:
      rgba(0,0,0,0.7);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 9999;

  backdrop-filter: blur(6px);
}

.tb-modal-overlay.active {

  display: flex;
}

/* =========================================================
 MODAL
========================================================= */

.tb-modal {

  width: 520px;

  max-width: 95vw;

  max-height: 90vh;

  overflow-y: auto;

  border-radius: 22px;

  background: #000000;

  border:
      1px solid rgba(255,255,255,0.08);

  box-shadow:
      0 20px 60px rgba(0,0,0,0.5);
}

/* =========================================================
 MODAL HEADER
========================================================= */

.tb-modal-header {

  padding: 18px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom:
      1px solid rgba(255,255,255,0.06);
}

/* =========================================================
 MODAL BODY
========================================================= */

.tb-modal-body {

  padding: 20px;

  display: flex;
  flex-direction: column;

  gap: 18px;
}

/* =========================================================
 MODAL FOOTER
========================================================= */

.tb-modal-footer {

  padding: 18px 20px;

  border-top:
      1px solid rgba(255,255,255,0.06);
}

/* =========================================================
 CLOSE BUTTON
========================================================= */

#closeAdminModal {

  width: 28px;
  height: 28px;

  border-radius: 8px;

  border: none;

  background:
      rgba(255,255,255,0.05);

  color: white;

  font-size: 12px;

  cursor: pointer;

  transition: 0.2s;
}

#closeAdminModal:hover {

  background:
      rgba(255,255,255,0.12);
}

/* =========================================================
 FORM FIELDS
========================================================= */

.tb-field {

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.tb-field label {

  font-size: 14px;
  font-weight: 600;

  opacity: 0.85;
}

.tb-field input,
.tb-field textarea,
.tb-field select {

  width: 100%;

  padding: 14px;

  border-radius: 12px;

  border:
      1px solid rgba(255,255,255,0.08);

  background:
      rgba(255,255,255,0.05);

  color: white;

  outline: none;

  transition: 0.2s;
}

.tb-field input:focus,
.tb-field select:focus {

  border:
      1px solid rgba(79,140,255,0.7);
}

.tb-field input:disabled {

  opacity: 0.6;

  cursor: not-allowed;
}

/* =========================================================
 SAVE BUTTON
========================================================= */

.tb-btn {

  width: 100%;

  border: none;

  border-radius: 14px;

  padding: 14px;

  background:
      rgba(255,255,255,0.08);

  color: white;

  cursor: pointer;

  transition: 0.2s;

  font-weight: 600;
}

.tb-btn:hover {

  background:
      rgba(255,255,255,0.14);
}

/* =========================================================
   TOAST
========================================================= */

.tb-toast {

  position: fixed;

  bottom: 24px;
  right: 24px;

  padding: 14px 18px;

  border-radius: 14px;

  background: #000000;

  border:
      1px solid rgba(255,255,255,0.08);

  color: white;

  z-index: 99999;

  opacity: 0;

  transform:
      translateY(10px);

  transition:
      opacity 0.25s ease,
      transform 0.25s ease;

  box-shadow:
      0 12px 40px rgba(0,0,0,0.55);

  backdrop-filter: blur(8px);

  min-width: 240px;

  font-size: 14px;
  font-weight: 500;
}

.tb-toast.show {

  opacity: 1;

  transform:
      translateY(0);
}

.tb-toast.error {

  border:
      1px solid rgba(255,80,80,0.35);
}

.tb-toast.success {

  border:
      1px solid rgba(79,140,255,0.35);
}

/* =========================================================
 RESPONSIVE
========================================================= */

@media (max-width: 1400px) {

  .admin-users-grid {

      grid-template-columns:
          repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {

  .admin-users-grid {

      grid-template-columns:
          repeat(2, 1fr);
  }
}

@media (max-width: 700px) {

  .admin-users-grid {

      grid-template-columns:
          1fr;
  }

  .admin-topbar {

      flex-direction: column;

      align-items: stretch;
  }

  .admin-search-wrapper {

      width: 100%;
  }
}