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

:root {
    --primary: #3564ed;
    --primary-dark: #2854d9;
    --purple: #7138e8;
    --text: #172033;
    --text-secondary: #657087;
    --text-muted: #98a2b3;
    --background: #f7f8fc;
    --white: #ffffff;
    --border: #e5e9f2;
    --green: #22c55e;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

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


/* =========================================================
   AUTHENTICATION
   ========================================================= */

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(53, 100, 237, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(113, 56, 232, 0.09),
            transparent 32%
        ),
        #f7f8fc;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(500px, 1fr) minmax(460px, 0.8fr);
}


/* =========================================================
   LEFT AUTH SECTION
   ========================================================= */

.auth-left {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 55px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(53, 100, 237, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 75%,
            rgba(113, 56, 232, 0.12),
            transparent 34%
        ),
        #f7f8fc;
}

.auth-left::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(53, 100, 237, 0.08);
    top: -250px;
    left: -220px;
}

.auth-left::after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    border: 1px solid rgba(113, 56, 232, 0.07);
    bottom: -350px;
    right: -280px;
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 31px;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        #3168ef,
        #7437e8
    );
    box-shadow:
        0 14px 30px rgba(70, 73, 230, 0.25);
}

.auth-brand h1 {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.6px;
    font-weight: 750;
}

.auth-brand p {
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-hero {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-top: 30px;
}

.hero-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border-radius: 30px;
    border: 1px solid #dce4fa;
    background: rgba(255, 255, 255, 0.75);
    color: #53627a;
    font-size: 12px;
    font-weight: 650;
}

.hero-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.12);
}

.auth-hero h2 {
    margin-top: 24px;
    font-size: clamp(42px, 4vw, 62px);
    line-height: 1.08;
    letter-spacing: -2.8px;
    font-weight: 760;
}

.auth-hero h2 span {
    display: block;
    background: linear-gradient(
        90deg,
        #3168ef,
        #7138e8
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-hero p {
    max-width: 560px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.auth-features {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 720px;
}

.auth-feature {
    min-height: 150px;
    padding: 19px;
    border: 1px solid rgba(226, 230, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef3ff;
    font-size: 18px;
}

.auth-feature strong {
    display: block;
    margin-top: 13px;
    font-size: 13px;
}

.auth-feature span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
}

.auth-left-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9aa3b4;
    font-size: 11px;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b5cf6;
}


/* =========================================================
   RIGHT AUTH SECTION
   ========================================================= */

.auth-right {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 70px;
    background: #ffffff;
    border-left: 1px solid #e9ecf3;
}

.auth-card {
    width: min(100%, 475px);
    padding: 42px;
    border-radius: 26px;
    border: 1px solid #e3e7f0;
    background: #ffffff;
    box-shadow:
        0 25px 70px rgba(25, 35, 60, 0.10),
        0 4px 15px rgba(25, 35, 60, 0.04);
}

.register-card {
    padding-top: 38px;
    padding-bottom: 34px;
}

.mobile-brand {
    display: none;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-label {
    color: #6578b4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.auth-heading h2 {
    margin-top: 9px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 750;
}

.auth-heading p {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fff5f5;
    color: #b42318;
    font-size: 13px;
}

.auth-error > span {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fee4e2;
    font-size: 12px;
    font-weight: 800;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 15px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 44px;
    border: 1px solid #dfe4ed;
    border-radius: 12px;
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.input-wrapper input::placeholder {
    color: #a6adba;
}

.input-wrapper input:hover {
    border-color: #cbd2df;
}

.input-wrapper input:focus {
    border-color: #5274ed;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(53, 100, 237, 0.10);
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-button {
    width: 100%;
    height: 51px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        100deg,
        #3266ed,
        #7138e8
    );
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 12px 25px rgba(76, 70, 226, 0.22);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        opacity 0.2s;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 30px rgba(76, 70, 226, 0.28);
}

.auth-button:active {
    transform: translateY(0);
}

.button-arrow {
    font-size: 18px;
    line-height: 1;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 13px;
    color: #98a2b3;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8ebf1;
}

.auth-divider span {
    white-space: nowrap;
}

.secondary-auth-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce2eb;
    border-radius: 12px;
    background: white;
    color: #344054;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.secondary-auth-button:hover {
    background: #f7f8fc;
    border-color: #c8d0df;
    color: #315fdc;
}

.auth-disclaimer {
    display: flex;
    gap: 11px;
    margin-top: 25px;
    padding: 14px;
    border: 1px solid #ffd9a3;
    border-radius: 13px;
    background: #fffaf0;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: #b54708;
    font-size: 16px;
}

.auth-disclaimer strong {
    display: block;
    color: #9a3412;
    font-size: 12px;
}

.auth-disclaimer p {
    margin-top: 4px;
    color: #a15c32;
    font-size: 10px;
    line-height: 1.55;
}

.auth-bottom-text {
    margin-top: 20px;
    color: #a3aab8;
    font-size: 10px;
    text-align: center;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.app {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: #f7f8fc;
}

.sidebar {
    width: 295px;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    background: #ffffff;
    border-right: 1px solid #e5e9f2;
    overflow: hidden;
}

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

.brand-logo {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #3168ef,
        #7138e8
    );
    color: white;
    font-size: 24px;
    font-weight: 800;
}

.brand-text h1 {
    font-size: 18px;
}

.brand-text span {
    display: block;
    margin-top: 2px;
    color: #98a2b3;
    font-size: 10px;
}

.sidebar-divider {
    height: 1px;
    margin: 23px 0;
    background: #edf0f5;
}

.sidebar-title {
    margin-bottom: 11px;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    background: #fbfcfe;
}

.source-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf3ff;
}

.source-info {
    min-width: 0;
    flex: 1;
}

.source-info strong {
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

.source-info span {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 9px;
}

.source-status,
.model-status {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.10);
}

.pipeline-title {
    margin-top: 29px;
}

.pipeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pipeline-icon {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f5f7fb;
    font-size: 15px;
}

.pipeline-text strong {
    display: block;
    font-size: 11px;
}

.pipeline-text span {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 9px;
}

.pipeline-connector {
    width: 1px;
    height: 13px;
    margin-left: 16px;
    background: #e1e5ed;
}

.model-title {
    margin-top: 0;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid #e5e9f1;
    border-radius: 13px;
    background: #fbfcfe;
}

.model-card strong {
    display: block;
    font-size: 11px;
}

.model-card span {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 9px;
}

.clear-button {
    width: 100%;
    height: 39px;
    margin-top: 14px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: white;
    color: #475467;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.clear-button:hover {
    background: #f7f8fc;
}


/* =========================================================
   CHAT HISTORY
   ========================================================= */

.history-section {
    min-height: 0;
    flex: 1 1 auto;

    margin-top: 23px;

    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* =========================================================
   HISTORY HEADER
   ========================================================= */

.history-header {
    flex-shrink: 0;

    margin-bottom: 11px;

    color: #98a2b3;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* =========================================================
   HISTORY LIST
   ========================================================= */

/*
   This is the main Chat History box.

   It uses the SAME visual style as the
   GPT-OSS 20B model card.
*/

.history-list {
    width: 100%;
    max-width: 100%;

    min-height: 53px;
    height: auto;

    padding: 6px 8px;

    display: flex;
    flex-direction: column;

    gap: 0;

    overflow-x: hidden;
    overflow-y: auto;

    border: 1px solid #e5e9f1;
    border-radius: 13px;

    background: #fbfcfe;

    /* Fill available sidebar space */
    flex: 1 1 auto;

    /* Prevent the history from forcing the sidebar to grow */
    min-height: 53px;
}


/* =========================================================
   HISTORY SCROLLBAR
   ========================================================= */

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
    background: #dfe4ed;
    border-radius: 10px;
}

/* =========================================================
   HISTORY OPEN BUTTON
   Remove browser default button box
   ========================================================= */

.history-open {
    width: 100%;
    height: 40px;

    min-width: 0;

    padding: 9px 32px 9px 11px;

    display: flex;
    align-items: center;

    border: none;
    outline: none;

    border-radius: 9px;

    background: transparent;

    color: #344054;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    appearance: none;
    -webkit-appearance: none;

    box-shadow: none;
}


/* Remove black browser focus box */

.history-open:focus,
.history-open:focus-visible,
.history-open:active {
    border: none;
    outline: none;
    box-shadow: none;
}


/* Hover */

.history-open:hover {
    background: #f5f7fb;
    border: none;
    outline: none;
    box-shadow: none;
}


/* =========================================================
   HISTORY ITEM
   ========================================================= */

.history-item {
    position: relative;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    height: 40px;
    min-height: 40px;

    display: flex;
    align-items: center;

    border: none;
    outline: none;

    border-radius: 9px;

    background: transparent;

    overflow: hidden;
}


/* =========================================================
   HISTORY ITEM HOVER
   ========================================================= */

.history-item:hover {
    background: #f5f7fb;
    border: none;
    outline: none;
}


/* =========================================================
   ACTIVE HISTORY ITEM
   ========================================================= */

.history-item.active {
    background: #eef3ff;
    border: none;
    color: #315fdc;
}

/* =========================================================
   CHAT ICON
   ========================================================= */

.history-item::before {

    content: "💬";

    flex: 0 0 18px;

    width: 18px;

    margin-right: 5px;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   HISTORY TITLE
   ========================================================= */

.history-title {

    display: -webkit-box;

    flex: 1;

    min-width: 0;

    max-width: 100%;

    overflow: hidden;

    white-space: normal;

    text-overflow: ellipsis;

    /*
       Maximum 2 lines.
       Long title will not stretch
       the Chat History box.
    */

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    line-height: 1.35;

    line-clamp: 2;

    word-break: break-word;

    overflow-wrap: anywhere;
}


/* =========================================================
   DELETE BUTTON
   ========================================================= */

.history-delete {
    position: absolute;

    right: 6px;
    top: 50%;

    width: 21px;
    height: 21px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 6px;

    background: transparent;

    color: #98a2b3;
    font-size: 14px;

    cursor: pointer;
    opacity: 0;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease;
}

.history-item:hover .history-delete {
    opacity: 1;
}

.history-delete:hover {
    background: #feecec;
    color: #ef4444;
}


/* Show delete button on hover */

.history-item:hover .history-delete {

    opacity: 1;
}


/* Delete hover */

.history-delete:hover {

    background: #feecec;

    color: #ef4444;
}


/* =========================================================
   EMPTY HISTORY
   ========================================================= */

.history-empty {

    width: 100%;

    max-width: 100%;

    padding: 8px;

    color: #a0a8b6;

    font-size: 10px;

    text-align: center;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    margin-top: 15px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid #edf0f4;
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #3168ef,
        #7138e8
    );
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.user-details {
    min-width: 0;
    flex: 1;
}

.user-details strong {
    display: block;
    font-size: 10px;
}

.user-details span {
    display: block;
    max-width: 120px;
    margin-top: 2px;
    overflow: hidden;
    color: #98a2b3;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    color: #98a2b3;
    font-size: 9px;
    text-decoration: none;
}

.logout-button:hover {
    color: #ef4444;
}

.disclaimer {
    margin-top: 13px;
    padding: 12px;
    border: 1px solid #ffd79f;
    border-radius: 12px;
    background: #fffaf1;
}

.disclaimer-title {
    color: #a04416;
    font-size: 10px;
    font-weight: 700;
}

.disclaimer p {
    margin-top: 6px;
    color: #a15c32;
    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   MAIN CHAT
   ========================================================= */

.main {
    min-width: 0;
    min-height: 0;
    height: 100vh;

    flex: 1;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.header {
    height: 73px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 31px;

    background: white;

    border-bottom: 1px solid #e5e9f2;
}

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

.header h2 {
    font-size: 15px;
}

.header p {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 10px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border-radius: 20px;

    background: #effcf4;

    color: #198754;

    font-size: 10px;
    font-weight: 650;
}

.online-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22c55e;
}

.mobile-logo {
    display: none;
}


.chat-container {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 30px 7% 40px;

    scroll-behavior: smooth;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #dfe4ed;
    border-radius: 10px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    max-width: 720px;
    margin: 70px auto;
    text-align: center;
}

.welcome-logo {
    width: 60px;
    height: 60px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #3168ef,
        #7138e8
    );

    box-shadow:
        0 15px 35px rgba(70, 73, 230, 0.20);

    font-size: 27px;
}

.welcome h2 {
    margin-top: 20px;

    font-size: 27px;

    letter-spacing: -0.7px;
}

.welcome h2 span {
    background: linear-gradient(
        90deg,
        #3168ef,
        #7138e8
    );

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome > p {
    max-width: 530px;

    margin: 10px auto 25px;

    color: #7b8495;

    font-size: 13px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.feature-card {
    display: flex;

    gap: 11px;

    padding: 15px;

    text-align: left;

    border: 1px solid #e5e9f1;

    border-radius: 14px;

    background: white;
}

.feature-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
}

.feature-icon.blue {
    background: #edf3ff;
}

.feature-icon.purple {
    background: #f3edff;
}

.feature-icon.green {
    background: #ecfdf3;
}

.feature-card strong {
    display: block;

    font-size: 10px;
}

.feature-card span {
    display: block;

    margin-top: 4px;

    color: #98a2b3;

    font-size: 8px;

    line-height: 1.5;
}


/* =========================================================
   CHAT MESSAGES
   ONLY THIS SECTION HAS BEEN CHANGED
   ========================================================= */

/*
   script.js creates:

   .message-row.user
   .message-row.assistant

   So the CSS must target .message-row.
*/


.message-row {

    width: 100%;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;

    animation: messageIn 0.2s ease;
}


@keyframes messageIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   USER → RIGHT
   ========================================================= */

.message-row.user {
    justify-content: flex-end;
}


/* =========================================================
   ASSISTANT → LEFT
   ========================================================= */

.message-row.assistant {
    justify-content: flex-start;
}


/* =========================================================
   MESSAGE CONTENT
   ========================================================= */

.message-row .message-content {

    max-width: 72%;

    min-width: 0;

    display: flex;

    flex-direction: column;
}


/* User content */

.message-row.user .message-content {
    align-items: flex-end;
}


/* Assistant content */

.message-row.assistant .message-content {
    align-items: flex-start;
}


/* =========================================================
   MESSAGE BUBBLE
   ========================================================= */

.message-row .message-bubble {

    padding: 12px 16px;

    border-radius: 16px;

    font-size: 13px;

    line-height: 1.65;

    word-wrap: break-word;

    overflow-wrap: anywhere;

    white-space: pre-line;
}


/* =========================================================
   USER BUBBLE
   ========================================================= */

.message-row.user .message-bubble {

    background:
        linear-gradient(
            135deg,
            #3564ed,
            #7138e8
        );

    color: #ffffff;

    border:
        1px solid
        rgba(53, 100, 237, 0.15);

    border-bottom-right-radius: 5px;

    box-shadow:
        0 5px 16px
        rgba(53, 100, 237, 0.15);
}


/* =========================================================
   ASSISTANT BUBBLE
   ========================================================= */

.message-row.assistant .message-bubble {

    background: #ffffff;

    color: #263247;

    border:
        1px solid
        #e3e7ef;

    border-bottom-left-radius: 5px;

    box-shadow:
        0 4px 14px
        rgba(30, 40, 70, 0.045);
}

.yoga-message {
    width: min(680px, 100%);
}

.yoga-message > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.yoga-message > p {
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.yoga-pose-list {
    display: grid;
    gap: 12px;
}

.yoga-pose-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    background: #fbfcfe;
}

.yoga-pose-image {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf2f7;
}

.yoga-pose-details h3 {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

.yoga-pose-details p {
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.yoga-pose-details .yoga-pose-instructions {
    color: var(--text);
}

.yoga-pose-details a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.yoga-pose-details a:hover {
    text-decoration: underline;
}


/* =========================================================
   AVATAR
   ========================================================= */

.message-row .message-avatar {

    width: 31px;

    height: 31px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    font-size: 14px;
}


/* =========================================================
   ASSISTANT AVATAR → LEFT
   ========================================================= */

.message-row.assistant .message-avatar {

    order: 0;

    margin-right: 0;

    background:
        linear-gradient(
            135deg,
            #3564ed,
            #7138e8
        );

    color: white;
}


/* =========================================================
   USER AVATAR → RIGHT
   ========================================================= */

.message-row.user .message-avatar {

    order: 2;

    margin-left: 0;

    background: #eef3ff;

    color: #3564ed;
}


/* =========================================================
   MESSAGE TIME
   ========================================================= */

.message-row .message-time {

    margin-top: 5px;

    color: #a0a8b5;

    font-size: 9px;
}


.message-row.user .message-time {
    text-align: right;
}


.message-row.assistant .message-time {
    text-align: left;
}


/* =========================================================
   MESSAGE MARKDOWN
   ========================================================= */
.message-bubble p {
    margin: 0 0 4px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble strong {
    font-weight: 700;

    color: #172033;
}

.message-row.user .message-bubble strong {
    color: white;
}


/* =========================================================
   COMPACT BULLET POINTS
   ========================================================= */

.message-bubble ul,
.message-bubble ol {
    margin: 3px 0 3px 20px;
    padding-left: 0;
}

.message-bubble li {
    margin-bottom: 2px;
    padding-left: 1px;
}

.message-bubble li:last-child {
    margin-bottom: 0;
}


/* Preserve plain-text bullet line breaks */

.message-row.assistant .message-bubble {
    white-space: pre-line;
}

/* =========================================================
   FORMATTED MEDICAL REPORT
   ========================================================= */

.message-bubble h2 {
    margin: 4px 0 14px;

    font-size: 22px;
    line-height: 1.3;

    font-weight: 800;

    color: #172033;

    letter-spacing: -0.4px;

    padding-bottom: 8px;

    border-bottom: 1px solid #e5e9f2;
}


.message-bubble h3 {
    margin: 18px 0 8px;

    font-size: 16px;
    line-height: 1.4;

    font-weight: 750;

    color: #315fdc;
}


.message-bubble strong {
    font-weight: 750;
    color: #172033;
}


.message-bubble ul {
    margin: 7px 0 12px;

    padding-left: 20px;
}


.message-bubble li {
    margin: 5px 0;

    line-height: 1.6;
}


.blood-report-result h2 {
    font-size: 24px;
    font-weight: 800;

    margin-top: 2px;
    margin-bottom: 16px;
}


.blood-report-result h3 {
    font-size: 17px;
    font-weight: 750;

    margin-top: 20px;
    margin-bottom: 8px;
}


.blood-report-result {
    line-height: 1.65;
}

/* =========================================================
   TYPING INDICATOR
   ========================================================= */

.typing {

    display: flex;

    align-items: center;

    gap: 4px;

    min-height: 15px;

    padding: 2px 1px;
}


.typing span {

    width: 5px;

    height: 5px;

    display: block;

    border-radius: 50%;

    background: #9da6b5;

    animation:
        typing 1.2s infinite
        ease-in-out;
}


.typing span:nth-child(1) {
    animation-delay: 0s;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}


@keyframes typing {

    0%,
    60%,
    100% {

        opacity: 0.35;

        transform:
            translateY(0);
    }

    30% {

        opacity: 1;

        transform:
            translateY(-3px);
    }
}


/* =========================================================
   INPUT
   ========================================================= */

.input-section {
    flex-shrink: 0;

    padding: 12px 7% 18px;

    background: white;

    border-top: 1px solid #e5e9f2;
}

.input-container {
    max-width: 950px;

    margin: auto;

    display: flex;
    align-items: flex-end;

    gap: 10px;

    padding: 7px 8px 7px 15px;

    border: 1px solid #dfe4ed;

    border-radius: 15px;

    background: #fbfcfe;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-container:focus-within {
    border-color: #b8c7f5;

    box-shadow:
        0 0 0 4px
        rgba(53, 100, 237, 0.06);
}

.input-container textarea {
    min-height: 39px;
    max-height: 120px;

    flex: 1;

    resize: none;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 12px;

    padding-top: 10px;
}

.input-container textarea::placeholder {
    color: #a5adba;
}

/* =========================================================
   MICROPHONE
   ========================================================= */

.mic-button {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 11px;

    background: transparent;

    color: #667085;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.mic-button:hover {
    background: #eef3ff;

    color: #3564ed;
}

.mic-button:active {
    transform: scale(0.95);
}

.mic-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mic-button:disabled:hover {
    background: transparent;
    color: #667085;
}

.mic-button.listening {
    background: #eef3ff;

    color: #3564ed;

    box-shadow:
        0 0 0 3px
        rgba(53, 100, 237, 0.10);
}

/* =========================================================
   VOICE LISTENING BAR
   ========================================================= */

.voice-listening-bar {
    flex: 1;
    height: 54px;

    display: flex;
    align-items: center;

    padding: 0 8px;

    border: 1px solid #dfe3eb;
    border-radius: 27px;

    background: #ffffff;

    overflow: hidden;
}

.voice-cancel-button,
.voice-stop-button {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe3eb;
    border-radius: 50%;

    background: #ffffff;

    color: #667085;

    cursor: pointer;

    font-size: 18px;
}

.voice-stop-button {
    background: #f1f3f7;
    color: #667085;
    font-size: 15px;
}

.voice-cancel-button:hover,
.voice-stop-button:hover {
    background: #f5f6f8;
}

.voice-wave {
    flex: 1;

    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    margin: 0 14px;

    overflow: hidden;
}

.voice-wave span {
    width: 4px;

    height: 8px;

    border-radius: 4px;

    background: #8d8f94;

    animation: voiceWave 0.8s ease-in-out infinite alternate;
}

.voice-wave span:nth-child(2) {
    animation-delay: 0.05s;
}

.voice-wave span:nth-child(3) {
    animation-delay: 0.1s;
}

.voice-wave span:nth-child(4) {
    animation-delay: 0.15s;
}

.voice-wave span:nth-child(5) {
    animation-delay: 0.2s;
}

.voice-wave span:nth-child(6) {
    animation-delay: 0.25s;
}

.voice-wave span:nth-child(7) {
    animation-delay: 0.3s;
}

.voice-wave span:nth-child(8) {
    animation-delay: 0.35s;
}

.voice-wave span:nth-child(9) {
    animation-delay: 0.4s;
}

.voice-wave span:nth-child(10) {
    animation-delay: 0.45s;
}

@keyframes voiceWave {

    from {
        height: 7px;
    }

    to {
        height: 34px;
    }
}

.send-button {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #3168ef,
            #7138e8
        );

    color: white;

    cursor: pointer;
}

.input-footer {
    max-width: 950px;

    margin: 7px auto 0;

    display: flex;

    justify-content: space-between;

    color: #a0a8b5;

    font-size: 8px;
}

.keyboard-hint {
    color: #a0a8b5;
}

/* =========================================================
   DIET PLANNING FIX
   ========================================================= */

.diet-dashboard {
    width: min(1050px, 100%);
    max-height: 90vh;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.diet-dashboard .profile-dashboard-header {
    flex-shrink: 0;
}

.diet-back-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: #f4f6fb;
    color: #64748b;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.diet-back-button:hover {
    background: #e9edf7;
}

.diet-chat-container {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.diet-chat-form {
    flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        min-height: 100vh;

        border-left: none;

        padding: 30px 20px;

        background:
            radial-gradient(
                circle at 50% 0%,
                rgba(53, 100, 237, 0.10),
                transparent 35%
            ),
            #f7f8fc;
    }

    .mobile-brand {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 10px;

        margin-bottom: 28px;
    }

    .mobile-brand .auth-logo {
        width: 40px;
        height: 40px;

        border-radius: 12px;

        font-size: 21px;
    }

    .mobile-brand strong {
        font-size: 17px;
    }

    .auth-card {
        box-shadow:
            0 20px 55px
            rgba(25, 35, 60, 0.10);
    }

    .sidebar {
        width: 240px;
    }

    .message-row .message-content {
        max-width: 78%;
    }
}


@media (max-width: 750px) {

    .sidebar {
        display: none;
    }

    .header {
        padding: 0 18px;
    }

    .online-status {
        display: none;
    }

    .mobile-logo {
        width: 32px;
        height: 32px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 9px;

        background:
            linear-gradient(
                135deg,
                #3168ef,
                #7138e8
            );

        color: white;

        font-size: 17px;
    }

    .chat-container {
        padding: 20px 15px 30px;
    }

    .welcome {
        margin: 40px auto;
    }

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

    .message-row .message-content {
        max-width: 88%;
    }

    .message-row .message-bubble {
        font-size: 12px;

        padding: 11px 13px;
    }

    .input-section {
        padding: 10px 12px 14px;
    }

    .input-footer {
        padding: 0 3px;
    }

    .keyboard-hint {
        display: none;
    }
}


@media (max-width: 520px) {

    .auth-right {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 28px 22px;

        border-radius: 21px;
    }

    .auth-heading h2 {
        font-size: 26px;
    }

    .auth-disclaimer {
        padding: 12px;
    }

    .auth-bottom-text {
        font-size: 9px;
    }

    .message-row .message-content {
        max-width: 91%;
    }

    .message-row .message-bubble {
        font-size: 12px;

        line-height: 1.55;
    }

    .message-row .message-avatar {
        width: 29px;
        height: 29px;
        font-size: 13px;
    }
}
/* =========================================================
   SUGGESTION BUTTONS
   ========================================================= */

.suggestion-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;
}


.suggestion-button {

    padding: 8px 12px;

    border: 1px solid #dce3f2;

    border-radius: 10px;

    background: #f8faff;

    color: #315fdc;

    font-family: inherit;

    font-size: 10px;

    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.suggestion-button:hover {

    background: #eef3ff;

    border-color: #bfcdf3;

    transform: translateY(-1px);
}


.suggestion-button:active {

    transform: translateY(0);
}


.suggestion-button:disabled {

    opacity: 0.65;

    cursor: wait;

    transform: none;
}



/* =========================================================
   BLOOD REPORT UPLOAD
   DIGITAL PDF ONLY
   ========================================================= */

.input-container {
    position: relative;
}


/* =========================================================
   UPLOAD WRAPPER
   ========================================================= */

.upload-wrapper {
    position: relative;
    flex-shrink: 0;
}


/* =========================================================
   PLUS BUTTON
   ========================================================= */

.upload-button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: white;
    color: var(--primary);

    font-size: 27px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}


.upload-button:hover {
    background: #f5f7ff;
    border-color: #cdd7f7;

    transform:
        translateY(-1px);
}


.upload-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   UPLOAD MENU
   ========================================================= */

.upload-menu {
    position: absolute;

    left: 0;
    bottom: 52px;

    width: 245px;

    padding: 7px;

    display: none;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 15px 40px
        rgba(
            20,
            30,
            60,
            0.14
        );

    z-index: 100;
}


.upload-menu.show {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


/* =========================================================
   PDF MENU ITEM
   ========================================================= */

.upload-menu-item {
    width: 100%;

    padding: 12px 13px;

    display: flex;

    align-items: center;

    gap: 10px;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s;
}


.upload-menu-item:hover {
    background: #f5f7ff;

    color: var(--primary);
}


.upload-menu-item span {
    width: 25px;

    font-size: 17px;

    text-align: center;
}


/* =========================================================
   BLOOD REPORT RESULT
   ========================================================= */

.blood-report-result {
    white-space: pre-wrap;

    line-height: 1.65;

    max-width: 900px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
    max-width: 700px
) {

    .upload-menu {
        left: -5px;

        width: 220px;
    }

    .upload-button {
        width: 40px;
        height: 40px;
    }

}



/* =========================================================
   APPOINTMENT MODAL
   ========================================================= */

.appointment-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(23, 32, 51, 0.30);

    backdrop-filter:
        blur(5px);
}


.appointment-modal {

    width: min(
        900px,
        100%
    );

    max-height: 88vh;

    overflow-y: auto;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--white);

    box-shadow:
        0 25px 70px
        rgba(25, 35, 60, 0.18);
}


.appointment-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding: 24px 26px;

    border-bottom:
        1px solid var(--border);
}


.appointment-modal-header h2 {

    font-size: 20px;

    letter-spacing: -0.4px;
}


.appointment-modal-header p {

    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 12px;
}


.appointment-close {

    width: 32px;

    height: 32px;

    border: none;

    border-radius: 9px;

    background: #f4f6fa;

    color: #667085;

    font-size: 20px;

    cursor: pointer;
}


.appointment-doctor-list {

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   DOCTOR CARD
   ========================================================= */

.doctor-card {

    padding: 17px;

    border:
        1px solid #e3e8f2;

    border-radius: 16px;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.doctor-card:hover {

    border-color: #cbd7f5;

    box-shadow:
        0 8px 25px
        rgba(53, 100, 237, 0.07);
}


.doctor-card-main {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.doctor-info h3 {

    font-size: 15px;

    font-weight: 750;
}


.doctor-specialization {

    margin-top: 4px;

    color: #315fdc;

    font-size: 11px;

    font-weight: 650;
}


.doctor-rating {

    margin-top: 8px;

    font-size: 11px;

    font-weight: 700;

    color: #e09a20;
}


.doctor-rating span {

    color: var(--text-muted);

    font-weight: 500;
}


.doctor-hospital {

    margin-top: 7px;

    color: var(--text);

    font-size: 11px;

    font-weight: 650;
}


.doctor-address,
.doctor-experience {

    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 10px;
}


.doctor-actions {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.doctor-view-button,
.doctor-book-button {

    padding: 8px 13px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 650;

    cursor: pointer;
}


.doctor-view-button {

    border:
        1px solid #dce3f2;

    background: #f8faff;

    color: #315fdc;
}


.doctor-book-button {

    border: none;

    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );

    color: white;

    box-shadow:
        0 5px 13px
        rgba(76, 70, 226, 0.18);
}


/* =========================================================
   SLOT BOOKING
   ========================================================= */

.slot-booking-header {

    padding: 20px;

    border-bottom:
        1px solid var(--border);
}


.back-to-doctors {

    border: none;

    background: none;

    color: #315fdc;

    font-family: inherit;

    font-size: 11px;

    font-weight: 650;

    cursor: pointer;

    margin-bottom: 15px;
}


.slot-booking-header h3 {

    font-size: 16px;
}


.slot-booking-header p {

    margin-top: 5px;

    color: var(--text-secondary);

    font-size: 11px;
}


.slot-date-section {

    padding: 18px 20px 10px;
}


.slot-date-section label {

    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 11px;

    font-weight: 650;
}


.appointment-date-input {

    width: 100%;

    max-width: 250px;

    height: 40px;

    padding: 0 11px;

    border:
        1px solid #dce3ed;

    border-radius: 9px;

    outline: none;

    font-family: inherit;

    font-size: 11px;

    color: var(--text);

    background: #fbfcfe;
}


.available-slots {

    padding: 15px 20px 22px;
}


.slots-title {

    margin-bottom: 11px;

    color: #344054;

    font-size: 11px;

    font-weight: 700;
}


.slot-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(105px, 1fr)
        );

    gap: 8px;
}


.time-slot {

    padding: 10px 7px;

    border:
        1px solid #dce3f2;

    border-radius: 9px;

    background: #f8faff;

    color: #315fdc;

    font-family: inherit;

    font-size: 10px;

    font-weight: 650;

    cursor: pointer;
}


.time-slot:hover {

    border-color: #aebff1;

    background: #eef3ff;
}


.time-slot.selected {

    border-color: #3564ed;

    background:
        linear-gradient(
            100deg,
            #3564ed,
            #7138e8
        );

    color: white;
}


.confirm-slot-button {

    width: 100%;

    margin-top: 15px;

    padding: 11px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.confirm-slot-button:disabled {

    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================================================
   BOOKING SUCCESS
   ========================================================= */

.booking-success {

    padding: 45px 25px;

    text-align: center;
}


.booking-success-icon {

    width: 52px;

    height: 52px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #ecfdf3;

    color: #16a34a;

    font-size: 25px;

    font-weight: 800;
}


.booking-success h3 {

    font-size: 18px;
}


.booking-success p {

    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 11px;
}


.booking-details {

    max-width: 350px;

    margin: 20px auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


.booking-details div {

    padding: 12px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #f8faff;
}


.booking-details span {

    display: block;

    color: var(--text-muted);

    font-size: 9px;
}


.booking-details strong {

    display: block;

    margin-top: 4px;

    font-size: 11px;
}


.appointment-done-button {

    padding: 9px 22px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );

    color: white;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.appointment-loading,
.appointment-empty {

    padding: 40px 20px;

    text-align: center;

    color: var(--text-secondary);

    font-size: 11px;
}


@media (max-width: 600px) {

    .appointment-modal-overlay {
        padding: 10px;
    }

    .appointment-modal {
        max-height: 94vh;
        border-radius: 18px;
    }

    .doctor-card-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .doctor-actions {
        width: 100%;
    }

    .doctor-view-button,
    .doctor-book-button {
        flex: 1;
    }
}

/* ============================================================
   APPOINTMENT LOADING
   ============================================================ */

.appointment-loading {
    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;

    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.loading-spinner {
    width: 34px;
    height: 34px;

    border: 4px solid #e5e7eb;
    border-top-color: #4f46e5;

    border-radius: 50%;

    animation: appointmentSpinner 0.8s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #64748b;
}

@keyframes appointmentSpinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SLOT WRAPPER
   ========================================================= */

.time-slot-wrapper {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

    overflow: visible;
}


.time-slot {

    width: 100%;

    min-height: 40px;

    border:
        1px solid #d9e1f2;

    border-radius: 10px;

    background: #ffffff;

    color: #315fdc;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        all 0.2s ease;
}


.time-slot:hover {

    border-color: #aebff1;

    background: #eef3ff;
}


.time-slot.selected {

    border-color: #3564ed;

    background:
        linear-gradient(
            100deg,
            #3564ed,
            #7138e8
        );

    color: white;
}


/* =========================================================
   BOOKED SLOT
   ========================================================= */

.time-slot.booked {

    background: #f3f4f6;

    border-color: #d6d9df;

    color: #98a1af;

    cursor: not-allowed;

    opacity: 0.85;
}


.time-slot.booked:hover {

    background: #f3f4f6;

    border-color: #d6d9df;
}


.slot-status {

    font-size: 9px;

    font-weight: 700;

    color: #8b95a5;
}


.conflict-text {

    color: #c47a12;
}


/* =========================================================
   OTHER DOCTOR BOOKING CONFLICT
   ========================================================= */

.time-slot.conflict {

    background: #fff8e8;

    border-color: #f1d58d;

    color: #a56a00;

    cursor: not-allowed;

    position: relative;
}


.time-slot.conflict:hover {

    background: #fff4d6;

    border-color: #e7c66f;
}


/* Custom tooltip */

.time-slot.conflict::after {

    content: attr(title);

    position: absolute;

    bottom: calc(
        100% + 8px
    );

    left: 0;

    transform: none;

    width: 180px;

    max-width: 180px;

    box-sizing: border-box;

    padding: 8px 10px;

    border-radius: 7px;

    background: #172033;

    color: white;

    font-size: 9px;

    font-weight: 500;

    line-height: 1.35;

    white-space: normal;

    text-align: center;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.15s ease;

    z-index: 100;
}


.time-slot.conflict:hover::after {

    opacity: 1;
}



/* =========================================================
   ALREADY BOOKED DOCTOR
   ========================================================= */

.doctor-book-button:disabled {

    background: #eef0f4;

    border-color: #d9dde5;

    color: #8d96a5;

    cursor: not-allowed;

    opacity: 1;
}


.doctor-already-booked {

    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    gap: 8px;

    padding: 25px;
}


.doctor-already-booked-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #ecfdf3;

    color: #16a34a;

    font-size: 20px;

    font-weight: 800;
}


.doctor-already-booked strong {

    font-size: 13px;

    color: var(--text);
}


.doctor-already-booked span {

    color: var(--text-secondary);

    font-size: 11px;
}


/* =========================================================
   DOCTOR DETAILS
   ========================================================= */

.doctor-details-card {

    margin: 5px;

    padding: 24px;

    border:
        1px solid #e3e8f2;

    border-radius: 16px;

    background: #ffffff;
}


.doctor-details-back {

    border: none;

    background: transparent;

    color: #315fdc;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    padding: 0;

    margin-bottom: 18px;
}


.doctor-details-header {

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--border);
}


.doctor-details-header h2 {

    margin: 0;

    font-size: 20px;

    color: var(--text);
}


.doctor-details-specialization {

    margin-top: 5px;

    color: #315fdc;

    font-size: 12px;

    font-weight: 700;
}


.doctor-details-grid {

    margin-top: 20px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}


.doctor-detail-item {

    padding: 13px;

    border:
        1px solid #e5e9f1;

    border-radius: 10px;

    background: #f8faff;
}


.doctor-detail-item span {

    display: block;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 600;
}


.doctor-detail-item strong {

    display: block;

    margin-top: 5px;

    color: var(--text);

    font-size: 11px;

    line-height: 1.4;

    word-break: break-word;
}


.doctor-details-book-button {

    width: 100%;

    margin-top: 20px;

    padding: 11px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.doctor-details-book-button:disabled {

    background: #eef0f4;

    color: #8d96a5;

    cursor: not-allowed;
}


/* =========================================================
   SLOT DOCTOR SUMMARY
   ========================================================= */

.slot-doctor-summary {

    margin-top: 8px;
}


.slot-doctor-specialization {

    margin-top: 4px;

    color: #315fdc;

    font-size: 11px;

    font-weight: 700;
}


.slot-doctor-rating {

    margin-top: 7px;

    color: #e09a20;

    font-size: 11px;

    font-weight: 700;
}


.slot-doctor-rating span {

    color: var(--text-muted);

    font-weight: 500;
}


.slot-doctor-hospital {

    margin-top: 7px;

    color: var(--text);

    font-size: 11px;

    font-weight: 650;
}


.slot-doctor-address {

    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 10px;
}


.slot-doctor-experience {

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .doctor-details-grid {

        grid-template-columns:
            1fr;
    }

}

.slot-grid {

    overflow: visible;
}

/* =========================================================
   PROFILE MENU
   ========================================================= */

.profile-menu-wrapper {

    position: relative;

    display: flex;

    align-items: center;
}


.profile-avatar-button {

    width: 38px;

    height: 38px;

    border: none;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #4777f5,
            #6438e9
        );

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 6px 18px
        rgba(70, 73, 230, 0.20);

    transition:
        transform 0.15s ease;
}


.profile-avatar-button:hover {

    transform:
        translateY(-1px);
}


.profile-dropdown {

    position: absolute;

    top: calc(
        100% + 10px
    );

    right: 0;

    width: 175px;

    padding: 7px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;

    box-shadow:
        0 15px 40px
        rgba(25, 35, 60, 0.15);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        all 0.15s ease;

    z-index: 1000;
}


.profile-dropdown.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.profile-menu-item {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 9px 10px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: var(--text);

    font-family: inherit;

    font-size: 11px;

    text-align: left;

    cursor: pointer;
}


.profile-menu-item:hover {

    background: #f4f6fb;
}


.profile-menu-item.logout {

    color: #ef4444;
}


.profile-menu-divider {

    height: 1px;

    margin: 5px 2px;

    background:
        #edf0f5;
}

/* =========================================================
   PROFILE DASHBOARD
   ========================================================= */

.profile-dashboard-overlay {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(23, 32, 51, 0.30);

    backdrop-filter:
        blur(5px);
}


.profile-dashboard {

    width:
        min(
            760px,
            100%
        );

    max-height: 88vh;

    overflow-y: auto;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        white;

    box-shadow:
        0 25px 70px
        rgba(25, 35, 60, 0.18);
}


.profile-dashboard-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding: 24px 26px;

    border-bottom:
        1px solid var(--border);
}


.profile-dashboard-header h2 {

    font-size: 20px;

    letter-spacing: -0.4px;
}


.profile-dashboard-header p {

    margin-top: 5px;

    color:
        var(--text-secondary);

    font-size: 11px;
}


.profile-dashboard-close {

    width: 32px;

    height: 32px;

    border: none;

    border-radius: 9px;

    background:
        #f4f6fa;

    color:
        #667085;

    font-size: 20px;

    cursor: pointer;
}


.profile-dashboard-body {

    padding: 25px;

    display: grid;

    gap: 18px;
}


.profile-info-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        #f8faff;
}


.profile-large-avatar {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #4777f5,
            #6438e9
        );

    color: white;

    font-size: 18px;

    font-weight: 750;
}


.profile-info-card h3 {

    font-size: 15px;
}


.profile-info-card p {

    margin-top: 4px;

    color:
        var(--text-secondary);

    font-size: 10px;
}


.password-card {

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: white;
}


.password-card h3 {

    font-size: 15px;
}


.password-card > p {

    margin-top: 5px;

    color:
        var(--text-secondary);

    font-size: 10px;
}


.change-password-form {

    margin-top: 18px;

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.change-password-form label {

    margin-top: 6px;

    color:
        var(--text);

    font-size: 10px;

    font-weight: 650;
}


.change-password-form input {

    width: 100%;

    padding: 11px 12px;

    border:
        1px solid #dce2ee;

    border-radius: 9px;

    outline: none;

    font-family: inherit;

    font-size: 11px;
}


.change-password-form input:focus {

    border-color:
        #6b7ff2;

    box-shadow:
        0 0 0 3px
        rgba(53, 100, 237, 0.08);
}


.profile-primary-button {

    margin-top: 10px;

    padding: 11px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

/* =========================================================
   MY BOOKINGS
   ========================================================= */

.my-bookings-container {

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 13px;
}


.my-booking-card {

    padding: 18px;

    border:
        1px solid #e3e8f2;

    border-radius: 15px;

    background: white;

    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.my-booking-card:hover {

    border-color:
        #cbd7f5;

    box-shadow:
        0 8px 25px
        rgba(53, 100, 237, 0.07);
}


.my-booking-main {

    display: flex;

    justify-content: space-between;

    gap: 25px;
}


.my-booking-card h3 {

    font-size: 15px;
}


.booking-specialization {

    margin-top: 4px;

    color:
        #315fdc;

    font-size: 11px;

    font-weight: 650;
}


.booking-rating {

    margin-top: 7px;

    color:
        #e09a20;

    font-size: 10px;

    font-weight: 700;
}


.booking-rating span {

    color:
        var(--text-muted);

    font-weight: 500;
}


.booking-hospital {

    margin-top: 8px;

    font-size: 10px;

    font-weight: 650;
}


.booking-address {

    margin-top: 3px;

    color:
        var(--text-secondary);

    font-size: 9px;
}


.booking-date-time {

    min-width: 145px;

    display: grid;

    grid-template-columns:
        1fr;

    gap: 8px;
}


.booking-date-time div {

    padding: 9px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background:
        #f8faff;
}


.booking-date-time span {

    display: block;

    color:
        var(--text-muted);

    font-size: 8px;
}


.booking-date-time strong {

    display: block;

    margin-top: 3px;

    font-size: 10px;
}


.booking-card-actions {

    margin-top: 16px;

    padding-top: 13px;

    border-top:
        1px solid #edf0f5;

    display: flex;

    gap: 8px;
}


.booking-edit-button,
.booking-cancel-button {

    padding: 9px 13px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.booking-edit-button {

    border:
        1px solid #cfd9f5;

    background:
        #f5f7ff;

    color:
        #315fdc;
}


.booking-cancel-button {

    border:
        1px solid #ffd3d3;

    background:
        #fff7f7;

    color:
        #e34b4b;
}


.booking-unavailable-message {

    margin-top: 14px;

    padding-top: 12px;

    border-top:
        1px solid #edf0f5;

    color:
        var(--text-muted);

    font-size: 9px;
}

.booking-unavailable-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.booking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.booking-status-booked {
    color: #16a34a;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.booking-status-expired {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.booking-status-cancelled {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}


.my-bookings-empty {

    padding: 60px 20px;

    text-align: center;

    color:
        var(--text-secondary);
}


.my-bookings-empty > div {

    font-size: 30px;

    margin-bottom: 10px;
}


.my-bookings-empty h3 {

    font-size: 15px;
}


.my-bookings-empty p {

    margin-top: 5px;

    font-size: 10px;
}

/* =========================================================
   EDIT BOOKING MODAL
   ========================================================= */

.edit-booking-overlay {

    position: fixed;

    inset: 0;

    z-index: 11000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(23, 32, 51, 0.32);

    backdrop-filter:
        blur(5px);
}


.edit-booking-modal {

    width:
        min(
            720px,
            100%
        );

    max-height: 85vh;

    overflow-y: auto;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 25px 70px
        rgba(25, 35, 60, 0.20);
}


.edit-booking-header {

    display: flex;

    justify-content: space-between;

    padding: 22px 25px;

    border-bottom:
        1px solid var(--border);
}


.edit-booking-header h2 {

    font-size: 18px;
}


.edit-booking-header p {

    margin-top: 4px;

    color:
        var(--text-secondary);

    font-size: 10px;
}


.edit-booking-close {

    width: 32px;

    height: 32px;

    border: none;

    border-radius: 9px;

    background:
        #f4f6fa;

    color:
        #667085;

    font-size: 19px;

    cursor: pointer;
}


.edit-slots-container {

    padding: 22px;
}


.edit-booking-info {

    padding: 12px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        #f8faff;
}


.edit-booking-info span {

    display: block;

    color:
        var(--text-muted);

    font-size: 9px;
}


.edit-booking-info strong {

    display: block;

    margin-top: 4px;

    font-size: 11px;
}


.edit-slots-title {

    margin-top: 20px;

    margin-bottom: 10px;

    font-size: 11px;

    font-weight: 700;
}


.edit-slot-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap: 9px;
}


.edit-slot-wrapper {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;
}


.edit-time-slot {

    width: 100%;

    min-height: 40px;

    border:
        1px solid #d9e1f2;

    border-radius: 10px;

    background: white;

    color:
        #315fdc;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.edit-time-slot:hover:not(:disabled) {

    border-color:
        #aebff1;

    background:
        #eef3ff;
}


.edit-time-slot.selected {

    border-color:
        #3564ed;

    background:
        linear-gradient(
            100deg,
            #3564ed,
            #7138e8
        );

    color: white;
}


.edit-time-slot.current-slot {

    border-color:
        #3564ed;

    background:
        #f0f4ff;

    color:
        #315fdc;
}


.edit-time-slot.not-available {

    opacity: 0.55;

    background:
        #f7f8fa;

    color:
        #98a2b3;

    cursor:
        not-allowed;
}


.slot-status {

    color:
        #315fdc;

    font-size: 8px;

    font-weight: 700;
}


.edit-confirm-button {

    width: 100%;

    margin-top: 18px;

    padding: 11px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}


.edit-confirm-button:disabled {

    opacity: 0.45;

    cursor:
        not-allowed;
}

/* =========================================================
   CANCEL CONFIRMATION
   ========================================================= */

.cancel-confirm-overlay {

    position: fixed;

    inset: 0;

    z-index: 12000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(23, 32, 51, 0.35);

    backdrop-filter:
        blur(4px);
}


.cancel-confirm-card {

    width:
        min(
            390px,
            100%
        );

    padding: 25px;

    border-radius: 17px;

    background: white;

    text-align: center;

    box-shadow:
        0 25px 65px
        rgba(25, 35, 60, 0.20);
}


.cancel-confirm-icon {

    width: 42px;

    height: 42px;

    margin:
        0 auto 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        #fff4f4;

    color:
        #e34b4b;

    font-size: 18px;

    font-weight: 800;
}


.cancel-confirm-card h3 {

    font-size: 17px;
}


.cancel-confirm-card p {

    margin-top: 8px;

    color:
        var(--text-secondary);

    font-size: 10px;

    line-height: 1.6;
}


.cancel-confirm-actions {

    margin-top: 20px;

    display: flex;

    gap: 9px;
}


.cancel-no-button,
.cancel-yes-button {

    flex: 1;

    padding: 10px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.cancel-no-button {

    border:
        1px solid var(--border);

    background:
        #f8faff;

    color:
        var(--text);
}


.cancel-yes-button {

    border: none;

    background:
        #ef4444;

    color: white;
}

@media (max-width: 600px) {

    .profile-dashboard-overlay,
    .edit-booking-overlay {

        padding: 10px;
    }

    .profile-dashboard,
    .edit-booking-modal {

        max-height: 94vh;

        border-radius: 18px;
    }

    .my-booking-main {

        flex-direction: column;
    }

    .booking-date-time {

        width: 100%;

        grid-template-columns:
            1fr 1fr;
    }

    .edit-slot-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }

    .booking-card-actions {

        flex-direction: column;
    }

    .booking-edit-button,
    .booking-cancel-button {

        width: 100%;
    }
}

/* =========================================================
   DIET PLANNING
   ========================================================= */

.diet-dashboard {
    width: min(
        1050px,
        100%
    );

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.diet-chat-container {
    padding: 22px;
    min-height: 420px;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f7f8fc;
}

.diet-message {
    max-width: 78%;
    padding: 11px 14px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.diet-message.assistant {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
}

.diet-message.user {
    align-self: flex-end;
    background: #3564ed;
    color: white;
}

.diet-chat-form {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background: white;
}

.diet-chat-form input {
    flex: 1;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #dce2ee;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
}

.diet-chat-form input:focus {
    border-color: #5274ed;
    box-shadow:
        0 0 0 3px
        rgba(53, 100, 237, 0.08);
}

.diet-chat-form button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background:
        linear-gradient(
            100deg,
            #3266ed,
            #7138e8
        );
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* =========================================================
   BLOOD REPORT ONLY
   ========================================================= */

.blood-report-result {
    line-height: 1.55;
}

/* Main title */
.blood-report-result .blood-report-title {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 750;
    color: #1f2937;
}

/* Section headings */
.blood-report-result .blood-report-heading {
    margin: 16px 0 7px 0;
    padding: 0 0 5px 0;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 750;

    color: #1f2937;

    border-bottom: 1px solid #e5e9f2;
}

/* Normal paragraphs */
.blood-report-result br + br {
    display: none;
}

/* Lists */
.blood-report-result .blood-report-list {
    margin: 5px 0 12px 18px;
    padding-left: 16px;
}

.blood-report-result .blood-report-list li {
    margin: 2px 0;
    line-height: 1.5;
}

/* Tables */
.blood-report-result .blood-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 8px 0 14px 0;
}

.blood-report-result .blood-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.blood-report-result .blood-report-table th {
    padding: 9px 10px;
    font-weight: 700;
    text-align: left;
    border: 1px solid #dfe3eb;
    background: #f5f7fb;
}

.blood-report-result .blood-report-table td {
    padding: 8px 10px;
    border: 1px solid #dfe3eb;
    vertical-align: top;
    line-height: 1.4;
}

.blood-report-result .blood-report-table strong {
    font-weight: 700;
}

.blood-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
}

.blood-report-table th {
    font-weight: 700;
    text-align: left;
    padding: 11px 12px;
    border: 1px solid #dfe3eb;
    background: #f5f7fb;
}

.blood-report-table td {
    padding: 10px 12px;
    border: 1px solid #dfe3eb;
    vertical-align: top;
    line-height: 1.5;
}

.blood-report-table strong {
    font-weight: 700;
}

@media (max-width: 600px) {

    .diet-chat-container {
        min-height: 380px;
        max-height: 60vh;
        padding: 15px;
    }

    .diet-message {
        max-width: 88%;
    }

}