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

:root {
    --radius1: 8px;
    --base-font-size: 16px;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.5rem; }
p { font-size: 1rem; }

html {
    font-family: "Open Sans", sans-serif;
    font-size: var(--base-font-size);
}

body {
    font-size: 1.5rem;
    background: #39ebff; 
    background: radial-gradient(circle, rgb(118, 217, 228) 30%, rgb(188, 214, 244) 100%);
.topbar-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-size-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #2F7BFF;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(47,123,255,0.35);
}
.font-size-btn:hover {
    background: #1a63e0;
    transform: translateY(-1px);
}

/****************************
   PATIENT LIST TABLE
****************************/
.pt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.pt-header-row th {
    background: #f8fafd;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #3d5672;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 14px;
    text-align: left;
}
.pt-filter-row td {
    padding: 6px 8px;
    background: #f8fafd;
    border-bottom: 1px solid #e2e8f0;
}
.pt-filter-row input {
    width: 100%;
    padding: 5px 8px;
    border: 1.5px solid #CAD7EA;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #0f172a;
    background: white;
    box-sizing: border-box;
}
.pt-filter-row input:focus {
    outline: none;
    border-color: #2F7BFF;
}
.pt-tbody tr {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}
.pt-tbody tr:hover { background: #f0f5ff; }
.pt-data-row td {
    padding: 12px 14px;
    color: #1e2a3a;
}
.pt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
}
.pt-page-btn {
    padding: 6px 14px;
    border: 1.5px solid #CAD7EA;
    border-radius: 7px;
    background: white;
    color: #3d5672;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pt-page-btn:hover:not(:disabled) { border-color: #2F7BFF; color: #2F7BFF; background: #EEF5FF; }
.pt-page-btn:disabled { opacity: 0.35; cursor: default; }
.pt-page-info {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #66748D;
}
EOF    margin: 0;
    min-height: 100dvh;
}

header {
    display: flex;
    align-items: center;
    /* position: fixed; */
    position: static;
    top: 0;
    justify-content: space-between;
}
header img {
    /* margin-right: 50px; */
    width: 80px;
    height: 80px;
}

main {
    max-width: 900px;
    margin: 20px auto;
}

button {
    font-family: "Open Sans", sans-serif;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: black;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background-color: #424242;
}

select {
    border: 1px solid #ccc;
    border-radius: 8px;   /* round corners */
    padding: 6px 10px;
    height: 40px;
    width: 170px;
    padding: 8px; 
    font-family: "Open Sans", sans-serif;
    text-align: center;
    font-size: 16px;  
}


/********************
        LOGIN
*********************/

/* ---------- keyframes ---------- */
@keyframes blobFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-18px) scale(1.03); }
}
@keyframes blobFloatAlt {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(14px) scale(0.97); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-down {
    animation: fadeInDown 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.08s;
}

/* ---------- background ---------- */
body.login {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100dvh;
    margin: 0;
    overflow-y: auto;
    background: linear-gradient(135deg, #eef4ff 0%, #e8f7f0 50%, #f0f5ff 100%);
    padding: 32px 16px;
    position: relative;
}

/* ---------- background blobs ---------- */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(0px);
    pointer-events: none;
    z-index: 0;
}
.blob-top-right {
    width: 340px;
    height: 380px;
    top: -60px;
    right: -80px;
    background: radial-gradient(ellipse at center,
        rgba(180, 205, 255, 0.55) 0%,
        rgba(180, 205, 255, 0.15) 55%,
        transparent 75%);
    animation: blobFloat 7s ease-in-out infinite;
}
.blob-bottom-left {
    width: 380px;
    height: 420px;
    bottom: -80px;
    left: -100px;
    background: radial-gradient(ellipse at center,
        rgba(160, 215, 255, 0.55) 0%,
        rgba(160, 215, 255, 0.15) 55%,
        transparent 75%);
    animation: blobFloatAlt 8s ease-in-out infinite;
}
.blob-mid {
    width: 180px;
    height: 180px;
    bottom: 18%;
    right: 8%;
    background: radial-gradient(ellipse at center,
        rgba(190, 220, 255, 0.35) 0%,
        transparent 70%);
    animation: blobFloat 10s ease-in-out infinite 2s;
}

/* ---------- main wrapper ---------- */
#login-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: min(560px, 92vw);
    padding: 48px 0;
}

/* ---------- title ---------- */
#login-title {
    display: flex;
    align-items: center;
    gap: 16px;
}
#login-title img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: contain;
}
#login-title h1 {
    font-size: clamp(34px, 7vw, 52px);
    font-weight: 700;
    color: #08285C;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
}

/* ---------- card ---------- */
.form-box {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    padding: 52px 48px 48px;
    border-radius: 24px;
    box-shadow:
        0px 28px 70px rgba(58, 95, 142, 0.16),
        0px 4px 16px rgba(58, 95, 142, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.6);
}
.form-box h2 {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 700;
    color: #071633;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
    line-height: 1.15;
}
.form-box > p {
    font-size: 16px;
    font-weight: 400;
    color: #66748D;
    margin: 0;
    line-height: 1.5;
}
.form-box select { width: 100%; }

/* ---------- form ---------- */
.form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 28px 0 0;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    text-align: left;
}
.form label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #071633;
    margin-bottom: 4px;
    letter-spacing: 0.1px;
}

/* ---------- input wrapper ---------- */
.input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #CAD7EA;
    border-radius: 12px;
    height: 56px;
    padding: 0 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrapper:focus-within {
    border-color: #2F7BFF;
    box-shadow: 0 0 0 3.5px rgba(47,123,255,0.13);
}
.input-icon {
    font-size: 17px;
    color: #7A8AA5;
    margin-right: 10px;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}
.input-icon-right {
    font-size: 17px;
    color: #7A8AA5;
    margin-left: 8px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}
.input-icon-right:hover { color: #2F7BFF; }
.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #071633;
    background: transparent;
    padding: 0;
    min-width: 0;
}
.input-wrapper input::placeholder { color: #98A6BD; }

/* ---------- buttons ---------- */
.btn-primary {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3d8bff 0%, #0F63FF 100%);
    box-shadow: 0px 8px 24px rgba(15, 99, 255, 0.32);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    margin-top: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0px 12px 28px rgba(15, 99, 255, 0.38);
}
.btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0px 4px 12px rgba(15, 99, 255, 0.28);
}

.btn-outline {
    width: 100%;
    height: 56px;
    border: 1.5px solid #2F7BFF;
    border-radius: 12px;
    background: white;
    color: #176CFF;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-outline:hover {
    background: #f0f5ff;
    transform: translateY(-1px);
}
.btn-outline:active { transform: translateY(0); }

/* ---------- footer links ---------- */
#login-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
#login-footer-links p {
    margin: 0;
    font-size: 15px;
    color: #66748D;
}
.login-link {
    color: #176CFF;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.login-link:hover { opacity: 0.75; }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
    #login-title h1 { font-size: clamp(28px, 8vw, 38px); }
    #login-title img { width: 52px; height: 52px; }
    .form-box { padding: 36px 24px 32px; }
    .blob-top-right { width: 240px; height: 270px; }
    .blob-bottom-left { width: 260px; height: 290px; }
}
@media (max-width: 900px) and (orientation: landscape) {
    .form-box { padding: 28px 32px; }
    #login-main { padding: 24px 0; gap: 16px; }
}

/*****************************
        FORM BOX (other pages)
******************************/
body:not(.login) .form-box {
    background: rgb(255, 255, 255);
    width: min(520px, 92vw);
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    overflow: hidden;
}
body:not(.login) .form {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px 28px;
    width: 100%;
    margin: 24px 0 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 4px solid black;
    text-align: left;
}
body:not(.login) .form label {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}
body:not(.login) .form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(75, 179, 223, 0.768);
    border-radius: 4px;
    font-size: 16px;
}
@media (max-width: 650px) {
    body:not(.login) .form {
        grid-template-columns: 1fr;
        gap: 10px 12px;
        padding: 16px;
        margin-top: 12px;
    }
}


#content img {
    width: 200px;
    height: auto;
}


/*********************
        HEADER
**********************/
#header-bar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    /* width: 75dvw; */
    width: min(1100px, 100%);
    padding: 8px 130px;
    /* border-radius: 8px; */
    border: 3px solid rgb(0, 0, 0);
    box-sizing: border-box; 
    background: rgb(184, 231, 243);
    top: 0;
    margin: 0 auto 0;
}
#header-bar img {
    width: 80px;  
    height: auto;  
}
#header-bar h1 {
    font-size: 28px;   
    margin: 0;         
}


/*********************
        SURVEY
**********************/
.survey-box {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    /* width: 80dvh; */
    /* height: 100dvh;  */
    /* margin: 120px 20px; */
    width: min(960px, 100%);
    margin: 16px auto 32px;
}
.survey-form {
    display: grid;
    gap: 10px 15px;
    align-items: center;
    /* grid-template-columns: 750px 180px; */
    grid-template-columns: minmax(260px, 1.2fr) minmax(180px, .8fr);
    font-size: 18px;
}
.survey-form h2 {
    grid-column: 1 / -1;  
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}
.survey-form label {
    justify-self: start;
    text-align: left;
}
.survey-form select {
    justify-self: center;
    width: 100%;
}
.survey-form input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(75, 179, 223, 0.768);
    border-radius: 4px;
    font-size: 16px;
}

.survey-user {
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    text-align: justify;
    justify-self: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.survey-input {
    border: 1px solid #ccc;
    border-radius: 8px;   /* round corners */
    padding: 6px 10px;
    height: 40px;
    width: 40px;
    padding: 8px; 
    font-family: "Open Sans", sans-serif;
    text-align: center;
}
@media (max-width: 900px) {
    .survey-form { grid-template-columns: 1fr; }
}



#user-feedback {
    gap: 15px 20px;
    width: 500px;
    height: 130px;
    font-family: "Open Sans", sans-serif;
    padding: 9px;         
}




#difficulty {
    height: 40px;
    width: 150px;
    padding: 8px; 
    font-family: "Open Sans", sans-serif;
    border-radius: 5px;
}

#content {
    width: min(1100px, 92vw);
    margin: 110px auto 48px;
    padding: 0 8px;
    display: grid;
    gap: 18px;
    text-align: center;
}

/******************************
        NAVIGATION BAR
********************************/
#navigationbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 200px;
    height: auto;
    min-height: 100dvh;
    background: linear-gradient(180deg, #3d5672 0%, #2c3f58 52%, #243447 100%);
    color: white;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 0 0 200px;
    padding: 0;
    border-radius: 8px;
}

#navigationbar ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    padding: 22px 12px 28px;
    box-sizing: border-box;
}

.game-card--exhausted {
    opacity: 0.55;
    filter: grayscale(80%);
    cursor: default;
}

.game-card--exhausted:hover {
    transform: none;
    box-shadow: 0 2px 16px rgba(58,95,142,0.08);
    border-color: rgba(202,215,234,0.7);
}

.request-more-btn {
    padding: 8px 16px;
    background-color: #6B7280;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.request-more-btn:hover:not(:disabled) {
    background-color: #4B5563;
}

.request-more-btn:disabled {
    background-color: #9CA3AF;
    cursor: default;
}#navigationbar li {
    margin: 0;
}

#navigationbar a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.35;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#navigationbar a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

#navigationbar a:focus-visible {
    outline: 2px solid #9eeafd;
    outline-offset: 2px;
}

#navigationbar a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 600;
    box-shadow: inset 4px 0 0 0 #76d9e4;
}

@media (max-width: 720px) {
    #dashboard-container {
        flex-direction: column;
    }

    #navigationbar {
        width: 100%;
        min-height: 0;
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    #navigationbar ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 10px 16px;
        gap: 8px;
    }

    #navigationbar a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    #navigationbar a[aria-current="page"] {
        box-shadow: inset 0 -3px 0 0 #76d9e4;
    }
}


/*************************
        GAME TILES
**************************/
.tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tile {
    flex: 1 0 300px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

/* Mini games page: responsive 3-column grid on desktop */
#dashboard-view-mini-games main#dashboard-content {
    max-width: min(1320px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(12px, 2.5vw, 28px);
    align-items: stretch;
}

#dashboard-view-mini-games .mini-games-intro {
    width: 100%;
    max-width: 72ch;
    margin-bottom: 1rem;
}

#dashboard-view-mini-games .mini-games-intro h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: #0f172a;
}

#dashboard-view-mini-games .mini-games-intro p {
    margin: 0.35rem 0 0;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    line-height: 1.5;
    color: #1a1a1a;
}

#dashboard-view-mini-games .tiles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    #dashboard-view-mini-games .tiles-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #dashboard-view-mini-games .tiles-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#dashboard-view-mini-games .tile {
    flex: unset;
    align-items: stretch;
    text-align: left;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
    min-height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: clamp(1rem, 2vw, 1.35rem);
}

#dashboard-view-mini-games .game-tile-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.25;
    color: #0f172a;
}

#dashboard-view-mini-games .tile .small-logo {
    width: 100%;
    max-width: 280px;
    max-height: 150px;
    margin-inline: auto;
    object-fit: contain;
    display: block;
}

#dashboard-view-mini-games .tile > p {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #334155;
}

#dashboard-view-mini-games .tile > p strong {
    color: #0f172a;
    font-weight: 600;
}

#dashboard-view-mini-games .tile .form {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    #dashboard-view-mini-games .tile .form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

#game-tiles {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.small-logo {
    width: 300px;
    height: auto;
}

#dashboard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/****************************
     RADIO BUTTON STYLING
****************************/
.survey-form input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3caad1;
    border-radius: 50%;
    background-color: #fff;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.25s ease;
    vertical-align: middle;
}

/* Blue filled dot when selected */
.survey-form input[type="radio"]:checked {
    background-color: #3caad1;
    box-shadow: 0 0 0 2px #3caad1 inset;
    border-color: #3caad1;
}

/* Add a subtle hover feedback */
.survey-form input[type="radio"]:hover {
    border-color: #2b8ea7;
}

.survey-form > label {
    margin-top: 14px;
}

/****************************
        DISABLED FORM
****************************/

.survey-form input[type="radio"]:disabled {
  border-color: #b0b0b0;       
  background-color: #f0f0f0;    
  cursor: not-allowed;
  opacity: 0.8;
}

.survey-form input[type="radio"]:checked:disabled {
  background-color: #545454;   
  border-color: #545454;
  box-shadow: 0 0 0 2px #545454 inset;
}

textarea:disabled {
    background-color: #e0e0e0;  
    cursor: not-allowed;
    opacity: 0.6;
}

/****************************
        FOOTER STYLING
****************************/
footer {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin-top: auto;
}

/****************************
        SIGNUP PAGE
****************************/

#signup #login-main {
    width: min(700px, 92vw);
}

#signup .signup-box {
    width: 100%;
    padding: 36px 48px;
}

#signup .signup-form {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 8px 20px;
    margin-top: 20px;
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: unset;
}

#signup .signup-form label {
    text-align: right;
    padding-right: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #071633;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#signup .signup-form .input-wrapper {
    margin-bottom: 0;
    height: 46px;
}

#signup .signup-btns {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    margin-top: 6px;
}
#signup .signup-btns .btn-outline,
#signup .signup-btns .btn-primary {
    flex: 1;
    height: 50px;
}


/* On mobile: collapse back to single column */
@media (max-width: 600px) {
    #signup #login-main { width: min(560px, 92vw); }
    #signup .signup-box { padding: 32px 24px; }
    #signup .signup-form {
        grid-template-columns: 1fr;
    }
    #signup .signup-form label {
        text-align: left;
        justify-content: flex-start;
    }
}

/****************************
        SIGNUP PAGE
****************************/

.signup-main {
    width: min(680px, 92vw) !important;
}

#signup-box {
    width: 100%;
    padding: 40px 44px 36px;
}

#signup-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signup-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 0 16px;
}

.signup-row label {
    font-weight: 700;
    font-size: 15px;
    color: #071633;
    text-align: right;
    padding-right: 4px;
}

.signup-row .input-wrapper {
    margin-bottom: 0;
    height: 46px;
}

.signup-btns-row {
    margin-top: 6px;
}

.signup-btns {
    display: flex;
    gap: 12px;
}

.signup-btns .btn-outline,
.signup-btns .btn-primary {
    flex: 1;
    height: 50px;
}

@media (max-width: 600px) {
    .signup-main { width: min(560px, 92vw) !important; }
    #signup-box { padding: 32px 20px; }
    .signup-row {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .signup-row label { text-align: left; }
    .signup-btns-row { grid-template-columns: 1fr; }
    .signup-btns-row > div:first-child { display: none; }
}





/****************************


/****************************


/****************************


/****************************
   PATIENT DASHBOARD
****************************/

body.dashboard-patient {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #deeeff 0%, #d8f2e8 50%, #e4eeff 100%);
    min-height: 100dvh;
    overflow-y: auto;
}

body.dashboard-patient #dashboard-container {
    display: flex;
    min-height: 100dvh;
    align-items: stretch;
}

body.dashboard-patient #dashboard-right-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100dvh;
    overflow-y: auto;
}

/* ---- Sidebar — light glass ---- */
body.dashboard-patient #navigationbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(202,215,234,0.6);
    box-shadow: 2px 0 16px rgba(58,95,142,0.07);
    color: #071633;
}
body.dashboard-patient #navigationbar a {
    color: #3d5672;
    font-weight: 600;
    font-size: 0.88rem;
}
body.dashboard-patient #navigationbar a:hover {
    background: rgba(47,123,255,0.08);
    border-color: rgba(47,123,255,0.12);
    color: #176CFF;
}
body.dashboard-patient #navigationbar a[aria-current="page"] {
    background: rgba(47,123,255,0.12);
    border-color: rgba(47,123,255,0.2);
    color: #176CFF;
    font-weight: 700;
    box-shadow: inset 4px 0 0 0 #2F7BFF;
}

/* Sidebar branding — logo image + text */
.nav-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 12px;
    border-bottom: 1px solid rgba(202,215,234,0.5);
    margin-bottom: 8px;
}
.nav-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}
.nav-brand-text {
    font-size: 15px;
    font-weight: 700;
    color: #08285C;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.nav-copyright {
    font-size: 11px;
    color: #98A6BD;
    font-family: 'Inter', sans-serif;
    padding: 12px 16px 16px;
    margin: 0;
    margin-top: auto;
}

/* ---- Top bar: compact strip, logout pinned right ---- */
.pat-topbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: transparent;
    flex-shrink: 0;
}

/* Red logout button */
body.dashboard-patient #logout-btn {
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    background: #e21710;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(226,23,16,0.3);
}
body.dashboard-patient #logout-btn:hover {
    background: #b81009;
    transform: translateY(-1px);
}

/* Override base #dashboard-content centering for patient page */
body.dashboard-patient #dashboard-content {
    align-items: stretch;
}

/* ---- Main content ---- */
.pat-main {
    padding: 0 24px 32px;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch !important;
    flex: 1;
    box-sizing: border-box;
}

.pat-intro { display: flex; flex-direction: column; gap: 6px; }
.pat-heading {
    font-size: 42px;
    font-weight: 700;
    color: #08285C;
    margin: 0 0 4px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
    line-height: 1.1;
}
.pat-subheading {
    font-size: 14px;
    color: #66748D;
    margin: 0 0 4px;
    font-family: 'Inter', sans-serif;
}
.pat-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #071633;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ---- 3-column game grid ---- */
.pat-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

/* ---- Game card ---- */
.game-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(202,215,234,0.7);
    box-shadow: 0 2px 12px rgba(58,95,142,0.07);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    margin: 0 !important;
    padding: 16px !important;
    text-align: left;
    gap: 6px;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(58,95,142,0.14);
    border-color: rgba(47,123,255,0.25);
}
.game-card-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
    margin-bottom: 4px;
}
.game-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #071633;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}
.game-card-desc {
    font-size: 12px;
    color: #66748D;
    margin: 0;
    font-family: 'Inter', sans-serif;
}
.game-card-select {
    width: fit-content;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #176CFF;
    background: #eef4ff;
    border: 1.5px solid #c8d8f8;
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    appearance: auto;
    margin-top: 4px;
}
.game-card-select:hover { border-color: #2F7BFF; background: #e0ecff; }

.rounds-counter {
    font-size: 12px;
    font-weight: 600;
    color: #66748D;
    font-family: 'Inter', sans-serif;
}
.game-card-link {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 1;
}

/* Responsive */
@media (max-width: 560px) {
    .pat-game-grid { grid-template-columns: 1fr; }
    .pat-main { padding: 0 14px 24px; }
    .pat-topbar {
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 10; padding: 10px 14px; }
}

/* ---- Expanded patient game cards ---- */
.pat-game-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
    width: 100%;
}

.pat-game-card-full {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px !important;
    gap: 14px !important;
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(202,215,234,0.7);
    box-shadow: 0 2px 16px rgba(58,95,142,0.08);
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pat-game-card-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(58,95,142,0.14);
    border-color: rgba(47,123,255,0.25);
}

/* Larger image */
.pat-game-card-full .vmg-game-img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(15,23,42,0.08);
    padding: 8px;
}

/* Larger game name */
.pat-game-card-full .vmg-game-name {
    font-size: 20px !important;
    font-weight: 700;
}

/* Larger badge */
.pat-game-card-full .vmg-badge {
    font-size: 13px !important;
    padding: 4px 12px !important;
}

/* Larger domain label + text */
.pat-game-card-full .vmg-domain {
    font-size: 15px !important;
    line-height: 1.6;
}
.pat-game-card-full .vmg-domain-label {
    font-size: 12px !important;
}

/* Larger description */
.pat-game-card-full .vmg-desc {
    font-size: 15px !important;
    line-height: 1.65;
    color: #334155;
}

/* Larger section labels */
.pat-game-card-full .vmg-section-label {
    font-size: 13px !important;
    margin-bottom: 4px;
}

/* Larger list items */
.pat-game-card-full .vmg-list {
    font-size: 14px !important;
    line-height: 1.85;
}

/* Controls row at bottom */
.pat-card-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(202,215,234,0.5);
    position: relative;
    z-index: 2;
}

.pat-game-card-full .game-card-select {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #176CFF;
    background: #eef4ff;
    border: 2px solid #c8d8f8;
    border-radius: 24px;
    padding: 8px 14px;
    height: 44px;
    cursor: pointer;
    appearance: auto;
    position: relative;
    z-index: 2;
}
.pat-game-card-full .game-card-select:hover { border-color: #2F7BFF; background: #e0ecff; }

.pat-game-card-full .rounds-counter {
    font-size: 15px;
    font-weight: 700;
    color: #3d5672;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Visible Play button — primary way to enter a game */
.game-card-play-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #3d8bff 0%, #0F63FF 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(15,99,255,0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.game-card-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15,99,255,0.35);
}
.game-card-play-icon {
    font-size: 13px;
    line-height: 1;
}
/* Hide the Play button on exhausted cards (replaced by Request More) */
.game-card--exhausted .game-card-play-btn { display: none; }

/* Larger page heading for patients */
body.dashboard-patient .pat-heading {
    font-size: 52px;
}
body.dashboard-patient .pat-subheading {
    font-size: 17px;
}
body.dashboard-patient .pat-section-title {
    font-size: 20px;
}

@media (max-width: 900px) {
    .pat-game-grid-expanded { grid-template-columns: 1fr; }
}


/****************************
     PROFILE PAGE
****************************/

.profile-main {
    gap: 20px;
    max-width: 1100px;
}

/* ---- Page header ---- */
.profile-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
    padding-top: 10px;
}

.btn-outline-sm {
    padding: 8px 16px;
    border: 1.5px solid #CAD7EA;
    border-radius: 8px;
    background: white;
    color: #3d5672;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn-outline-sm:hover {
    border-color: #2F7BFF;
    color: #2F7BFF;
    background: #f0f5ff;
}

/* ---- Card ---- */
.profile-card {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(202,215,234,0.7);
    box-shadow: 0 2px 12px rgba(58,95,142,0.07);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(202,215,234,0.6);
}

.profile-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #071633;
    margin: 0;
}

.profile-card-actions {
    display: flex;
    gap: 8px;
}

.btn-ghost {
    padding: 7px 16px;
    border: 1.5px solid #CAD7EA;
    border-radius: 8px;
    background: transparent;
    color: #3d5672;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn-ghost:hover {
    border-color: #2F7BFF;
    color: #2F7BFF;
    background: #f0f5ff;
}

.btn-save {
    padding: 7px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3d8bff 0%, #0F63FF 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,99,255,0.25);
    transition: opacity 0.15s, transform 0.15s;
}
.btn-save:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Two-column layout ---- */
.profile-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ---- Form grid ---- */
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #66748D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #66748D;
    margin: 0;
    line-height: 1.5;
}

.profile-input,
.profile-select {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #071633;
    background: #f8fafd;
    border: 1.5px solid #CAD7EA;
    border-radius: 8px;
    padding: 9px 12px;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: auto;
}
.profile-input:focus,
.profile-select:focus {
    outline: none;
    border-color: #2F7BFF;
    box-shadow: 0 0 0 3px rgba(47,123,255,0.1);
    background: white;
}
.profile-input:disabled,
.profile-select:disabled {
    background: #f1f4f8;
    color: #98A6BD;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* ---- Assigned games mini-grid inside card ---- */
.profile-assigned-games-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 16px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Scrollable assigned games list — caps height so the card doesn't grow endlessly */
.assigned-games-scroll {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px !important;
    scrollbar-width: thin;
    scrollbar-color: #CAD7EA transparent;
}
.assigned-games-scroll::-webkit-scrollbar { width: 5px; }
.assigned-games-scroll::-webkit-scrollbar-track { background: transparent; }
.assigned-games-scroll::-webkit-scrollbar-thumb { background: #CAD7EA; border-radius: 99px; }

/* ---- Radio rows ---- */
.profile-radio-grid {
    display: flex;
    flex-direction: column;
}

.profile-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(202,215,234,0.5);
}
.profile-radio-row:last-child { border-bottom: none; }

.profile-radio-label {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #1e2a3a;
    flex: 1;
    line-height: 1.45;
}

.profile-radio-options {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.profile-radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #3d5672;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.profile-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2F7BFF;
    cursor: pointer;
    margin: 0;
}

/* ---- Textareas ---- */
.profile-textarea-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #071633;
    background: #f8fafd;
    border: 1.5px solid #CAD7EA;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    line-height: 1.5;
}
.profile-textarea:focus {
    outline: none;
    border-color: #2F7BFF;
    box-shadow: 0 0 0 3px rgba(47,123,255,0.1);
    background: white;
}
.profile-textarea:disabled {
    background: #f1f4f8;
    color: #98A6BD;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .profile-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-page-header { flex-direction: column; }
    .profile-header-actions { flex-wrap: wrap; }
    .profile-radio-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .profile-assigned-games-grid { grid-template-columns: 1fr !important; }
    .profile-card { padding: 18px 16px; }
}


/****************************
     CREDITS PAGE
****************************/

.credits-main,
.credits-clin-main {
    gap: 24px;
    max-width: 860px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.credits-card {
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 32px 28px;
}

.credits-card--wide {
    grid-column: 1 / -1;
}

.credits-card-icon {
    font-size: 32px;
    line-height: 1;
}

.credits-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #071633;
    margin: 0;
}

.credits-card-names {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #66748D;
    line-height: 1.7;
    margin: 0;
}

.credits-mu-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.credits-footer {
    text-align: center;
    padding: 8px 0 16px;
}
.credits-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #98A6BD;
    margin: 2px 0;
}

.credits-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 12px;
    padding: 12px 16px;
    border-top: 1px solid rgba(202,215,234,0.6);
}
.credits-attribution-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.credits-attribution p {
    text-align: left;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}
.credits-attribution a {
    color: #2F7BFF;
    text-decoration: none;
}
.credits-attribution a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .credits-grid { grid-template-columns: 1fr; }
    .credits-card--wide { grid-column: 1; }
}


/****************************
   CLINICIAN DASHBOARD
****************************/

body.dashboard-clinician {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #deeeff 0%, #d8f2e8 50%, #e4eeff 100%);
    min-height: 100dvh;
    overflow-y: auto;
    margin: 0;
}

body.dashboard-clinician #dashboard-container {
    display: flex;
    min-height: 100dvh;
    align-items: stretch;
}

body.dashboard-clinician #dashboard-right-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100dvh;
    overflow-y: auto;
}

/* Light glass sidebar — matches patient POV style */
body.dashboard-clinician #navigationbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(202,215,234,0.6);
    box-shadow: 2px 0 16px rgba(58,95,142,0.07);
    color: #071633;
}
body.dashboard-clinician #navigationbar a {
    color: #3d5672;
    font-weight: 600;
    font-size: 0.88rem;
}
body.dashboard-clinician #navigationbar a:hover {
    background: rgba(47,123,255,0.08);
    border-color: rgba(47,123,255,0.12);
    color: #176CFF;
}
body.dashboard-clinician #navigationbar a[aria-current="page"] {
    background: rgba(47,123,255,0.12);
    border-color: rgba(47,123,255,0.2);
    color: #176CFF;
    font-weight: 700;
    box-shadow: inset 4px 0 0 0 #2F7BFF;
}

/* ---- Top bar ---- */
.clin-topbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    flex-shrink: 0;
}

.clin-logout-btn {
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    background: #e21710;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(226,23,16,0.3);
}
.clin-logout-btn:hover {
    background: #b81009;
    transform: translateY(-1px);
}

/* ---- Clinician user card ---- */
.clin-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px 8px 8px;
    box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}

.clin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.clin-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.clin-user-name {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #071633;
    line-height: 1.2;
}

.clin-user-role {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: #66748D;
    font-weight: 500;
}

/* ---- Main content ---- */
.clin-main {
    padding: 0 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
}

/* ---- Page header ---- */
.clin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.clin-heading {
    font-size: 36px;
    font-weight: 700;
    color: #08285C;
    margin: 0 0 4px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.clin-subheading {
    font-size: 14px;
    color: #66748D;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.clin-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
    padding-top: 8px;
}

/* ---- Card ---- */
.clin-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.clin-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
}

.clin-card-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #66748D;
    margin: 0;
}

/* ---- Tabulator overrides for clinician theme ---- */
body.dashboard-clinician .tabulator {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
body.dashboard-clinician .tabulator-header {
    background: #f8fafd;
    border-bottom: 1px solid #e2e8f0;
}
body.dashboard-clinician .tabulator-col {
    background: #f8fafd;
    border-right: 1px solid #e2e8f0;
    font-weight: 600;
    color: #3d5672;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
body.dashboard-clinician .tabulator-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    cursor: pointer;
}
body.dashboard-clinician .tabulator-row:hover {
    background: #f0f5ff !important;
}
body.dashboard-clinician .tabulator-row.tabulator-row-even {
    background: #fafcff;
}
body.dashboard-clinician .tabulator-cell {
    color: #1e2a3a;
    padding: 12px 14px;
}

/* Game Scores table on the clinician patient-profile page: render with the
   same plain Tabulator styling as the patient profile page (dashboard-profile.html)
   so it stays intact when the font-size control zooms the page. The #scores-grid
   ID selector overrides the clinician theme rules above. */
body.dashboard-clinician #scores-grid.tabulator {
    font-size: 14px;
}
body.dashboard-clinician #scores-grid .tabulator-col {
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    font-weight: 500;
}
body.dashboard-clinician #scores-grid .tabulator-cell {
    padding: 8px 12px;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .clin-main { padding: 0 16px 32px; }
    .clin-topbar { padding: 10px 16px; }
    .clin-page-header { flex-direction: column; }
    .clin-header-actions { flex-wrap: wrap; }
    .clin-card { padding: 18px 16px; }
}


/****************************
   PATIENT PROFILE (Clinician)
****************************/

.clin-page-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #08285C;
    letter-spacing: -0.2px;
}

.pp-main {
    gap: 20px;
    max-width: 1100px;
    align-self: center;
    width: 100%;
}

/* Patient-side profile main — same width/centering */
.pp-pat-main {
    max-width: 1100px;
    align-self: center;
    width: 100%;
}

/* ---- Hero ---- */
.pp-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pp-hero--centered {
    justify-content: center;
    text-align: center;
    padding: 8px 0 4px;
}

.pp-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.pp-hero-name {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #08285C;
    margin: 0 0 3px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.pp-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #66748D;
    margin: 0;
}

/* ---- Upper two-col ---- */
.pp-upper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}

.pp-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Patient info card ---- */
.pp-info-card { gap: 0; }

.pp-info-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pp-info-rows {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.pp-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}
.pp-info-row:last-child { border-bottom: none; }

.pp-info-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #66748D;
    width: 130px;
    flex-shrink: 0;
}

.pp-info-input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 6px;
    padding: 5px 8px;
    transition: border-color 0.2s, background 0.2s;
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
}
.pp-info-input:disabled {
    background: transparent;
    border-color: transparent;
    color: #1e2a3a;
    cursor: default;
    -webkit-text-fill-color: #1e2a3a;
    opacity: 1;
}
.pp-info-input:not(:disabled) {
    background: #f8fafd;
    border-color: #CAD7EA;
}
.pp-info-input:not(:disabled):focus {
    outline: none;
    border-color: #2F7BFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(47,123,255,0.1);
}

.pp-info-select { appearance: auto; }

/* ---- Consent card ---- */
.pp-consent-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #66748D;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* ---- Tabs ---- */
.pp-tabs-card { gap: 0; padding: 0; overflow: hidden; }

.pp-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e2e8f0;
}

.pp-tab-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #66748D;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 15px 0;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    margin-bottom: -1px;
    text-align: center;
}
.pp-tab-btn:hover { color: #2F7BFF; background: #f8fafd; }
.pp-tab-btn.active {
    color: #2F7BFF;
    border-bottom-color: #2F7BFF;
    background: #f5f8ff;
}

.pp-tab-panel { padding: 20px 24px 24px; }

/* ---- Tab section title ---- */
.pp-tab-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Medical tab ---- */
.pp-tab-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pp-med-rows { display: flex; flex-direction: column; }

.pp-med-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.pp-med-row:last-child { border-bottom: none; }

.pp-med-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #334155;
    flex: 1;
}

.pp-med-radios {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.pp-med-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #3d5672;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    user-select: none;
}
.pp-med-pill input[type="radio"] { display: none; }
.pp-med-pill:has(input:checked) {
    background: #eef4ff;
    border-color: #2F7BFF;
    color: #176CFF;
}
.pp-med-pill input:disabled ~ * { opacity: 0.7; }
.pp-med-pill:has(input:disabled) { cursor: not-allowed; }

.pp-med-notes-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-tab-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* ---- Lifestyle tab ---- */
.pp-lifestyle-inner {
    grid-template-columns: 1fr 300px;
}

.pp-lifestyle-rows { display: flex; flex-direction: column; }

.pp-lifestyle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.pp-lifestyle-row:last-child { border-bottom: none; }

.pp-lifestyle-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #334155;
    width: 160px;
    flex-shrink: 0;
}

.pp-lifestyle-select {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #0f172a;
    background: #f8fafd;
    border: 1.5px solid #CAD7EA;
    border-radius: 6px;
    padding: 5px 8px;
    height: 32px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: auto;
    min-width: 0;
}
.pp-lifestyle-select:focus {
    outline: none;
    border-color: #2F7BFF;
    background: white;
}
.pp-lifestyle-select:disabled {
    background: transparent;
    border-color: transparent;
    color: #1e2a3a;
    cursor: default;
    -webkit-text-fill-color: #1e2a3a;
    opacity: 1;
}

.pp-lifestyle-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Scores tab ---- */
.pp-tab-scores-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pp-upper { grid-template-columns: 1fr; }
    .pp-right-col { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .pp-tab-panel-inner { grid-template-columns: 1fr; }
    .pp-lifestyle-inner { grid-template-columns: 1fr; }
    .pp-right-col { grid-template-columns: 1fr; }
    .pp-lifestyle-label { width: 120px; }
}


/****************************
   ADD PATIENT PAGE
****************************/

.add-pat-main {
    gap: 20px;
    max-width: 900px;
    align-self: center;
    width: 100%;
}

/* Header banner */
.add-pat-banner {
    padding: 20px 28px;
}
.add-pat-banner-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #08285C;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Page heading */
.add-pat-heading-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.add-pat-back-link {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #2F7BFF;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.15s;
}
.add-pat-back-link:hover { opacity: 0.75; }

.add-pat-heading {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #08285C;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.add-pat-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #66748D;
    margin: 0;
}

/* Form card */
.add-pat-card {
    gap: 20px;
}
.add-pat-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* 2-col grid */
.add-pat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}
.add-pat-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.add-pat-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #3d5672;
}
.add-pat-required { color: #e21710; }

/* Override input-wrapper for clinician theme */
.add-pat-card .input-wrapper {
    background: #f8fafd;
    border-color: #CAD7EA;
    height: 48px;
    border-radius: 10px;
}
.add-pat-card .input-wrapper:focus-within {
    border-color: #2F7BFF;
    box-shadow: 0 0 0 3px rgba(47,123,255,0.1);
    background: white;
}
.add-pat-card .input-wrapper input {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0f172a;
}
.add-pat-card .input-wrapper input::placeholder { color: #98A6BD; }

/* Password row — half width */
.add-pat-pw-row {
    max-width: 460px;
}

/* Divider */
.add-pat-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Info note */
.add-pat-note {
    background: #f0f5ff;
    border: 1px solid #c8d8f8;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #3d5672;
    line-height: 1.5;
}

/* Action buttons */
.add-pat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}
.add-pat-clear-btn {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
}
.add-pat-submit-btn {
    height: 44px;
    padding: 0 28px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .add-pat-grid { grid-template-columns: 1fr; }
    .add-pat-pw-row { max-width: 100%; }
    .add-pat-actions { justify-content: stretch; }
    .add-pat-clear-btn, .add-pat-submit-btn { flex: 1; }
}


/****************************
   VIEW MINI GAMES PAGE
****************************/

.vmg-main {
    gap: 20px;
    max-width: 1300px;
    width: 100%;
}

/* Page header */
.vmg-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vmg-search-wrap {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #CAD7EA;
    border-radius: 10px;
    padding: 0 14px;
    height: 42px;
    gap: 8px;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vmg-search-wrap:focus-within {
    border-color: #2F7BFF;
    box-shadow: 0 0 0 3px rgba(47,123,255,0.1);
}
.vmg-search-icon { font-size: 14px; color: #66748D; }
.vmg-search-input {
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    background: transparent;
    width: 200px;
}
.vmg-search-input::placeholder { color: #98A6BD; }

/* 3-column grid */
.vmg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

/* Game card */
.vmg-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15,23,42,0.06);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reset tile styles */
    flex: unset !important;
    text-align: left !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* Card top: image + title/badge */
.vmg-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vmg-game-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: #1e293b;
    padding: 6px;
    flex-shrink: 0;
}
.vmg-card-title-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.vmg-game-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

/* Category badges */
.vmg-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 99px;
    width: fit-content;
    letter-spacing: 0.2px;
}
.vmg-badge--memory  { background: #dbeafe; color: #1d4ed8; }
.vmg-badge--attention { background: #fef3c7; color: #b45309; }
.vmg-badge--exec    { background: #ede9fe; color: #7c3aed; }
.vmg-badge--speed   { background: #fee2e2; color: #b91c1c; }
.vmg-badge--orient  { background: #d1fae5; color: #065f46; }

/* Domain */
.vmg-domain {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #334155;
    margin: 0;
    line-height: 1.5;
}
.vmg-domain-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.4px;
    color: #66748D;
}

/* Description */
.vmg-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

/* Sections (Rules, Data Gathered) */
.vmg-section { display: flex; flex-direction: column; gap: 4px; }
.vmg-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.vmg-list {
    margin: 0;
    padding-left: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #475569;
    line-height: 1.7;
}

/* Assign rows */
.vmg-assign-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}
.vmg-assign-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vmg-assign-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #66748D;
    width: 90px;
    flex-shrink: 0;
}
.vmg-select {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #0f172a;
    background: #f8fafd;
    border: 1.5px solid #CAD7EA;
    border-radius: 7px;
    padding: 5px 8px;
    height: 32px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: auto;
    cursor: pointer;
}
.vmg-select:focus { outline: none; border-color: #2F7BFF; }
.vmg-select--sm { flex: 0 0 70px; }

/* Action buttons */
.vmg-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.vmg-demo-btn {
    flex: 1;
    height: 36px;
    border: 1.5px solid #CAD7EA;
    border-radius: 8px;
    background: white;
    color: #3d5672;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.vmg-demo-btn:hover { border-color: #2F7BFF; color: #2F7BFF; background: #f0f5ff; }

.vmg-assign-btn {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3d8bff 0%, #0F63FF 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15,99,255,0.25);
    transition: opacity 0.15s, transform 0.15s;
}
.vmg-assign-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1100px) {
    .vmg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .vmg-grid { grid-template-columns: 1fr; }
    .vmg-page-header { flex-direction: column; }
    .vmg-search-input { width: 160px; }
}

.game-card--exhausted {
    opacity: 0.55;
    filter: grayscale(80%);
    cursor: default;
}

.game-card--exhausted:hover {
    transform: none;
    box-shadow: 0 2px 16px rgba(58,95,142,0.08);
    border-color: rgba(202,215,234,0.7);
}

.request-more-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    padding: 12px 28px;
    background-color: #3d5672;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.request-more-btn:hover:not(:disabled) {
    background-color: #2c3f58;
}

.request-more-btn:disabled {
    background-color: #9CA3AF;
    cursor: default;
}

.game-card--exhausted select {
    pointer-events: none;
}

.game-card--hidden {
    display: none !important;
}

/****************************
   PENDING REQUESTS
****************************/
.pending-requests-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    margin: 0 0 8px;
}

.pending-request-item {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}


/****************************
   TOPBAR FONT SIZE BUTTONS
****************************/
.topbar-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-size-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #2F7BFF;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(47,123,255,0.35);
}
.font-size-btn:hover {
    background: #1a63e0;
    transform: translateY(-1px);
}

/****************************
   PATIENT LIST TABLE
****************************/
.pt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.pt-header-row th {
    background: #f8fafd;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #3d5672;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 14px;
    text-align: left;
}
.pt-filter-row td {
    padding: 6px 8px;
    background: #f8fafd;
    border-bottom: 1px solid #e2e8f0;
}
.pt-filter-row input {
    width: 100%;
    padding: 5px 8px;
    border: 1.5px solid #CAD7EA;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #0f172a;
    background: white;
    box-sizing: border-box;
}
.pt-filter-row input:focus {
    outline: none;
    border-color: #2F7BFF;
}
.pt-tbody tr {
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}
.pt-tbody tr:hover { background: #f0f5ff; }
.pt-data-row td {
    padding: 12px 14px;
    color: #1e2a3a;
}
.pt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
}
.pt-page-btn {
    padding: 6px 14px;
    border: 1.5px solid #CAD7EA;
    border-radius: 7px;
    background: white;
    color: #3d5672;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pt-page-btn:hover:not(:disabled) { border-color: #2F7BFF; color: #2F7BFF; background: #EEF5FF; }
.pt-page-btn:disabled { opacity: 0.35; cursor: default; }
.pt-page-info {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #66748D;
}
