/* LabNest UI — modern neutral lab aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #3b82f6;
    --accent-strong: #1d4ed8;
    --accent-soft: #e8f1ff;
    --success: #1dbf73;
    --warning: #f59e0b;
    --danger: #ef4444;
    --muted: #94a3b8;
    --ink-100: #f5f7fb;
    --ink-200: #e7ecf3;
    --ink-300: #d4d9e1;
    --ink-400: #b2bccb;
    --ink-500: #7c8a9d;
    --ink-600: #4b5563;
    --ink-700: #273244;
    --ink-800: #1a2233;
    --ink-900: #0e1626;
    --white: #ffffff;
    --surface: rgba(255, 255, 255, 0.92);
    --shadow-sm: 0 6px 18px rgba(14, 22, 38, 0.07);
    --shadow-md: 0 12px 28px rgba(14, 22, 38, 0.1);
    --shadow-lg: 0 24px 48px rgba(14, 22, 38, 0.14);

    /* Legacy tokens mapped to the new palette for compatibility */
    --primary: var(--accent);
    --primary-light: #5b9bff;
    --primary-dark: #12307a;
    --gray-50: var(--ink-100);
    --gray-100: var(--ink-200);
    --gray-200: var(--ink-300);
    --gray-300: var(--ink-400);
    --gray-400: var(--ink-500);
    --gray-500: var(--ink-600);
    --gray-600: var(--ink-600);
    --gray-700: var(--ink-700);
    --gray-800: var(--ink-800);
    --gray-900: var(--ink-900);
}

body {
    font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(61, 118, 230, 0.08), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(23, 172, 191, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, #eef1f6 60%, #eaeef5 100%);
    color: var(--ink-800);
    letter-spacing: -0.2px;
    overflow-x: hidden;
}

.app {
    display: flex;
    height: 100vh;
}

/* AUTH VIEW */
.auth-view {
    display: flex;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(29, 78, 216, 0.08), transparent 30%),
        linear-gradient(120deg, #0e1626 0%, #151e30 40%, #0e1626 100%);
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-view::before,
.auth-view::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    filter: blur(90px);
    opacity: 0.35;
    border-radius: 50%;
}

.auth-view::before {
    background: #3b82f6;
    top: -40px;
    left: -80px;
}

.auth-view::after {
    background: #22c55e;
    bottom: -120px;
    right: -40px;
}

.auth-container {
    background: var(--surface);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-800);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--muted);
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.auth-actions .btn-primary {
    width: auto;
    min-width: 180px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-600);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--ink-200);
    border-radius: 12px;
    font-size: 14px;
    background: var(--white);
    color: var(--ink-800);
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.22s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--ink-100);
    color: var(--ink-700);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #eef2f6;
    border-color: var(--ink-300);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
}

/* MAIN APP */
.main-app {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: var(--white);
    padding-top: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.4px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    list-style: none;
}

.nav-item {
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.22s ease;
    gap: 12px;
    cursor: pointer;
    border: none;
    background: none;
    width: calc(100% - 16px);
    font-size: 14px;
    font-weight: 600;
    margin: 4px 8px;
    border-radius: 12px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.28));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow: hidden;
    margin-left: 280px;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--ink-200);
    padding: 18px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 3;
}

.header-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink-800);
    letter-spacing: -0.4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--ink-200);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--ink-300);
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: 115%;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-lg);
    border-radius: 14px;
    padding: 14px;
    min-width: 220px;
    display: none;
    z-index: 5;
}

.user-menu-panel.active {
    display: block;
}

.user-menu-panel button {
    width: 100%;
    margin-top: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.35));
    color: var(--ink-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f6f8fb 0%, #f1f4f9 100%);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* DASHBOARD */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.metric-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ink-200);
    transition: all 0.24s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -35%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    transform: rotate(-8deg);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.35);
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink-800);
    margin-bottom: 10px;
    letter-spacing: -0.8px;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-600);
}

.metric-change.positive {
    color: var(--success);
}

.metric-change.negative {
    color: var(--danger);
}

.card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ink-200);
    margin-bottom: 22px;
    transition: all 0.24s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.32);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--ink-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ink-100);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-800);
    letter-spacing: -0.2px;
}

.card-body {
    padding: 18px 20px;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid;
    background: var(--surface);
}

.alert-warning {
    color: #b7791f;
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.08);
}

.alert-danger {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
}

.alert-success {
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
}

/* TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--ink-100);
}

.table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--ink-600);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--ink-200);
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ink-100);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-800);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--accent-soft);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.28);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b7791f;
    border-color: rgba(245, 158, 11, 0.28);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
}

.badge-pending {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.28);
}

.badge-approved {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.28);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.48);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 18px;
    padding: 36px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-200);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--ink-800);
    letter-spacing: -0.2px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.freezer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.freezer-card {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    padding: 18px;
    transition: all 0.22s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.freezer-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: var(--shadow-md);
}

.freezer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-800);
    margin-bottom: 8px;
}

.freezer-info {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .sidebar {
        width: 74px;
    }

    .content-area {
        margin-left: 74px;
    }

    .sidebar-logo,
    .nav-link span:last-child,
    .sidebar-footer {
        display: none;
    }

    .nav-link {
        justify-content: center;
        padding: 12px 8px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 24px;
    }
            .freezer-list {
                grid-template-columns: 1fr;
            }
        }

/* Utility classes to replace inline styles */
.auth-demo-text {
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

.main-app-hidden {
    display: none;
}

.user-profile-logout {
    color: var(--white);
    font-size: 12px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--success);
    color: var(--gray-900);
}

.user-info-container {
    flex: 1;
}

.user-name {
    font-weight: 500;
}

.user-logout-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.user-menu-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.user-menu-email {
    font-size: 13px;
    color: var(--gray-600);
}

.user-menu-button {
    margin-top: 12px;
}

.card-header-flex {
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-medium {
    max-width: 280px;
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-button {
    background: none;
    color: var(--primary);
    font-size: 20px;
}

.search-input-flex {
    flex: 1;
}

.btn-hidden {
    display: none;
}

.samples-search {
    margin-bottom: 16px;
}

.back-button-container {
    margin-bottom: 20px;
}

.add-user-button {
    margin-bottom: 16px;
}

.invite-form-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.invite-email-input {
    width: 220px;
}

.invite-role-select {
    width: 160px;
}

.textarea-notes {
    min-height: 60px;
}

/* Mouse Colony Management Styles */
.mouse-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ink-200);
    padding-bottom: 0;
}

.mouse-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-600);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.mouse-tab:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.mouse-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.mouse-tab-content {
    display: none;
}

.mouse-tab-content.active {
    display: block;
}

/* Mouse Lines Grid */
.mouse-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.mouse-line-card {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.22s ease;
    box-shadow: var(--shadow-sm);
}

.mouse-line-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mouse-line-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mouse-line-color {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mouse-line-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-800);
}

.mouse-line-info {
    font-size: 13px;
    color: var(--ink-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.mouse-line-actions {
    display: flex;
    gap: 8px;
}

/* Mating Planner */
.mating-mice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.mating-mouse-card {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 12px;
    cursor: move;
    transition: all 0.22s ease;
    box-shadow: var(--shadow-sm);
}

.mating-mouse-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.mating-mouse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink-200);
}

.mating-mouse-id {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-800);
}

.mating-mouse-sex {
    font-size: 18px;
    font-weight: 700;
}

.mating-mouse-info {
    font-size: 12px;
    color: var(--ink-600);
    line-height: 1.6;
}

.mating-mouse-info div {
    margin-bottom: 4px;
}

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

.planner-column {
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.planner-title {
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 10px;
}

.drop-zone {
    border: 2px dashed var(--ink-300);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--ink-500);
    background: var(--ink-100);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--ink-100);
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink-700);
}

.chip-sub {
    margin-left: 8px;
    font-weight: 600;
    color: var(--ink-500);
}

.phenotype-result {
    min-height: 100px;
    background: var(--ink-100);
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.pred-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    margin-bottom: 6px;
}

/* Color Picker */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Family Tree */
.modal-large {
    max-width: 900px;
}

.family-tree-container {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.family-tree {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.family-generation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.family-generation h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.family-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.family-node {
    background: var(--surface);
    border: 2px solid;
    border-radius: 10px;
    padding: 12px;
    min-width: 150px;
    box-shadow: var(--shadow-sm);
}

.family-node-header {
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 8px;
}

.family-node-info {
    font-size: 13px;
    color: var(--ink-600);
}

/* Freezer Map Visualization */
.freezer-map-wrapper {
    margin-bottom: 16px;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.freezer-map-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid var(--ink-200);
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.freezer-map-header:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.18));
}

.freezer-map-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.freezer-toggle-arrow {
    display: inline-flex;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.2s ease;
    min-width: 12px;
}

.freezer-toggle-arrow.expanded {
    transform: rotate(0deg);
}

.freezer-name-header {
    font-weight: 700;
    color: var(--ink-800);
    font-size: 15px;
}

.freezer-map-container {
    padding: 16px;
    max-height: 2000px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: none;
}

.freezer-map-container.expanded {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.freezer-map-container.collapsed {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
}

.freezer-map-container:last-child {
    border-bottom: none;
}

.freezer-map-container h4 {
    margin-bottom: 16px;
    color: var(--ink-800);
    font-weight: 700;
}

.freezer-shelf {
    margin-bottom: 24px;
    padding: 12px;
    background: var(--ink-100);
    border-radius: 12px;
}

.freezer-shelf-label {
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.freezer-rack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.freezer-rack {
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.freezer-rack-label {
    font-weight: 700;
    color: var(--ink-600);
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
}

.freezer-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.freezer-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-100);
    border: 1px solid var(--ink-300);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-600);
    cursor: default;
    transition: all 0.2s ease;
    text-align: center;
    padding: 2px;
    word-break: break-word;
}

.freezer-box:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
}

.freezer-box-occupied {
    background: linear-gradient(135deg, rgba(29, 191, 115, 0.2), rgba(29, 191, 115, 0.32));
    border-color: var(--success);
    color: var(--success);
    font-weight: 700;
}

.freezer-box-occupied:hover {
    background: linear-gradient(135deg, rgba(29, 191, 115, 0.3), rgba(29, 191, 115, 0.42));
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.24);
}

/* Scrollbar styling for freezer maps */
.freezer-map-container::-webkit-scrollbar {
    width: 8px;
}

.freezer-map-container::-webkit-scrollbar-track {
    background: var(--ink-100);
}

.freezer-map-container::-webkit-scrollbar-thumb {
    background: var(--ink-300);
    border-radius: 4px;
}

.freezer-map-container::-webkit-scrollbar-thumb:hover {
    background: var(--ink-400);
}



/* Utility classes to replace inline styles */
.auth-demo-text {
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

.main-app-hidden {
    display: none;
}

.user-profile-logout {
    color: var(--white);
    font-size: 12px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--success);
    color: var(--gray-900);
}

.user-info-container {
    flex: 1;
}

.user-name {
    font-weight: 500;
}

.user-logout-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.user-menu-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.user-menu-email {
    font-size: 13px;
    color: var(--gray-600);
}

.user-menu-button {
    margin-top: 12px;
}

.card-header-flex {
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-medium {
    max-width: 280px;
}

.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-button {
    background: none;
    color: var(--primary);
    font-size: 20px;
}

.search-input-flex {
    flex: 1;
}

.btn-hidden {
    display: none;
}

.samples-search {
    margin-bottom: 16px;
}

.back-button-container {
    margin-bottom: 20px;
}

.add-user-button {
    margin-bottom: 16px;
}

.invite-form-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.invite-email-input {
    width: 220px;
}

.invite-role-select {
    width: 160px;
}

.textarea-notes {
    min-height: 60px;
}

/* Freezer Map Visualization */
.freezer-map-wrapper {
    margin-bottom: 16px;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.freezer-map-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid var(--ink-200);
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.freezer-map-header:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.18));
}

.freezer-map-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.freezer-toggle-arrow {
    display: inline-flex;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.2s ease;
    min-width: 12px;
}

.freezer-toggle-arrow.expanded {
    transform: rotate(0deg);
}

.freezer-name-header {
    font-weight: 700;
    color: var(--ink-800);
    font-size: 15px;
}

.freezer-map-container {
    padding: 16px;
    max-height: 2000px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: none;
}

.freezer-map-container.expanded {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.freezer-map-container.collapsed {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
}

.freezer-map-container:last-child {
    border-bottom: none;
}

.freezer-map-container h4 {
    margin-bottom: 16px;
    color: var(--ink-800);
    font-weight: 700;
}

.freezer-shelf {
    margin-bottom: 24px;
    padding: 12px;
    background: var(--ink-100);
    border-radius: 12px;
}

.freezer-shelf-label {
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.freezer-rack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.freezer-rack {
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.freezer-rack-label {
    font-weight: 700;
    color: var(--ink-600);
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
}

.freezer-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.freezer-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-100);
    border: 1px solid var(--ink-300);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-600);
    cursor: default;
    transition: all 0.2s ease;
    text-align: center;
    padding: 2px;
    word-break: break-word;
}

.freezer-box:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
}

.freezer-box-occupied {
    background: linear-gradient(135deg, rgba(29, 191, 115, 0.2), rgba(29, 191, 115, 0.32));
    border-color: var(--success);
    color: var(--success);
    font-weight: 700;
}

.freezer-box-occupied:hover {
    background: linear-gradient(135deg, rgba(29, 191, 115, 0.3), rgba(29, 191, 115, 0.42));
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.24);
}

/* Scrollbar styling for freezer maps */
.freezer-map-container::-webkit-scrollbar {
    width: 8px;
}

.freezer-map-container::-webkit-scrollbar-track {
    background: var(--ink-100);
}

.freezer-map-container::-webkit-scrollbar-thumb {
    background: var(--ink-300);
    border-radius: 4px;
}

.freezer-map-container::-webkit-scrollbar-thumb:hover {
    background: var(--ink-400);
}

