@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

:root {
    --primary: #ff2e4d;
    --accent-glow:
        rgba(255, 46, 77, 0.4) 0px 0px 0px 1px,
        rgba(255, 46, 77, 0.55) 0px 0px 24px -2px,
        rgba(255, 46, 77, 0.5) 0px 0px 60px -12px;
    --color-amber: #ffb900;
    --color-red: #ff2e4d;
    --color-emerald: #10b981;
    --background: #0a0d14;
    --foreground: oklch(98% 0.005 260);
    --muted-foreground: oklch(0.68 0.02 255);
    --border: #1e2636;
    --surface: #121824;
    --surface-2: #0f1420;
    --surface-blur: rgba(18, 24, 36, 0.7);
    --navbar-bg: oklab(0.159393 -0.000934765 -0.0157065 / 0.8);
    --nav-bottom-border: oklab(0.268612 -0.00346966 -0.0319554 / 0.6);
    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --primary-glow-shadow:
        0 0 0 1px #ff2e4d66, 0 0 24px -2px #ff2e4d8c, 0 0 60px -12px #ff2e4d80;
    --card-surface: linear-gradient(180deg, #ffffff05, #fff0), var(--surface);
    --card-border: 1px solid #94a3b814;
    --card-shadow: inset 0 1px #ffffff08, 0 20px 40px -20px #0009;
    --oklab-primary-10: oklab(0.648946 0.223228 0.0823399 / 0.1);
    --oklab-primary-20: oklab(0.648946 0.223228 0.0823399 / 0.2);
    --oklab-primary-40: oklab(0.648946 0.223228 0.0823399 / 0.4);
    --icon-sm: 16px;
    --icon-md: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--foreground);
}

.toastify {
    background: var(--surface) !important;
    color: var(--foreground) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 20px !important;
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
}

.toast-success {
    border-left: 4px solid var(--color-emerald) !important;
    box-shadow:
        0 0 15px rgba(16, 185, 129, 0.25),
        var(--card-shadow) !important;
}

.toast-error {
    border-left: 4px solid var(--color-red) !important;
    box-shadow: var(--accent-glow) !important;
}

.toast-warning {
    border-left: 4px solid var(--color-amber) !important;
    box-shadow:
        0 0 15px rgba(255, 185, 0, 0.25),
        var(--card-shadow) !important;
}

.highlight {
    color: var(--primary);
}

.nav-bar {
    z-index: 10;
    min-height: 60px;
    width: 100%;
    padding: 0rem 0.8rem;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-bottom-border);
}

.brand-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--primary) 15%, transparent);
}

.brand-icon svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
    fill: var(--primary);
    stroke: var(--primary);
    filter: drop-shadow(0px 4px 12px rgba(255, 46, 77, 0.4));
}

.brand-name {
    font-size: 1.1rem;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-subname {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.signout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--oklab-primary-10);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-xl);
    color: var(--primary);
    transition: 0.3s all ease-in-out;
    border: 1px solid var(--oklab-primary-40);
}

.signout-btn:hover {
    background: var(--oklab-primary-20);
}

.signout-btn svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
}

.tab-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem;
    background: var(--surface-blur);
    backdrop-filter: blur(20px);
    height: 50px;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: 25px;
}

.tab-button {
    width: 150px;
    height: 100%;
    border: none;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0);
    color: var(--muted-foreground);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.tab-button:hover {
    color: var(--foreground);
}

.tab-button.active {
    background: var(--primary);
    box-shadow: var(--accent-glow);
    color: var(--foreground);
    font-weight: 700;
}

.tab-panel {
    display: none;
}

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

.auth-page {
    touch-action: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.3rem;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: color-mix(in oklab, var(--background) 75%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.auth-page .brand-info {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.auth-page .brand-name {
    font-size: 1.3rem;
}

.auth-page .brand-icon {
    width: 35px;
    height: 35px;
}

.auth-card {
    touch-action: pan-y;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    background: var(--card-surface);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

.login-form,
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-text {
    display: inline-flex;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    align-items: center;
    color: var(--primary);
    letter-spacing: 1.2px;
    font-weight: bold;
}

.auth-text svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
    stroke: var(--primary);
}

.auth-head {
    font-size: 1.6rem;
}

.auth-subhead {
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.auth-input-field {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-input {
    outline: none;
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
}

.auth-input-field label {
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bolder;
    letter-spacing: 0.8px;
}

.auth-btn {
    cursor: pointer;
    height: 40px;
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-weight: bolder;
}

.auth-bottom-txt {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-align: center;
}

.auth-bottom-txt a {
    text-decoration: none;
    color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
}

.role-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.role-btn {
    flex: 1;
    padding: 0.4rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-btn.active {
    background: var(--primary);
    color: var(--foreground);
    font-weight: bolder;
}

.tab-panel {
    margin-top: 60px;
}

#panel-donor {
    padding: 1.4rem;
    gap: 1rem;
}

#panel-donor.active {
    display: flex;
    flex-direction: column;
}

.home-div {
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--card-surface);
    border: var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
}

.main-home-div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-blob {
    width: 10rem;
    height: 10rem;
    position: absolute;
    top: 0;
    right: 0;
    filter: blur(64px);
    background-color: var(--oklab-primary-20);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-shadow 1.8s infinite ease-in-out;
    box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7);
    background-color: var(--primary);
}

@keyframes pulse-shadow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(255, 46, 77, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 46, 77, 0);
    }
}

.home-badge {
    width: fit-content;
    color: var(--primary);
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
    background-color: var(--oklab-primary-10);
}

.home-text {
    font-size: 2.1rem;
    text-align: left;
    -webkit-text-stroke: 0.5px #ffffff;
}

.home-text .highlight {
    -webkit-text-stroke: 0.5px var(--primary);
}
.home-des {
    color: var(--muted-foreground);
}

.home-btn {
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    border: none;
    box-shadow: var(--primary-glow-shadow);
    background-color: var(--primary);
    color: #fff;
}

.home-btn:active {
    transform: scale(0.95);
}

.home-btn svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
}

.home-btn:active {
    transform: scale(0.95);
}

.home-widgets {
    display: flex;
    gap: 1.5rem;
}

.widget {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    height: fit-content;
    background-color: rgb(15, 20, 32);
    border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
    padding: 1rem;
    border-radius: var(--radius-xl);
}

.bold-text {
    color: var(--muted-foreground);
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: bolder;
}

.widget-value {
    font-size: 1.8rem;
}

.emergency-broadcast {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-bottom: 2rem;
}

.request-amount {
    color: #ffffff;
}

.donor-en-route-count {
    color: #22c55e;
}

.urgent-request {
    color: var(--color-amber);
}

.broadcast-head {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary);
}

.broadcast-head svg {
    width: var(--icon-md);
    height: var(--icon-md);
}

.requests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 2rem;
}

.request-card {
    width: 100%;
    background: var(--card-surface);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-xl);
}

.main-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.glow-top {
    width: 100%;
    height: 1px;
}

.glow-top-red {
    background-image: linear-gradient(
        to right in oklab,
        rgba(0, 0, 0, 0) 0%,
        rgb(255, 46, 77) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.glow-top-amber {
    background-image: linear-gradient(
        to right in oklab,
        rgba(0, 0, 0, 0) 0%,
        rgb(245, 158, 11) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-bottom: 0.3rem;
}

.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bolder;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.badge-critical,
.status-confirmed {
    background-color: color-mix(in oklab, var(--primary) 15%, transparent);
    color: var(--color-red);
}

.badge-urgent,
.status-open,
.status-en-route {
    background-color: color-mix(in oklab, var(--color-amber) 15%, transparent);
    color: var(--color-amber);
}

.request-id {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--muted-foreground);
}

.card-title {
    font-size: 1.1rem;
}

.card-title .highlight {
    font-family: var(--font-mono);
}

.hospital-name {
    color: #8b9ab0;
    font-size: 0.8rem;
    margin-top: 2px;
}

.blood-type-badge {
    color: var(--primary);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
    background-color: color-mix(in oklab, var(--primary) 10%, transparent);
}

.blood-type-badge span {
    font-family: var(--font-mono);
    font-weight: bolder;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    background-color: var(--surface-2);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.text-red {
    color: var(--color-red);
}

.stat-value.text-orange {
    color: var(--color-amber);
}

.en-route {
    color: var(--color-emerald) !important;
}

.btn-donate {
    width: 100%;
    background-color: #ff2e4d;
    color: #ffffff;
    border: none;
    padding: 0.6rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(255, 46, 77, 0.4);
    transition: all 0.2s ease;
}

.btn-donate:hover {
    background-color: #ff1a3c;
    box-shadow: 0 0 25px rgba(255, 46, 77, 0.6);
    transform: translateY(-1px);
}

.btn-donate svg {
    width: 18px;
    height: 18px;
    fill: white;
}

#panel-clinic {
    padding: 1.4rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 4em;
}

#panel-clinic.active {
    display: flex;
}

.clinic-head {
    background: var(--card-surface);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-xl);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.clinic-icon {
    color: var(--primary);
    padding: 0.8rem;
    border-radius: var(--radius-xl);
    background-color: color-mix(in oklab, var(--primary) 15%, transparent);
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
}

.clinic-header {
    font-size: 1.2rem;
}

.clinic-sub-header {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.clinic-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.request-generator {
    background: var(--card-surface);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-xl);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-header {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary);
}

.request-header svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
}

.blood-type-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    text-transform: uppercase;
    color: var(--muted-foreground);
    font-weight: bold;
    font-size: 0.7rem;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.blood-btn {
    font-family: var(--font-mono);
    color: var(--foreground);
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
}

.blood-btn.active {
    background-color: color-mix(in oklab, var(--primary) 15%, transparent);
    border-color: var(--primary);
    box-shadow: var(--primary-glow-shadow);
}

.unit-range-div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blood-unit-input {
    accent-color: var(--primary);
}

.urgency-level {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.urgency-btn {
    flex: 1;
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
}

.urgency-btn[data-value="urgent"].active {
    background-color: #1a1600;
    color: #ffb900;
    border-color: #ffb900;
    box-shadow: 0 0 10px rgba(255, 185, 0, 0.3);
}

.urgency-btn[data-value="critical"].active {
    background-color: #1a0f14;
    color: #ff2e4d;
    border-color: #ff2e4d;
    box-shadow: 0 0 10px rgba(255, 46, 77, 0.3);
}

.urgency-btn-div {
    display: flex;
    gap: 1rem;
}

.location-input-div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-input,
.required-hours-input {
    outline: none;
    color: var(--foreground);
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--surface-2);
    border: 1px solid var(--border);
}

.required-hours-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clinic-submit-btn {
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    font-weight: bold;
    border-radius: var(--radius-xl);
    border: none;
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--primary-glow-shadow);
}

.clinic-submit-btn svg {
    width: 15px;
    height: 15px;
}

.clinic-submit-btn:active {
    transform: scale(0.95);
}

.live-incoming-donors {
    background: var(--card-surface);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-xl);
    padding: 1.2rem;
}

.donor-label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary);
}

.donor-label svg {
    width: 15px;
    height: 15px;
}

.live-incoming-donors {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.table-card {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    width: 100%;
    background-color: var(--surface-2);
    padding: 1rem;
}

.data-table th {
    text-align: left;
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem 0.4rem 0.8rem;
    color: var(--muted-foreground);
}

.data-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
}

.text-right {
    text-align: right;
}

.type-badge {
    display: inline-block;
    padding: 0.5rem;
    background-color: var(--background);
    border-radius: 10px;
    font-family: var(--font-mono);
}

.text-right {
    text-align: right;
    font-weight: 600;
}

.match-id {
    font-family: var(--font-mono);
}

.units {
    color: var(--muted-foreground);
    font-family: var(--font-mono);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 30px;
}

.status-en-route {
    background: color-mix(in oklab, var(--color-amber) 15%, transparent);
    color: var(--color-amber);
}

.status-confirmed {
    background-color: color-mix(in oklab, var(--primary) 15%, transparent);
    color: var(--primary);
}

.status-closed {
    color: var(--color-emerald);
    background-color: color-mix(
        in oklab,
        var(--color-emerald) 15%,
        transparent
    );
}

.data-table th:nth-child(3),
.data-table td:nth-child(3),
.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    text-align: right;
}

.verify-input-div {
    display: flex;
    gap: 0.6rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 0.5rem 0.8rem;
    align-items: center;
    border-radius: 10px;
}

.verify-input-div svg {
    width: 15px;
    height: 15px;
    stroke: var(--muted-foreground);
}

.verify-input {
    outline: none;
    color: white;
    background: transparent;
    border: none;
    flex: 1;
}

.verify-btn {
    padding: 0.3rem 0.6rem;
    background-color: var(--primary);
    border: none;
    color: white;
    border-radius: 10px;
}

.confirmation-popup {
    padding: 1.3rem;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: color-mix(in oklab, var(--background) 75%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.confirmation-div {
    position: relative;
    width: 100%;
    max-width: 400px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 1.3rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.popup-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.popup-head {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.8px;
}

.popup-subhead {
    font-size: 1.4rem;
}

.popup-info {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.popup-close-btn {
    position: absolute;
    right: 1.3rem;
    background: var(--background);
    border: none;
    color: var(--foreground);
    padding: 0.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.popup-close-btn svg {
    width: 16px;
    height: 16px;
}

.popup-details {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.8rem;
    border-radius: 20px;
}

.confirmation-div .glow-top {
    position: absolute;
    top: 0;
}

.basic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.info-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.info-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.directions-btn {
    box-shadow:
        0 0 0 1px #ff2e4d66,
        0 0 24px -2px #ff2e4d8c,
        0 0 60px -12px #ff2e4d80;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    border-radius: 20px;
    border: none;
    padding: 0.6rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.8rem;
}

.directions-btn:active {
    transform: scale(0.95);
}

.directions-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--foreground);
}

button:disabled {
    pointer-events: none;
}

.tab-wrapper {
    position: relative;
    display: inline-block;
    border-radius: inherit;
}

.tab-wrapper button:disabled {
    pointer-events: none;
}

.tab-wrapper[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.tab-wrapper[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

@media screen and (min-width: 1024px) {
    .home-div {
        padding: 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .home-text {
        font-size: 2.8rem;
        letter-spacing: -0.5px;
    }

    .widget {
        width: 160px;
    }

    .tab-panel {
        padding: 1.4rem 4rem !important;
    }

    .nav-bar {
        padding: 0.5rem 4rem;
    }
    .clinic-body {
        flex-direction: row;
        gap: 1.5rem;
    }
    .request-generator,
    .live-incoming-donors {
        flex: 1;
    }
    .widget-value {
        font-size: 2.1rem;
    }
    .requests {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media screen and (max-width: 400px) {
    .urgency-btn{
        font-size: 0.7rem;
    }
    .clinic-header{
        font-size: 1rem;
    }
    .clinic-sub-header{
        font-size: 0.7rem;
    }
    .type-badge{
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    .status-badge{
        font-size: 0.6rem;
    }
    .data-table td{
        text-align: center !important;
    }
    .text-right.units{
        font-size: 0.6rem;
    }
    .match-id{
        font-size: 0.7rem !important;
    }
    .widget-value{
        font-size: 1.5rem;
    }
    .home-text{
        font-size: 1.9rem;
    }
    .home-des{
        font-size: 0.9rem;
    }
    .stats-container {
        align-items: center;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .stat-item {
       width: 100%;
    }

    .stat-label{
        text-align: center;
        font-size: 0.6rem;
    }

    .stat-value{
        text-align: center;
        font-size: 0.7rem;
    }
}
