﻿/*@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');*/
/* ==========================
   Global Styles and Variables
   ========================== */

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #5C5C5C;
    --accent-color: #98CC67;
    --dark-text: #333333;
    --light-text: #FFFFFF;
    /* Gradients */
    --primary-gradient: linear-gradient(45deg, var(--primary-color), var(--bs-light), var(--primary-color));
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color), rgba(var(--secondary-color), 0.5), var(--secondary-color));
    --accent-gradient: linear-gradient(to top, var(--accent-color), var(--accent-color), var(--accent-color));
    /* Spacing Variables */
    --global-margin: 0rem;
    --global-padding: 0rem;
    --text-color: #343a40;
    --text-grey: #5c5c5c;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    /* Bootstrap Colors */
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}

/* Gradients tester noen andre
    --primary-gradient: linear-gradient(to top, var(--primary-color), transparent);
    --secondary-gradient: linear-gradient(to top, var(--secondary-color), transparent);
    --accent-gradient: linear-gradient(to top, var(--accent-color), transparent);

        */


.primary {
    color: var(--primary-color);
}

.secondary {
    color: var(--secondary-color);
}

.accent {
    color: var(--accent-color);
}

.dark-text {
    color: var(--dark-text);
}

light-text {
    color: var(--light-text);
}


body,
html,
.page,
.sidebar,
.content {
    margin: var(--global-margin);
    padding: var(--global-padding);
    font-family: var(--font-family);
}

.top-row {
    margin: var(--global-margin);
    padding: var(--global-padding);
    font-family: var(--font-family);
    position: sticky;
    top: 0;
    z-index: 1050;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-container {
    padding-bottom: 10px;
    /* Adjust this value according to the height of your footer */
    flex: 1;
    /* Takes up all available space */
}

*/ main {
    padding-left: 1rem;
    padding-top: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures the main content area takes up the full height of the viewport */
}


body {
    color: var(--secondary-color);
}

#Title {
    font-size: 2rem !important;
    /* Adjust size as needed */
    font-weight: bold;
    color: var(--bs-primary);
    /* Bootstrap 5 primary color variable */
}



.page {
    display: flex;
    /* This will put .sidebar and main side by side */
    flex-direction: column;
    /* Ensures top-down arrangement of elements */
    height: 100vh;
    /* Makes sure it fills the full height of the viewport */
    width: 100vw;
    /* Ensures it spans the full width of the viewport */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
}

.sidebar {
    background-image: var(--secondary-gradient);
    /* width: 250px;  Adjust this width as needed */
}

/* Primary color */
.dropdown,
.page,
.body,
.container,
.main-container,
#wordCloudContainer,
#highcharts,
.hightcharts-background,
.highcharts-container,
.footer-content,
.footer,
.content-area,
tr,
td,
.card-body,
.form-control {
    background-color: var(--primary-color);
    color: var(--dark-text);
    border: none;
    border-radius: 0px;
    box-shadow: none
}

#wordCloudContainer {
    background-color: var(--primary-color);
}


/* Secondary color */

h1 h2,
h3,
h4,
h5,
h6 .text,
.btn-secondary {
    color: var(--accent-color);
    background-color: var(--primary-color);
}

/* Accent color */

card-header,
.card {
    background-color: var(--accent-color);
    color: var(--primary-color);
}



/*Transparent background */
.main .flex-column,

.nav-item .navbar-brand,
.nav-link,
.navbar,
.brand.container,
.menu-item-text,
.page-title {
    background-color: transparent;
}

.brand-text {
    color: var(--primary-color);
}

.offcanvas,
#offcanvasHelpTitle,
#offcanvasContent,
.offcanvas h6,
.offcanvas h5,
.offcanvas h4,
.offcanvas h3 {
    background-color: white;
    color: var(--bs-offcanvas-color);
}

.offcanvas #write {
    padding-top: 0;
}

.last-element {
    margin-bottom: 50px;
    /* Change this based on your footer's height */
}

.table.borderless td,
.table.borderless th {
    border: none;
}


footer {
    text-align: center;
    padding: 0px;
    left: 250px;
    /* Adjust this to the width of your navbar */
    bottom: 0;
    width: calc(100% - 250px);
    /* Subtract the width of the navbar */
    font-size: 12px;
    /* Set the font size */
    position: fixed;
    /* This will make the footer fixed at the bottom */
    z-index: 1000;
    /* To make sure it appears above other content */
}

.nav-item {
    background-color: transparent !important;
    color: #000 !important;
    /* Dark text */
}

/* If the nav-item contains a link, you may also need to style that */
.nav-item a {
    background-color: transparent !important;
    color: #000 !important;
    /* Dark text */
}


/* Your existing rules */
.custom-input-group>.input-group,
.custom-input-group {
    border: none !important;
    box-shadow: none !important;
}

.custom-input-group>.input-group-text {
    border-right: 0;
}

/* Modified rule */
.custom-input-group>.input-group-text {
    width: 250px;
    /* Adjust this width as needed */
    align-items: flex-start;
}

.tag-cloud {
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

.tag {
    margin: 5px;
    display: inline-block;
}


/* Themes */

[data-bs-theme='Overskudd'] {
    --primary-color: #FFFFFF;
    --secondary-color: var(--bs-gray-600);
    --accent-color: #98CC67;
}



[data-bs-theme='Overskudd2'] {
    --primary-color: #FFFFFF;
    --secondary-color: #98CC67;
    --accent-color: var(--bs-blue);
}

[data-bs-theme='Overskudd3'] {
    --primary-color: #FFFFFF;
    --secondary-color: var(--bs-gray-400);
    --accent-color: var(--bs-info);
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Set the list-group-item background to transparent */
.list-group-item {
    background-color: transparent !important;
    border: none !important;
}

/* Set the background of input controls to white */
.form-control {
    background-color: white;
}

/* Custom Input Group */
.custom-input-group .input-group-text,
.custom-input-group .form-control {
    height: auto;
    /* Allows natural stretching */
    align-self: stretch;
    /* Takes up the full height of the parent */
}

.custom-input-group .input-group-text {
    min-width: max-content;
    /* Adapts to the longest content */
    align-items: center;
    /* Center the text vertically */
}

/* Additional style to align text to the top in input-group-text */
.custom-input-group .input-group-text {
    display: flex;
    align-items: flex-start;
}

.table-responsive {
    background-color: transparent !important;
}

.table {
    background-color: transparent !important;
}

.table thead th {
    background-color: transparent !important;
    border-bottom: 1px solid #dee2e6;
    /* You can change this to any color you want */
}

.table tbody td {
    background-color: transparent !important;
}

.custom-table {
    border-collapse: collapse;
}

.custom-table td,
.custom-table th,
.custom-table tr {
    border: none;
    /* Remove all borders */
    background-color: transparent;
    /* Make backgrounds consistent */
}

.custom-table tr {
    background-color: transparent !important;
    /* Use !important to override any other styles */
}

.table td,
.table th,
.table tr {
    border: none !important;
    background-color: transparent !important;
    /* Use !important to override any other styles */
}

.table-responsive td,
.table-responsive th,
.table-responsive tr {
    border: none !important;
    background-color: transparent !important;
    /* Use !important to override any other styles */
}

.main-layout {
    display: flex;
    height: 100vh;
}

/* .sidebar {
    background-color: #f8f9fa;
    transition: width 0.3s, opacity 0.3s;
} */

.sidebar.icons-only {
    width: 80px;
}

.sidebar.d-none {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.content-container {
    flex-grow: 1;
    transition: margin-left 0.3s;
}

.full-width {
    margin-left: 0 !important;
}

.with-sidebar {
    margin-left: 250px;
}

.with-icons-sidebar {
    margin-left: 80px;
}

.navbar {
    flex: 0 0 auto;
    /* Prevents the navbar from shrinking */
    width: 100%;
    /* Ensures the navbar spans the full width */
}

/* Custom accent color for the logout button */
.btn-accent {
    color: #ffffff;
    /* Text color */
    background-color: var(--accent-color);
    /* Background color */
    border-color: var(--accent-color);
    /* Border color */
}

.btn-accent:hover {
    background-color: darken(var(--accent-color), 10%);
    /* Darken on hover */
    border-color: darken(var(--accent-color), 10%);
}

.navbar .btn-accent {
    padding: 5px 10px;
    /* Adjust padding for button size */
    margin-right: 10px;
    /* Space between button and navbar edge */
}

/* Adjust the accent color variable as needed */
:root {
    --accent-color: #2a685a;
    /* #007bff; */
    /* Example accent color, change as needed */
    --accent-color-darker: #05493b;
    /*#006fe6;*/
    --accent-color-lighter: #4ca180;
    /*#66b0ff;*/
    --accent-color-hover: var(--accent-color-darker);
    --secondary-color-darker: #424242;
    --secondary-color-lighter: #8f8f8f;
}

/* Click-to-select buttons */
:root {
    --clicktoselect-color: var(--accent-color);
    /*var(--secondary-color);*/
    --clicktoselect-color-lighter: var(--accent-color-lighter);
    /*var(--secondary-color-lighter);*/
    --clicktoselect-color-darker: var(--accent-color-darker);
    /* var(--secondary-color-darker);*/
    --clicktoselect-color-disabled: gray;
    /*#dee2e6;*/
}

/* Define button styles using CSS variables */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-width: 1px;
    color: white;
}

.btn-primary:disabled {
    background-color: var(--accent-color-lighter);
    border-color: var(--accent-color-lighter);
    border-width: 1px;
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
    /*
    background-color: var(--accent-color-hover, darken(var(--accent-color), 10%));
    border-color: var(--accent-color-hover, darken(var(--accent-color), 10%));
    color: var(--accent-color);
    */
}

.btn-primary:focus {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-lighter);
    border-style: inset;
}

.btn-primary:active {
    background-color: var(--accent-color-darker) !important;
    border-color: var(--accent-color-lighter);
    border-style: inset;
}

.btn-primary:active:focus {
    background-color: var(--accent-color-darker) !important;
    border-color: var(--accent-color-lighter);
    border-style: inset;
}

.form-check-input:checked {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-color-hover, darken(var(--secondary-color), 10%));
    border-color: var(--secondary-color-hover, darken(var(--secondary-color), 10%));
}

.pagetitle {
    /* Add your styling properties that would normally be associated with h1 */
    font-size: 2em;
    /* example size */
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 40px;
    color: var(--accent-color);
    /* Background color */
    /* Any additional styles you want to apply */
}

.clicktoselect {
    width: 100%;
    padding: 0.1em 0.5em;
    border: 1px solid var(--clicktoselect-color) !important;
    border-radius: 3px;
}

.clicktoselect-inline {
    width: 10em;
    display: inline-block;
}

.clicktoselect:hover {
    background-color: var(--clicktoselect-color-lighter) !important;
}

.clicktoselect-selected {
    color: white;
    background-color: var(--clicktoselect-color);
}

.clicktoselect-selected:hover {
    background-color: var(--clicktoselect-color-darker) !important;
}

.clicktoselect-disabled {
    color: var(--clicktoselect-color-disabled);
    border-color: var(--clicktoselect-color-disabled) !important;
}

.clicktoselect-disabled:hover {
    background-color: white !important;
}

.steprow {
    margin-bottom: 1em;
    max-width: 60em;
}

.btnrow {
    min-height: 3em;
    margin-left: 0em;
    margin-bottom: 1em;
}

.stepbtn {
    width: 10em;
}


/* Existing styles... */

/* Navbar styles */
.navbar {
    background-color: white;
    box-shadow: none !important;
    padding: 0.6rem 1rem;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-item {
    padding: 0 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--dark-text, #333);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--accent-color, #0056b3);
}



/* Adjustments for mobile view */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 0.5rem;
    }

    .navbar-nav .nav-item {
        padding: 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    .step-nav-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        background: #fff;
        /* Use a variable if available, e.g., var(--primary-color) */
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
        z-index: 1050;
        /* Ensure it's above other content */
        padding: 0.75em 1em 0.75em 1em;
        /* The component itself handles button layout, so no flex needed here */
    }

    /* Add bottom padding to main content to prevent overlap with sticky nav */
    /* Adjust selector if your main content area uses a different class */
    .main-container,
    .container {
        padding-bottom: 5em !important;
        /* Adjust height as needed */
    }
}

/* Rest of your existing styles... */

/* Font declaration */
@font-face {
    font-family: 'Inter';
    src: url('https://static1.squarespace.com/static/637cdeb33476f007fb161ab2/t/6694e51cec75662a904b4b61/1721034012598/Inter-VariableFont_slnt%2Cwght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    /* This helps with font loading performance */
}

/* Apply the font to the entire body */
body {
    font-family: 'Inter', sans-serif;
    /* You can specify a fallback sans-serif font in case Inter fails to load */
}

/* Rest of your existing styles... */

/* You may want to explicitly set the font for specific elements to ensure consistency */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
    font-family: 'Inter', sans-serif;
}

/* Your existing navbar styles and other styles... */




/* inputs need border to be visible */
input {
    border: 1px solid #E0E0E0 !important;
    border-radius: 6px !important;
}

/* Add to your site's CSS */
.sv_body_selector .sv_body_part_item {
    margin-bottom: 8px;
    transition: background-color 0.2s;
    border-radius: 4px;
    padding: 8px;
}

.sv_body_selector .sv_body_part_item--checked {
    background-color: rgba(25, 118, 210, 0.1);
}

.sv_body_selector .sv_body_part_item--hover:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sv_body_selector .body-part-icon-container {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.sv_body_selector .body-part-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sticky-nav-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: white;
    /* Adjust to match your page background */
    z-index: 100;
    /* Ensure it's above other content */
    padding-top: 1em;
    /* Add some space above the buttons */
    /* You might need to adjust width and add padding/margin based on your layout */
}

/* Add padding to the main content container to prevent content being hidden */
.container {
    /* ... existing styles ... */
    padding-bottom: 80px;
    /* Adjust this value based on the actual height of your sticky nav */
}

/* Responsive question options container */
.question-options-container {
    max-height: 400px;
    overflow-y: auto;
}

/* On mobile, don't limit height as much */
@media (max-width: 767px) {
    .question-options-container {
        max-height: none;
        overflow-y: visible;
    }
}
/* ==========================
   Doctor Selection Styles
   ========================== */

.doctor-selection-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.doctor-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    justify-items: center;
    align-items: start;
}

.doctor-item {
    text-align: center;
    cursor: pointer;
    width: 100%;
}

.doctor-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: inline-block;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.doctor-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.doctor-info {
    margin-top: 0.5rem;
}

.doctor-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    margin-top: 1rem;
}

.doctor-specialty {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive: Pure CSS - no JavaScript needed */
@media (max-width: 576px) {
    .doctor-selection-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .doctor-grid-dynamic {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }

    .doctor-avatar {
        width: 90px;
        height: 90px;
    }

    .doctor-name {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .doctor-grid-dynamic {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .doctor-avatar {
        width: 110px;
        height: 110px;
    }

    .doctor-name {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .doctor-grid-dynamic {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 2.5rem;
    }

    .doctor-avatar {
        width: 120px;
        height: 120px;
    }
}
/* ===== Doctor Personality Settings Panel ===== */
.personality-settings-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 500px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    margin-top: 0.5rem;
    z-index: 1000;
    display: none;
}

.personality-settings-panel.visible {
    display: block;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.settings-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #1d1d1f;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #6e6e73;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f7;
}

.settings-content {
    max-height: 70vh;
    overflow-y: auto;
}

.dimension {
    margin-bottom: 2rem;
}

.dimension-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
}

.scale-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scale-label {
    font-size: 0.8125rem;
    color: #6e6e73;
    min-width: 90px;
    text-align: right;
}

.scale-label.end {
    text-align: left;
}

.radio-group {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color) !important;
    margin: 0;
}

.radio-option label {
    font-size: 0.6875rem;
    color: #86868b;
    cursor: pointer;
    user-select: none;
}

.button-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #e8e8ed;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .personality-settings-panel {
        width: 95vw;
        right: 50%;
        transform: translateX(50%);
    }

    .scale-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .scale-label {
        min-width: auto;
        width: 100%;
        text-align: center;
    }

    .scale-label.end {
        text-align: center;
    }

    .radio-group {
        gap: 0.875rem;
    }

    .dimension {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 400px) {
    .radio-group {
        gap: 0.5rem;
    }

    .radio-option input[type="radio"] {
        width: 16px;
        height: 16px;
    }
}

/* ===== Personality Modal (Mobile-First) ===== */
.personality-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 2000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    animation: fadeIn 0.2s ease-out !important;
    overflow-y: auto !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.personality-modal-dialog {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    width: 95% !important;
    max-width: 95vw !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    animation: slideUp 0.2s ease-out !important;
    /* Mobile-friendly scrolling */
    -webkit-overflow-scrolling: touch;
    margin: auto !important;
    position: relative !important;
}

.personality-modal-dialog > div {
    padding: 1.5rem !important;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Desktop styles (>768px) */
@media (min-width: 768px) {
    .personality-modal-dialog {
        max-width: 600px !important;
        max-height: 80vh !important;
        width: 600px !important;
    }

    .personality-modal-dialog > div {
        padding: 2rem !important;
    }
}

/* Large mobile/tablet (>576px) */
@media (min-width: 576px) {
    .personality-modal-dialog > div {
        padding: 1.75rem !important;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden !important;
}
