/************NON-SECURE AREA************/
#feedback {
  display: none;
  color: white;
  background-color: green;
  padding: 1rem;
  font-size: 1.1rem;
}
/***************************************/
/***************************************/
/***************************************/

/***********SECURE AREA***********/
/***********SECURE AREA***********/
/***********SECURE AREA***********/
#feedback2 {
  display: none;
  font-family: "Tahoma", sans-serif;
  text-align: center;
  color: white;
  background-color: green;
  padding: 0.5rem;
  font-size: 1.1rem;

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

#middle-section {
  display: flex;
}

#maincontent {
  display: block;
  background-color: white;
  width: calc(100vw - 250px);
  padding: 5px;
  position: relative;
}

#maincontent-head {
  display: flex;
  align-items: center;
  font-variant: small-caps;
  /* padding: 0 10px; */
  font-size: 1.2rem;
  font-weight: 500;
  /* border: 2px solid navy; */
  /* width: 90vw; */
}

#maincontent-external {
  display: block;
  width: 100vw;
  background-color: white;
  /* border: 1px solid red; */
}

/* SUB NAV */
/* <style> */
/* CONTAINER */
#pagesubnav {
  margin-left: auto;
}
.pagesubnav {
  position: relative;
  /* anchor for absolute dropdown */
  width: max-content;
  min-width: 220px;
  z-index: 50;
  /* base stacking context */
}

/* HEADER */
.pagesubnav-header {
  width: 100%;
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  cursor: pointer;
}

/* ARROW */
.pagesubnav-header .arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

/* DROPDOWN CONTENT (FLOATING) */
.pagesubnav-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: none;
  z-index: 100;
  /* floats above page content */
}

/* LINKS */
.pagesubnav-content a {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.pagesubnav-content a:last-child {
  border-bottom: none;
}

.pagesubnav-content a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* OPEN STATE */
.pagesubnav.open .pagesubnav-content {
  display: block;
}

.pagesubnav.open .pagesubnav-header .arrow {
  transform: rotate(-135deg);
}
/* </style> */

/* **SUB NAV** */
/* **APP ICON** */
/* <style> */
#cardblock {
  padding: 20px;
}

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 18px;
}

/* App tile */
.app-tile {
  text-decoration: none;
  text-align: center;
  padding: 16px 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.app-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Icon container */
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 44px;
}

/* Label */
.app-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

/* Color themes */
/* Core */
.bg-blue {
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

.bg-green {
  background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

.bg-purple {
  background: linear-gradient(135deg, #7b1fa2, #ab47bc);
}

/* Action / Attention */
.bg-orange {
  background: linear-gradient(135deg, #ef6c00, #ffa726);
}

.bg-red {
  background: linear-gradient(135deg, #c62828, #ef5350);
}

/* Neutral / Tools */
.bg-teal {
  background: linear-gradient(135deg, #00695c, #26a69a);
}

.bg-indigo {
  background: linear-gradient(135deg, #283593, #5c6bc0);
}

/* Human / Records */
.bg-pink {
  background: linear-gradient(135deg, #ad1457, #ec407a);
}

.bg-cyan {
  background: linear-gradient(135deg, #00838f, #26c6da);
}

.bg-brown {
  background: linear-gradient(135deg, #4e342e, #8d6e63);
}
/* Academic / Performance */
.bg-emerald {
  background: linear-gradient(135deg, #059669, #34d399);
}

/* Mobile polish */
@media (max-width: 600px) {
  .app-label {
    font-size: 12.5px;
  }
}
/* </style> */
/* **APP ICON** */
/* **OPTION BAR** */
/* ==============================
   OPTION BAR (STRICTLY SCOPED)
   ============================== */

.option-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}
#optionBar .nav-actions {
  /* display: flex; */
  flex-wrap: wrap;
  /* border: 3px solid red; */
}
/* Option blocks */
.option-bar .option-item {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

/* Labels */
.option-bar .option-item label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Select fields */
.option-bar select,
.option-bar input[type="text"],
.option-bar input[type="email"],
.option-bar input[type="tel"] {
  height: 38px;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  font-size: 0.9rem;
  background-color: #fafafa;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.option-bar select:focus,
.option-bar input[type="text"]:focus,
.option-bar input[type="email"]:focus,
.option-bar input[type="tel"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Text Fields */
.option-bar input[type="text"] {
  height: 38px;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  font-size: 0.9rem;
  background-color: #fafafa;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}
/* Actions container */
.option-bar .option-item.actions {
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

/* Buttons (scoped) */
.option-bar .btn-primary {
  height: 38px;
  padding: 0 1.1rem;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.option-bar .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.option-bar .btn-outline {
  height: 38px;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #444;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.option-bar .btn-outline:hover {
  background: #f5f7fb;
  border-color: #bfbfbf;
}

/* ================================
   OPTION BAR – DATE INPUT
   Scoped to .option-bar only
================================ */

.option-bar input[type="date"].dates {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.75rem;

  font-size: 0.95rem;
  font-family: inherit;
  color: #1f2937;

  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

/* Hover */
.option-bar input[type="date"].dates:hover {
  border-color: #93c5fd;
}

/* Focus */
.option-bar input[type="date"].dates:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Disabled (future-proof) */
.option-bar input[type="date"].dates:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ==============================
   OPTION BAR – NAVIGATION LINKS
   ============================== */

.option-bar .nav-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
}

/* Base nav link */
.option-bar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  height: 42px;
  padding: 0 1.2rem;

  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;

  border-radius: 12px;

  transition: all 0.2s ease;
  cursor: pointer;
}

/* Primary (Add) */
.option-bar .nav-link.primary {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.option-bar .nav-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* Secondary (View/Edit) */
.option-bar .nav-link.secondary {
  background: #f8fafc;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.option-bar .nav-link.secondary:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-2px);
}
/* Active State */
.option-bar .nav-link.active.primary {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.option-bar .nav-link.active.secondary {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-2px);
}
/* Icon size */
.option-bar .nav-link i {
  font-size: 0.9rem;
}

/* Responsive behavior */
/* @media (max-width: 900px) {
  .option-bar {
    width: calc(100vw - 100px);
    border: 1px solid red;
    padding: 0.9rem;
  }
} */
@media (max-width: 768px) {
  .option-bar {
    padding: 0.9rem;
  }

  .option-bar .option-item {
    min-width: 100%;
  }

  .option-bar .option-item.actions {
    justify-content: flex-end;
  }
}
/* **OPTION BAR** */

/* ***********************START************************* */
/* **LOADER CONTROLLER** */
/* **LOADER CONTROLLER** */
/* **LOADER CONTROLLER** */
/* ************************END************************ */
/* ======================================================
   GLOBAL LOADING OVERLAY
====================================================== */

.zs-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  animation: zsFadeIn 0.25s ease;
  transition: 0.25s ease;
}

/* OPTIONAL BACKDROP BLUR */
.zs-loading-overlay.blur-bg {
  backdrop-filter: blur(4px);
}

/* HIDE */
.zs-loading-hide {
  opacity: 0;
  visibility: hidden;
}

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

.zs-loading-card {
  width: min(92%, 360px);
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.18),
    0 5px 15px rgba(0, 0, 0, 0.08);

  animation: zsScaleIn 0.25s ease;
}

/* ======================================================
   TEXT
====================================================== */

.zs-loading-message {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.zs-loading-submessage {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ======================================================
   RING SPINNER
====================================================== */

.zs-spinner-ring {
  width: 64px;
  height: 64px;
  margin: auto;

  border-radius: 50%;

  border: 5px solid #e5e7eb;
  border-top-color: #2563eb;

  animation: zsSpin 0.8s linear infinite;
}

/* ======================================================
   DOT SPINNER
====================================================== */

.zs-spinner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.zs-spinner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;

  animation: zsBounce 1s infinite ease-in-out;
}

.zs-spinner-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.zs-spinner-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

/* ======================================================
   PULSE
====================================================== */

.zs-spinner-pulse {
  width: 65px;
  height: 65px;
  margin: auto;

  border-radius: 50%;
  background: #2563eb;

  animation: zsPulse 1s infinite ease;
}

/* ======================================================
   PROGRESS BAR
====================================================== */

.zs-progress-wrap {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
  margin-top: 18px;
}

.zs-progress-bar {
  height: 100%;
  width: 0%;
  background: #2563eb;
  transition: 0.3s ease;
}

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

.zs-loading-close-btn {
  margin-top: 18px;
  border: none;
  background: #ef4444;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* ======================================================
   ANIMATIONS
====================================================== */

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

@keyframes zsBounce {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes zsPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

@keyframes zsFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zsScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ******************************************************* */
/* **LOADER CONTROLLER** */
/* **LOADER CONTROLLER** */
/* **LOADER CONTROLLER** */
/* ******************************************************* */

@media (max-width: 900px) {
  #maincontent {
    width: 100vw;
  }
}
@media (max-width: 550px) {
  #maincontent-head {
    flex-direction: column;
  }
  #pagesubnav {
    margin: auto;
  }
}
