
/* ==========================================
   AI SMARTPHONE SECURITY SIMULATOR
   COMPLETE STYLESHEET
========================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 16px;
  background: radial-gradient(
    ellipse at top,
    #344966,
    #172338 55%,
    #080d16
  );
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.page-header h1 {
  font-size: 24px;
  margin: 10px 0;
}

.page-header p,
.page-footer {
  color: #c3cfdf;
  font-size: 13px;
}

.scene {
  min-height: 730px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
}

/* ==========================================
   3D PHONE
========================================== */

.phone {
  --rotate-x: 4deg;
  --rotate-y: -12deg;

  position: relative;
  width: 320px;
  height: 640px;
  flex-shrink: 0;
  border: 7px solid #303642;
  border-radius: 48px;

  background: linear-gradient(
    110deg,
    #87909e,
    #292f3b 15%,
    #111722 50%,
    #5b6676 90%,
    #a4adba
  );

  box-shadow:
    18px 30px 55px #000a,
    inset 2px 0 3px #ffffff70;

  transform-style: preserve-3d;

  transform:
    rotateX(var(--rotate-x))
    rotateY(var(--rotate-y));

  animation: float 5s ease-in-out infinite;
  cursor: grab;
}

.phone.dragging {
  cursor: grabbing;
}

@keyframes float {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -17px;
  }
}

.floor-shadow {
  width: 255px;
  height: 35px;
  margin-top: 35px;
  background: #000a;
  border-radius: 50%;
  filter: blur(19px);
}

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

.side-button {
  position: absolute;
  z-index: 30;
  width: 8px;
  height: 48px;
  padding: 0;
  border: 1px solid #a1acbb;
  border-radius: 4px;

  background: linear-gradient(
    90deg,
    #303845,
    #a9b4c4,
    #454e5d
  );
}

.volume-up {
  left: -14px;
  top: 120px;
}

.volume-down {
  left: -14px;
  top: 182px;
}

.power-button {
  right: -14px;
  top: 145px;
  height: 75px;
}

/* ==========================================
   DISPLAY AND STATUS BAR
========================================== */

.display {
  position: absolute;
  inset: 3px;
  border-radius: 39px;
  overflow: hidden;
  background: #02050a;
  transform: translateZ(2px);
}

.dynamic-island {
  position: absolute;
  z-index: 12;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 26px;
  border-radius: 20px;
  background: #020307;
  pointer-events: none;
}

.status-bar {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 50px;
  padding: 0 24px;

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

  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
}

.screen {
  display: none;
  position: absolute;
  inset: 0;
  padding: 65px 18px 52px;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #8191a5 transparent;
  overscroll-behavior: contain;
}

.screen.active {
  display: block;
}

[hidden] {
  display: none !important;
}

/* ==========================================
   OFF AND LOCK SCREENS
========================================== */

.off-screen {
  background: black;
  text-align: center;
}

.off-screen p {
  margin-top: 235px;
  color: #777;
}

.lock-screen,
.home-screen {
  background: linear-gradient(
    150deg,
    #07124d,
    #41217e 28%,
    #c73578 52%,
    #ff9955 73%,
    #172a83
  );
}

.lock-content {
  text-align: center;
  margin-top: 35px;
}

.lock-symbol {
  font-size: 25px;
}

.lock-content h2 {
  margin: 10px 0 0;
  font-size: 60px;
  font-weight: 300;
}

.unlock-button {
  position: absolute;
  bottom: 70px;
  left: 10%;
  width: 80%;
  padding: 12px;
  color: white;
  background: #ffffff20;
  border: 0;
  border-radius: 12px;
}

/* ==========================================
   PHONE PASSCODE
========================================== */

.password-screen {
  background: linear-gradient(
    #171a3a,
    #070d1a
  );
  text-align: center;
}

.password-screen h3 {
  margin-top: 38px;
  font-size: 18px;
}

.passcode-dots {
  display: flex;
  justify-content: center;
  gap: 17px;
  margin: 26px 0;
}

.dot {
  width: 13px;
  height: 13px;
  border: 1px solid white;
  border-radius: 50%;
}

.dot.filled {
  background: white;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  max-width: 245px;
  margin: 15px auto;
}

.keypad button {
  width: 65px;
  height: 65px;
  border: 0;
  border-radius: 50%;
  background: #ffffff25;
  color: white;
  font-size: 24px;
}

.keypad button:hover {
  background: #ffffff45;
}

#password-message {
  color: #ffb7b7;
  min-height: 20px;
  font-size: 12px;
}

.phone-hint {
  color: #a9bbd1;
  font-size: 11px;
}

/* ==========================================
   HOME SCREEN
========================================== */

.home-screen h2 {
  margin-top: 22px;
  font-size: 23px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 14px;
  margin-top: 65px;
}

.app-grid button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 12px;
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  border-radius: 17px;
  font-size: 33px;
  box-shadow: 0 6px 15px #0005;
}

.bank-icon {
  background: linear-gradient(#1687ee, #0956ae);
}

.school-icon {
  background: linear-gradient(#a05df1, #6b24aa);
}

.defender-icon {
  background: linear-gradient(#25c59c, #087c65);
}

.dock {
  position: absolute;
  bottom: 55px;
  left: 5%;
  width: 90%;
  height: 66px;

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

  border-radius: 22px;
  background: #ffffff35;
  backdrop-filter: blur(14px);
}

.dock button {
  background: transparent;
  border: 0;
  font-size: 26px;
}

/* ==========================================
   SHARED APP STYLING
========================================== */

.app-screen h2 {
  font-size: 21px;
}

.app-screen h3 {
  font-size: 16px;
}

.app-screen p {
  font-size: 13px;
  line-height: 1.5;
}

.app-screen label {
  display: block;
  margin: 12px 0 5px;
  font-size: 12px;
  font-weight: bold;
}

.app-screen input,
.app-screen select {
  width: 100%;
  padding: 12px;
  margin: 7px 0;
  border: 1px solid #cdd7e5;
  border-radius: 8px;
  background: white;
  color: #142033;
  font-size: 13px;
}

.action-button,
.primary-button,
.danger-button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  color: white;
  font-weight: bold;
}

.primary-button {
  background: #167be8;
}

.danger-button {
  background: #c63743;
}

.action-button {
  background: #1264b6;
}

.feedback {
  min-height: 18px;
  font-size: 12px !important;
  overflow-wrap: anywhere;
}

.disclaimer {
  margin-top: 25px;
  font-size: 10px !important;
  color: #69778a;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -65px -18px 20px;
  padding: 62px 18px 18px;
  color: white;
}

.brand-header strong,
.brand-header small {
  display: block;
}

.brand-header small {
  margin-top: 4px;
}

.demo-label {
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: bold;
}

/* ==========================================
   BANKING
========================================== */

.banking-screen {
  background: #f3f6fb;
  color: #17253c;
}

.bank-header {
  background: #0755a5;
}

.bank-header strong {
  font-size: 17px;
}

.bank-action {
  background: #0755a5;
}

.auth-panel {
  padding: 10px 0 18px;
}

.auth-panel h2 {
  margin: 8px 0;
  font-size: 23px;
}

.auth-panel > p {
  color: #627188;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 4px;
}

.password-field input {
  flex: 1;
  min-width: 0;
}

.password-field button {
  padding: 10px 6px;
  border: 0;
  background: #e4eaf2;
  border-radius: 7px;
}

.text-button {
  display: block;
  margin: 12px auto;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #0755a5;
  font-size: 12px;
}

.auth-qr {
  display: block;
  width: 175px;
  height: 175px;
  margin: 18px auto;
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: white;
}

.manual-key {
  padding: 12px;
  border-radius: 8px;
  background: #e7edf5;
  color: #17253c !important;
  font-family: monospace;
  font-size: 11px !important;
  overflow-wrap: anywhere;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dashboard-heading p {
  margin: 0;
  color: #65748a;
}

.dashboard-heading h2 {
  margin: 5px 0 15px;
}

.logout-button {
  flex-shrink: 0;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: white;
  color: #475569;
  font-size: 11px;
}

.account-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dce4ef;
  border-left: 5px solid #1264b6;
  border-radius: 12px;
  background: white;
}

.account-card p {
  margin: 0;
  color: #52647d;
}

.account-card h2 {
  margin: 9px 0;
  font-size: 27px;
}

.account-card small {
  color: #65748a;
}

.savings-card {
  border-left-color: #e6ac27;
}

.quick-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.quick-actions button {
  flex: 1;
  padding: 12px 5px;
  border: 0;
  border-radius: 9px;
  background: #e0ebf9;
  color: #0755a5;
  font-weight: bold;
}

.content-panel {
  padding: 15px;
  margin: 15px 0;
  background: white;
  border-radius: 12px;
}

.content-panel h3 {
  margin-top: 0;
}

.content-panel ul {
  padding-left: 18px;
  overflow-wrap: anywhere;
}

/* ==========================================
   ACADIA
========================================== */

.acadia-screen {
  background: #f7f5f5;
  color: #302c32;
}

.acadia-header {
  background: #8b1733;
}

.acadia-header strong {
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 1px;
}

.acadia-action {
  background: #8b1733;
}

.acadia-screen .text-button {
  color: #8b1733;
}

.term-label {
  color: #776d75;
}

.acadia-tabs {
  display: flex;
  gap: 7px;
  padding: 12px 0;
  overflow-x: auto;
}

.acadia-tabs button {
  flex-shrink: 0;
  padding: 9px;
  border: 1px solid #e1d4d9;
  border-radius: 7px;
  background: white;
  color: #8b1733;
  font-size: 11px;
}

.acadia-tabs button.active {
  background: #8b1733;
  color: white;
}

.acadia-screen .content-panel h3 {
  color: #8b1733;
}

.course-card {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.course-card strong {
  color: #8b1733;
}

.course-card p {
  margin: 5px 0;
}

/* ==========================================
   DARK APPLICATIONS
========================================== */

.dark-app {
  background: linear-gradient(
    #172d49,
    #08111f
  );
  color: white;
}

.dark-card,
.contact-card {
  margin: 12px 0;
  padding: 14px;
  border-radius: 12px;
  background: #263e5c;
}

.dark-app input,
.dark-app select {
  background: #edf3fb;
}

.note {
  color: #aebed3;
  font-size: 12px;
}

#security-logs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.security-risk {
  padding: 12px;
  background: #263e5c;
  border-left: 4px solid #4fa3ff;
  border-radius: 9px;
  overflow-wrap: anywhere;
}

.security-risk.high {
  border-left-color: #ff5267;
}

.security-risk.medium {
  border-left-color: #ffbf47;
}

.security-risk.low {
  border-left-color: #2dcc94;
}

.security-risk strong {
  font-size: 12px;
}

.security-risk small {
  color: #b5c6db;
  font-size: 10px;
}

.contact-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.contact-actions button {
  flex: 1;
  padding: 8px 4px;
  border: 0;
  border-radius: 7px;
  background: #37669a;
  color: white;
}

#contacts-list {
  max-height: 230px;
  overflow-y: auto;
}

.message-conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 220px;
  overflow-y: auto;
  padding: 12px;
  margin: 12px 0;
  background: #0c1728;
  border-radius: 12px;
}

.message-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.message-sent {
  align-self: flex-end;
  background: #167be8;
}

.message-received {
  align-self: flex-start;
  background: #344a65;
}

.message-time {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  opacity: 0.75;
}

/* ==========================================
   CAMERA
========================================== */

#camera-preview {
  width: 100%;
  min-height: 180px;
  max-height: 290px;
  object-fit: cover;
  background: black;
  border-radius: 14px;
}

#captured-photo {
  max-width: 100%;
  margin-top: 10px;
}

#download-photo {
  display: block;
  margin: 12px 0;
  color: #8ac4ff;
}

/* ==========================================
   VOLUME
========================================== */

.volume-overlay {
  position: absolute;
  top: 65px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  background: #111827ee;
  z-index: 35;
  opacity: 0;
  pointer-events: none;
}

.volume-overlay.visible {
  opacity: 1;
}

.volume-track {
  width: 65px;
  height: 7px;
  background: #596273;
  border-radius: 10px;
  overflow: hidden;
}

.volume-fill {
  width: 50%;
  height: 100%;
  background: #59aaff;
}

#volume-percent {
  font-size: 11px;
}

/* ==========================================
   POWER MENU
========================================== */

.power-menu {
  position: absolute;
  z-index: 40;
  inset: 0;
  padding: 180px 35px;
  background: #000d;
  text-align: center;
}

.power-menu.hidden {
  display: none;
}

/* ==========================================
   NAVIGATION
========================================== */

.navigation-area {
  position: absolute;
  z-index: 20;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 43px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #00000050;
}

.navigation-area button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
}

.display:has(#off.active) .status-bar,
.display:has(#off.active) .navigation-area,
.display:has(#lock.active) .navigation-area,
.display:has(#password.active) .navigation-area {
  display: none;
}

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

@media (max-width: 400px) {
  body {
    padding: 8px;
  }

  .page-header h1 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone {
    animation: none;
  }
}


/* ==========================================
   FIT ENTIRE SMARTPHONE ON ONE PAGE
========================================== */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    min-height: 100dvh;
    height: 100dvh;
    padding: 8px 12px;

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

    overflow: hidden;
}

/* Smaller page heading */
.page-header {
    flex-shrink: 0;
}

.page-header h1 {
    font-size: 20px;
    margin: 5px 0;
}

.page-header p {
    font-size: 11px;
    margin: 3px 0;
}

/* Center the phone in available screen space */
.scene {
    flex: 1;
    min-height: 0;
    width: 100%;

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

    perspective: 1200px;
    overflow: visible;
}

/* Scale the entire phone, including its screen */
.phone {
    --phone-scale: min(
        0.85,
        calc((100dvh - 155px) / 700px),
        calc((100vw - 55px) / 380px)
    );

    flex-shrink: 0;

    transform:
        scale(var(--phone-scale))
        rotateX(var(--rotate-x))
        rotateY(var(--rotate-y));

    transform-style: preserve-3d;

    touch-action: none;
    cursor: grab;
}

.phone.dragging {
    cursor: grabbing;
}

/* Keep the floor shadow compact */
.floor-shadow {
    width: 190px;
    height: 16px;
    margin-top: -25px;
    filter: blur(12px);
}

/* Keep the footer visible */
.page-footer {
    flex-shrink: 0;
    margin: 4px 0;
    font-size: 10px;
}

/* Allow long app content to scroll INSIDE the phone */
.screen {
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Small laptop screens */
@media (max-height: 700px) {
    .page-header h1 {
        font-size: 17px;
    }

    .page-header p {
        font-size: 10px;
    }

    .page-footer {
        font-size: 9px;
    }
}

/* ==========================================
   AI DEFENDER DASHBOARD
   Fits inside the existing 3D smartphone
========================================== */

.defender-screen {
    color: #f7fbff;
}

/* Dashboard heading */

.defender-heading,
.defender-switch-row,
.defender-activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.defender-heading h2 {
    margin: 0;
    font-size: 18px;
}

.defender-heading p,
.defender-switch-row p {
    margin: 4px 0;
    color: #b6c9e1;
    font-size: 10px;
}

/* ON/OFF status badge */

.defender-badge {
    font-size: 10px;
    font-weight: bold;
    background: #45546a;
    padding: 5px 8px;
    border-radius: 20px;
}

.defender-badge.on {
    background: #0c795e;
    color: white;
}

.defender-badge.off {
    background: #833445;
    color: white;
}

/* Main dashboard panels */

.defender-panel,
.defender-stat,
.defender-incident {
    background: #263e5c;
    border-radius: 12px;
}

.defender-panel {
    margin: 14px 0;
    padding: 13px;
}

.defender-panel strong {
    font-size: 12px;
}

.defender-panel #defender-toggle-message {
    margin: 8px 0 0;
    color: #c9d9ea;
    font-size: 10px;
}

/* AI Defender ON/OFF switch */

.defender-switch {
    display: inline-block !important;
    position: relative;
    width: 43px;
    height: 25px;
    flex-shrink: 0;
    margin: 0 !important;
}

.defender-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.defender-switch-track {
    position: absolute;
    inset: 0;
    background: #748196;
    border-radius: 20px;
    transition: background 0.2s;
}

.defender-switch-track::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s;
}

.defender-switch input:checked + .defender-switch-track {
    background: #18aa83;
}

.defender-switch input:checked + .defender-switch-track::before {
    transform: translateX(18px);
}

.defender-switch input:focus-visible + .defender-switch-track {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Attack statistics */

.defender-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.defender-stat {
    text-align: center;
    padding: 10px 4px;
}

.defender-stat small {
    display: block;
    font-size: 10px;
    color: #b6c9e1;
}

.defender-stat strong {
    display: block;
    font-size: 22px;
    margin-top: 5px;
}

#blocked-count {
    color: #68e2af;
}

#succeeded-count {
    color: #ff8d9c;
}

/* Attack activity heading */

.defender-activity-heading {
    margin-top: 17px;
}

.defender-activity-heading h3 {
    margin: 0;
    font-size: 13px;
}

.defender-refresh {
    border: 1px solid #647b99;
    border-radius: 7px;
    background: transparent;
    color: #e7f2ff;
    padding: 6px;
    font-size: 10px;
}

.defender-substatus {
    font-size: 10px !important;
    color: #b6c9e1;
}

/* Individual attack cards */

.defender-incident {
    margin: 10px 0;
    padding: 12px;
    overflow-wrap: anywhere;
    border-left: 3px solid #4fa3ff;
}

.defender-incident.blocked {
    border-left-color: #55d99f;
}

.defender-incident.succeeded {
    border-left-color: #ff687b;
}

.defender-incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.defender-incident-header strong {
    font-size: 12px;
}

/* Blocked / Succeeded labels */

.defender-outcome {
    font-size: 9px;
    padding: 4px 6px;
    border-radius: 12px;
    background: #4b6079;
}

.defender-outcome.blocked {
    background: #0c795e;
}

.defender-outcome.succeeded {
    background: #9b324a;
}

/* Attacker and attack details */

.defender-incident-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 6px;
}

.defender-incident-grid small {
    display: block;
    color: #b6c9e1;
    font-size: 9px;
}

.defender-incident-grid span {
    display: block;
    color: white;
    font-size: 10px;
    margin-top: 3px;
}

/* Attack explanation */

.defender-explanation {
    border-top: 1px solid #4b6079;
    margin: 11px 0 0;
    padding-top: 8px;
    font-size: 10px !important;
    color: #cbd8e9;
}


/* ============================================
   ACADIA ACCOUNT SELECTION
============================================ */

.acadia-role-selection {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.acadia-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 18px 12px;
  background: #ffffff;
  color: #222222;
  border: 1px solid #dddddd;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.acadia-role-card:hover {
  border-color: #a51c30;
  background: #fff5f6;
}

.acadia-role-card .role-icon {
  font-size: 30px;
}

.acadia-role-card strong {
  font-size: 15px;
}

.acadia-role-card small {
  font-size: 11px;
  line-height: 1.5;
  color: #666666;
}

#acadia-student-login-form,
#acadia-admin-login-form {
  margin-top: 15px;
}

#acadia-login [hidden] {
  display: none !important;
}


/* ==========================================
   ACADIA ADMINISTRATOR DASHBOARD
========================================== */

.acadia-admin-tabs {
  display: flex;
  gap: 7px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.acadia-admin-tabs button {
  flex-shrink: 0;
  padding: 9px 11px;
  border: 1px solid #e1d4d9;
  border-radius: 8px;
  background: white;
  color: #8b1733;
  font-size: 11px;
  cursor: pointer;
}

.acadia-admin-tabs button.active {
  background: #8b1733;
  color: white;
}

#acadia-admin-dashboard .content-panel {
  padding: 13px;
  margin: 12px 0;
  border: 1px solid #eadfe3;
  border-radius: 12px;
  background: white;
}

#acadia-admin-dashboard .content-panel h3 {
  color: #8b1733;
}

#acadia-admin-dashboard input,
#acadia-admin-dashboard select {
  width: 100%;
  min-width: 0;
}

#acadia-admin-dashboard .feedback {
  color: #8b1733;
  overflow-wrap: anywhere;
}

#admin-student-results,
#admin-course-results,
#admin-graduation-list,
#admin-degree-list {
  margin-top: 12px;
  overflow-wrap: anywhere;
}

#acadia-admin-dashboard [hidden] {
  display: none !important;
}

/* Banking-specific compatibility fixes; keep existing style.css. */
/* HTML hidden must win over legacy display:flex/grid/block selectors. */
#banking [hidden] { display: none !important; }
/* Hide login/dashboard while /api/auth/me checks the saved session. */
#banking.session-checking > .auth-panel,
#banking.session-checking > #bank-dashboard { display: none !important; }
/* The phone display stays fixed, but Banking content scrolls inside it. */
#banking.screen {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  min-height: 0;
  scrollbar-width: thin;
  box-sizing: border-box;
}
#bank-dashboard { padding-bottom: 30px; }
#banking .quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
#banking .quick-actions button { min-width: 0; white-space: normal; }
#banking .content-panel { min-width: 0; overflow-wrap: anywhere; }
#banking #transactions { padding-left: 20px; overflow-wrap: anywhere; }
#banking #transactions li { margin: 0 0 10px; line-height: 1.45; }
#banking #recipient-list { padding-left: 18px; overflow-wrap: anywhere; }
#banking #recipient-list li { margin-bottom: 8px; }
