@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');


.flash-30m {
  animation: flashCalm 0.5s 10;
}

.flash-45m {
  animation: flashCalm 1s infinite;
}

.flash-60m {
  animation: flashCalm 2s infinite;
}

.flash-alert {
  animation: flashCalm 0.25s infinite;
}

@keyframes flashCalm {
  0% { color: white; }
  50% { color: #c4281c; }
  100% { color: white; }
}

/* CONSENT */

.consent-banner {
  position: fixed;
  bottom: 1vw;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2b4e2b;
  color: white;
  padding: 2vw 3vw;
  border-radius: 1vw;
  box-shadow: 0 0 1vw rgba(0, 0, 0, 0.3);
  font-size: 1.1vw;
  z-index: 10000;
  max-width: 90vw;
  text-align: center;
  display: none;
  animation: consentPulse 1s infinite alternate linear;
}

@keyframes consentPulse {
  0% {
    background-color: #2b4e2b;
  }
  100% {
    background-color: #c4281c;
  }
}

.consent-banner a {
  color: orange;
  text-decoration: underline;
}

.consent-banner button {
  margin-top: 1vw;
  background-color: orange;
  color: black;
  border: none;
  font-size: 1vw;
  padding: 0.5vw 1.5vw;
  border-radius: 0.5vw;
  cursor: pointer;
}

/* REST */
.bottom-divider {
  border: none;
  height: 0.2vw;
  background-color: #8c4e2b; /* match theme color */
  margin: 2vw 10.5vw 0 10.5vw; /* top margin + horizontal padding */
}

/* === TRACKER STYLES === */

.tracker-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1.5fr 0.8fr;

    background: #2b4e2b;
    padding: 1vw 2vw;
    border-radius: 2vw;

    font-weight: 600;
    text-align: center;
    font-size: 1.75vw;
}

.tracker-header span {
    flex: 1;
    text-align: center;
}

.tracker-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1.5fr 0.8fr;
    padding: 0.8vw 2vw;
    text-align: center;
}

.tracker-footer {
    padding: 1vw 2vw;
    border-radius: 2vw;

    text-align: center;
    font-size: 1.25vw;
}

.speed-roadway { color: red; font-weight: 700; background-color: black; } /* 60 km/h or higher */
.speed-city { color: orange; } /* 50 km/h or higher */
.speed-street { color: yellow; } /* 30 km/h or higher */
.speed-slow { color: green; } /* lower than 30 km/h */

.license-bus { color: #04afec; }
.license-tbus { color: #8c4e2b; }
.license-tow { color: black; }
.license-dispatch { color: gold; }

@media (max-width: 768px) {

    /* HEADER → hide (we’ll replace with labels) */
    .tracker-header {
        display: none;
    }

    /* ROW → becomes card */
    .tracker-row {
        display: flex;
        flex-direction: column;
        gap: 1.5vw;

        background: #2b4e2b;
        border-radius: 4vw;
        padding: 3vw;

        margin-bottom: 2vw;
        text-align: left;
    }

    /* EACH FIELD */
    .tracker-row span {
        display: flex;
        justify-content: space-between;
        font-size: 3.5vw;
    }

    /* LABELS (important) */
    .tracker-row span::before {
        font-weight: 600;
        opacity: 0.7;
    }

    /* Assign labels per column */
    .tracker-row span:nth-child(1)::before { content: "License"; }
    .tracker-row span:nth-child(2)::before { content: "Route"; }
    .tracker-row span:nth-child(3)::before { content: "Driver"; }
    .tracker-row span:nth-child(4)::before { content: "Location"; }
    .tracker-row span:nth-child(5)::before { content: "Speed"; }

    /* FOOTER */
    .tracker-footer {
        font-size: 3.2vw;
        padding: 3vw;
    }
}

/* === SHIFT BANNER === */
/* LINK WRAPPER */
.shift-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* MAIN BANNER */
.shift-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    background: linear-gradient(90deg, #2b4e2b, #1f3d1f);
    border-bottom: 2px solid #04afec;

    padding: 0 1rem;
    cursor: pointer;

    transition: 0.25s ease;
}

/* GLOW */
.shift-banner.live {
    box-shadow: 0 0 12px rgba(4, 175, 236, 0.4);
}

/* HOVER */
.shift-banner:hover {
    filter: brightness(1.1);
}

/* SCROLL AREA */
.shift-banner-scroll {
    overflow: hidden;
    flex: 1;
}

/* TRACK */
.shift-banner-track {
    display: flex;
    gap: 48px; /* MUST match JS spacing */
    will-change: transform;
}

/* TEXT ITEMS */
.banner-item {
    white-space: nowrap;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

/* CTA */
.shift-banner-cta {
    flex-shrink: 0;

    background: #04afec;
    color: black;

    padding: 0.4rem 0.8rem;
    border-radius: 6px;

    font-weight: bold;
    font-size: 0.8rem;

    margin-left: 1rem;

    transition: 0.2s;
}

.shift-banner:hover .shift-banner-cta {
    transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
    .shift-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }

    .banner-item {
        font-size: 0.85rem;
    }

    .shift-banner-cta {
        width: 100%;
        text-align: center;
    }
}

/* ASSIGNMENTS */
/* ========================= */
/* ASSIGNMENT SYSTEM (NEW) */
/* ========================= */

/* Page container */
.assign-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 1.5vw;
    justify-items: center;
    padding: 0 5vw;
}

/* Assignment card */
.assign-card {
    background: #2b4e2b;
    padding: 2vw;
    border-radius: 1vw;
    width: 100%;
    max-width: 620px;
    min-width: 520px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    color: white;
}

/* Title */
.assign-card h2 {
    margin-bottom: 1vw;
}

/* Form layout */
.assign-form {
    display: flex;
    flex-direction: column;
    gap: 0.75vw;
}

/* Inputs & selects */
.assign-input {
    width: 100%;
    padding: 0.6vw;
    border-radius: 0.5vw;
    border: none;
    font-size: 0.9vw;
    background: #f1f1f1;
    margin: 10px 0;
    outline: none;
}

/* Group block */
.assign-group {
    background: rgba(0,0,0,0.2);
    padding: 0.75vw;
    border-radius: 0.5vw;
}

/* Group title */
.assign-group h3 {
    font-size: 1vw;
    margin-bottom: 0.4vw;
    color: #04afec;
}

/* Row for vehicle + driver */
.assign-row {
    display: flex;
    gap: 0.5vw;
}

/* Make selects fill space */
.assign-row select {
    flex: 1;
}

/* Notes field */
.assign-notes {
    margin-top: 0.5vw;
}

/* Actions (buttons inside card) */
.assign-actions {
    margin-top: 0.75vw;
}

/* Full width remove button */
.assign-actions .redButton {
    width: 100%;
}

/* Control buttons (bottom) */
.assign-controls {
    display: flex;
    gap: 1vw;
    justify-content: center;
    margin-top: 1vw;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .assign-card {
        width: 90%;
    }

    .assign-row {
        flex-direction: column;
    }

    .assign-input {
        font-size: 1rem;
    }
}

/* SHIFTS */
.questions {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    
}

.logs {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    
}

.question-card {
    width: auto;
    max-width: 80vw;
    height: auto;
    background-color: #2b4e2b;
    margin-left: 10vw;
    border-radius: 3vw;
    word-wrap:break-word;
    overflow-wrap: break-word;
}

.log-card {
    width: auto;
    max-width: 80vw;
    height: auto;
    background-color: #2b4e2b;
    margin-left: 10vw;
    border-radius: 3vw;
    word-wrap:break-word;
    overflow-wrap: break-word;
}

.question-card-content {
    display: flex;
    flex-direction: column;
    margin: 1.5vw;
    height: auto;
    justify-content:space-between;
}

.log-card-content {
    display: flex;
    flex-direction: column;
    margin: 1.5vw;
    justify-content:space-between;
}

.card-info-content {
    margin-left: 1vw;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    font-size: 1.25vw;
    color: #c4281c;
}

.question-title {
    font-size: 2vw;
    font-weight: 600;
    color: #04afec;
    margin-bottom: 1.75vw;
}

.question-info {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    align-items: center;
}

.question-info-col {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: -2vw;
    width: auto;
    max-width: 80vw;
}

.logging {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: -0.75vw;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    width: auto;
    max-width: 70vw;
}

.logged {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.logged-blue {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    color: #04afec;
}

.logged-red {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    color: #c4281c;
}

.content-title {
    font-size: 3vw;
    font-weight: 600 !important;
    margin-top: 1vw;
    margin-bottom: 1vw;
    margin-left: 1vw;
    color: blueviolet !important;
}

.pagination-container {
    display: flex;
    flex-direction: row;
    gap: 0.5vw;
    margin-bottom: 1vw;
    justify-content: center;
}

.pagination {
    display: flex;
    flex-direction: row;
    gap: 1vw;
}

.pagination-center {
    font-size: 1vw;
    font-weight: 400;
    word-wrap:break-word;
    overflow-wrap: break-word;
}


/* MAIN */
body, html {
    background-color: lightgray;
    color: #FFFAFF;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

[data-theme="dark"] body {
    background-color: #121212; /* dark mode */
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0vw;
}

.container {
    padding: 0vw 10.5vw; /* 10.5vw */
}

.navbar {
    /* background-color: lightgray; */
    color: #FFFAFF;
    font-family: 'Outfit', sans-serif;
    padding: 0.5vw 2.5vw;
    font-size: 2vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-img {
    width: 5vw;
    height: 5vw;
    border-radius: 3vw;
    margin-right: 0.75vw;
}

.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vw; /* full height for vertical centering */
}

.wip-img {
    width: 75vw;
    height: 50vw;
    /* margin-top: 10%; */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.nav-right {
    display: flex;
    flex-wrap: wrap;            /* allow wrapping on mobile */
    justify-content: center;    /* center on small screens */
    align-items: center;
    gap: 0.2vw;
}

.nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-left a {
    font-size: 3vw;
    font-weight: 500;
}

.nav-item {
    font-size: clamp(12px, 1vw, 16px); /* responsive text */
    font-weight: 500;
    padding: 0.6em 1.2em;
    color: black;
    background-color: orange;
    text-decoration: none;
    white-space: nowrap;
    min-width: fit-content;
    display: flex;
    justify-content: center;
}

.portal-item {
    font-size: 1.5vw;
    font-weight: 500;
    padding: 0.5vw 1.5vw;
    color: blueviolet;
    background-color: white;
    text-decoration: none;
    white-space: nowrap;
    min-width: 8vw;
    display: flex;
    justify-content: center;
}

.shift-create-container {
    background: #2b4e2b;
    padding: 40px;
    border-radius: 12px;
    width: 750px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    text-align: center;
    margin: 2.5% 0vw 0vw 30%;
}

.shift-create-container h2 {
    color: white;
    margin-bottom: 20px;
}

/* Inputs */
.shift-create-container input {
    width: 100%;
    padding: 13px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    outline: none;
}

/* Button */
.shift-create-container button {
    width: 100%;
    padding: 12px;
    background: #5865F2;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.login-container {
    background: #2b4e2b;
    padding: 40px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
    text-align: center;
    margin: 2.5% 0vw 0vw 40%;
}

/* Title */
.login-container h2 {
    color: white;
    margin-bottom: 20px;
}

/* Inputs */
.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    outline: none;
}

/* Button */
.login-container button {
    width: 100%;
    padding: 12px;
    background: #5865F2;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.createButton {
    width: 30%;
    padding: 12px;
    background: #2b4e8c;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 2vw;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 0.5vw;
}

.blueButton {
    width: 10%;
    padding: 12px;
    background: blue;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.redButton {
    width: 10%;
    padding: 12px;
    background: red;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.greenButton {
    width: 10%;
    padding: 12px;
    background: green;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.orangeButton {
    width: 15%;
    padding: 15px;
    background: orange;
    border: none;
    border-radius: 6px;
    color: black;
    font-weight: bold;
    font-size: 1vw;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.brownButton {
    width: 10%;
    padding: 12px;
    background: #8c4e2b;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.greyButton {
    width: 10%;
    padding: 12px;
    background: grey;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.logoutButton {
    width: 10%;
    padding: 14px;
    background: red;
    border: none;
    border-radius: 6px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.2vw;
}

.orangeButton,
.blueButton,
.greyButton,
.logoutButton {
    width: auto; /* 🔥 critical */
}

.blueButton:disabled {
    background: blue;
    cursor: not-allowed;
    opacity: 0.3;
}

.orangeButton:disabled {
    background: orange;
    cursor: not-allowed;
    opacity: 0.3;
}

.greyButton:disabled {
    background: grey;
    cursor: not-allowed;
    opacity: 0.3;
}

.redButton:disabled {
    background: red;
    cursor: not-allowed;
    opacity: 0.3;
}

.greenButton:disabled {
    background: green;
    cursor: not-allowed;
    opacity: 0.3;
}

.brownButton:disabled {
    background: #8c4e2b;
    cursor: not-allowed;
    opacity: 0.3;
}

.card-setwidth {
    flex: 0 0 140px;
    max-width: 140px;
    /* min-width: 10%; */
    /* max-width: 10%; */
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 768px) {
    .card-setwidth {
        flex: 1 1 100%;   /* full width */
        max-width: 100%;
    }
}

.shift-item {
    font-size: 1.5vw;
    font-weight: 250;
    padding: 0.75vw 1.5vw;
    color: #04afec;
    background-color: #8c4e2b;
    text-decoration: none;
    border-radius: 2vw;
}

a {
    color: blueviolet;
    text-decoration: none;
    font-weight: 700;
}

.auser {
    color: #c4281c;
    text-decoration: none;
    font-weight: 700;
}

.auser:hover {
    color: #c4281c;
    cursor: pointer;
}

.welcome-text {
    color: purple;
}

.option-title {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 1vw;
    margin: 0;
    word-wrap:break-word;
    overflow-wrap: break-word;
}

.footer-section {
  background-color: #2b4e2b;
  color: #c4281c;
  padding: 2vw 5vw;
  font-size: 1.2vw;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3vw;
  justify-content: center;
}

.footer-link {
  color: blueviolet;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
  color: orange;
}

.footer-section a:hover {
    color: #c4281c;
    cursor: pointer;
}

.footer-meta {
    text-align: center !important;
  font-size: 1vw;
  color: #cccccc;
  margin-top: 1vw;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.error-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8vw 0vw;
}

.error-section h2 {
    font-size: 3vw;
    font-weight: 700;
    color: black;
}

.error-section h1 {
    font-size: 10vw;
    font-weight: 900;
    color: red;
    margin: 0;
}

.success-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8vw 0vw;
}

.success-section h2 {
    font-size: 3vw;
    font-weight: 700;
    color: black;
}

.success-section h1 {
    font-size: 10vw;
    font-weight: 900;
    color: green;
    margin: 0;
}

.privacy-section {
    display: flex;
    flex-direction: column;
    margin: 4vw 0vw;
}

.privacy-section h1 {
    font-size: 2.75vw;
    font-weight: 700;
    color: blueviolet;
}

.privacy-section p {
    font-size: 1vw;
    font-weight: 400;
    color: black;
}

.privacy-content {
    margin-top: 2rem;
}

.privacy-dot {
    color: green;
    font-size: 1vw;
    font-weight: 600;
    margin-right: 0.75vw;
}

*, *::before, *::after {
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding: 4vw;
    }

    .question-card,
    .log-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        border-radius: 6vw;
    }

    .question-card-content,
    .log-card-content {
        margin: 4vw;
    }

    .question-title {
        font-size: 5.5vw;
    }

    .option-title,
    .pagination-center,
    .privacy-section p,
    .privacy-section h1,
    .privacy-dot {
        font-size: 4vw;
    }

    .question-info-col {
        width: 100%;
    }

    .options,
    .logging {
        gap: 3vw;
    }

    .navbar {
        font-size: 5vw;
        padding: 2vw;
    }

    .nav-item,
    .shift-item {
        font-size: 5vw;
        padding: 3vw 5vw;
    }

    .footer-section a {
        font-size: 5vw;
        margin-left: 2vw;
    }

    .wip-img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    .question-card,
    .log-card {
        width: 90%;
        max-width: 90%;
        margin-left: 5%;
        border-radius: 5vw;
    }

    .question-title {
        font-size: 5vw;
    }

    .option-title {
        font-size: 3.75vw;
    }

    .privacy-section h1 {
        font-size: 4.5vw;
    }

    .privacy-section p {
        font-size: 3.5vw;
    }

    .navbar {
        font-size: 4.25vw;
    }

    .nav-item,
    .shift-item {
        font-size: 4.25vw;
        padding: 2vw 3vw;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2vw; /* reduced from 10.5vw for tighter mobile layout */
    }

    .question-card,
    .log-card {
        margin-left: 10;
        max-width: 80%;
        border-radius: 5vw;
        width: 80%;
    }

    .question-card-content,
    .log-card-content {
        margin: 3vw;
    }

    .question-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
        margin-bottom: 2vw;
    }

    .card-info-content,
    .option-title,
    .pagination-center,
    .privacy-section p,
    .privacy-section h1,
    .privacy-dot {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }

    .question-info {
        flex-direction: column;
        gap: 3vw;
    }

    .question-info-col {
        gap: 2vw;
        width: 80%;
    }

    .option {
        max-width: 80%;
    }

    .options,
    .logging {
        flex-direction: column;
        gap: 2vw;
    }

    .logged,
    .logged-blue,
    .logged-red {
        gap: 2vw;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        font-size: 4vw;
        padding: 2vw;
    }

    .nav-item,
    .shift-item {
        font-size: 4vw;
        padding: 2vw 4vw;
    }

    .footer-section a {
        font-size: clamp(1.25rem, 4vw, 2rem);
        margin-left: 2vw;
    }

    .privacy-section {
        margin: 4vw 2vw;
    }

    .error-section h1 {
        font-size: 15vw;
    }

    .error-section h2 {
        font-size: 6vw;
    }

    .wip-img {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 6vw;
    }

    .question-card,
    .log-card {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .question-title {
        font-size: 3.5vw;
    }

    .card-info-content {
        font-size: 2.25vw;
    }

    .navbar {
        font-size: 3vw;
    }

    .nav-item,
    .shift-item {
        font-size: 3vw;
    }

    .footer-section a {
        font-size: 2.75vw;
    }
}



.nav-item:hover, .shift-item:hover, .question-title:hover {
    opacity: .5;
    cursor: pointer;
}


/* ========================= */
/* TARGETED RESPONSIVENESS   */
/* ========================= */

/* ---------- NAVBAR ---------- */
@media (max-width: 768px) {
    .navbar {
        font-size: 4vw;
        padding: 2vw;
    }

    .nav-left a {
        font-size: 5vw;
    }

    .nav-item,
    .portal-item {
        font-size: 3.5vw;
        padding: 2vw 3vw;
        min-width: unset;
    }

    .navbar-img {
        width: 10vw;
        height: 10vw;
    }
}

/* ---------- BUTTONS ---------- */
@media (max-width: 768px) {
    .createButton {
        width: 100%;
        font-size: 4vw;
        padding: 3vw;
    }

    .blueButton,
    .redButton,
    .greenButton {
        width: 100%;
        font-size: 3.5vw;
        padding: 2.5vw;
    }
}

/* ---------- ASSIGNMENT PANEL ---------- */
@media (max-width: 768px) {
    .assign-container {
        grid-template-columns: 1fr;
        padding: 0 2vw;
    }

    .assign-card {
        min-width: unset;
        max-width: 100%;
        padding: 4vw;
    }

    .assign-input {
        font-size: 3.5vw;
        padding: 2.5vw;
    }

    .assign-group h3 {
        font-size: 4vw;
    }
}

/* ---------- SHIFT / LOGIN PANELS ---------- */
@media (max-width: 768px) {
    .shift-create-container,
    .login-container {
        width: 90%;
        margin: 5vw auto;
    }

    .shift-create-container button,
    .login-container button {
        font-size: 5vw;
    }
}

/* ---------- CARDS (QUESTIONS / LOGS) ---------- */
@media (max-width: 768px) {
    .question-card,
    .log-card {
        width: 95%;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .question-title {
        font-size: 5vw;
    }

    .card-info-content {
        font-size: 3.5vw;
    }

    .option-title {
        font-size: 3.5vw;
    }
}

/* ---------- FOOTER ---------- */
@media (max-width: 768px) {
    .footer-section {
        font-size: 3.5vw;
        padding: 4vw;
    }

    .footer-link {
        font-size: 3.5vw;
    }

    .footer-meta {
        font-size: 3vw;
    }
}

/* ---------- CONSENT BANNER ---------- */
@media (max-width: 768px) {
    .consent-banner {
        font-size: 3.5vw;
        padding: 4vw;
    }

    .consent-banner button {
        font-size: 3.5vw;
        padding: 2vw 4vw;
    }
}


/* ADDITIONAL */

@media (max-width: 768px) {
    .container {
        padding: 3vw; /* was 10.5vw → too large on mobile */
    }

    .bottom-divider {
        margin: 3vw 2vw 0 2vw;
    }
}

@media (max-width: 768px) {
    .options,
    .logging {
        flex-direction: column;
        gap: 3vw;
        margin-top: 1vw;
    }

    .option {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-center {
        font-size: 3.5vw;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .img-container {
        height: auto;
        padding: 5vw 0;
    }

    .wip-img {
        width: 95%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .question-title,
    .option-title,
    .card-info-content {
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .nav-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        flex-direction: column;   /* 🔥 stack vertically */
        align-items: stretch;     /* full width buttons */
        gap: 1vw;
    }
}

@media (max-width: 768px) {
    .footer-links {
        gap: 5vw;
    }
}

@media (max-width: 768px) {
    .assign-row {
        flex-direction: column;
        gap: 2vw;
    }
}

/* ADDITIONAL 2 */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    * {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    p, span, a, div {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 768px) {
    button,
    .portal-item {
        min-height: 44px; /* mobile accessibility standard */
    }

    .nav-item {
        width: 100%;              /* full width buttons */
        font-size: 3.5vw;
        padding: 2.5vw;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .questions,
    .logs,
    .logged,
    .logged-blue,
    .logged-red {
        gap: 2.5vw;
    }
}

@media (max-width: 768px) {
    .options {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .shift-create-container,
    .login-container {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .assign-card,
    .question-card,
    .log-card {
        overflow-x: auto;
    }
}

textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  resize: vertical; /* user can expand */
}