:root {
    --dark-blue: #004950;
    --aqua: #44CECF;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-dark: #222;
    --text-muted: #666;
    --light-aqua: rgba(68, 206, 207, 0.1);
    --dark-blue-light: #006068;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.bm-container {
    padding: 30px 20px;
    background: var(--light-bg);
}

.viewalllink {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-blue) !important; 
    text-decoration: none !important;
    transition: var(--transition);
    position: relative;
}

.viewalllink:hover {
    color: var(--aqua) !important;
}

.viewalllink:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aqua);
    transition: width 0.3s ease;
    z-index: 1;
}

.viewalllink:hover:after {
    width: 100%;
}

.btun-left-button {
    color: var(--dark-blue);
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none !important;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid var(--dark-blue);
    background: transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btun-left-button:hover {
    background: var(--dark-blue) !important;
    color: white !important;
    transform: scale(1.1);
}

.text-large-head {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.text-large-head:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--aqua);
    border-radius: 2px;
    z-index: 1;
}

/* ====== NOT LOGGED IN BLOCK ====== */
.bm-not-logged {
    max-width: 900px;
    margin: 80px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.bm-not-logged__title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.bm-not-logged__text {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ====== BUTTONS ====== */
.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bm-btn--primary {
    background: var(--dark-blue)  !important;
    color: #fff !important;
    box-shadow: var(--shadow-md) !important;
}

.bm-btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--dark-blue)  !important;
     color: #fff !important;
}

.bm-btn--vials {
    background: var(--dark-blue)    !important;
    color: #fff !important;
    padding: 14px 28px;
}

.bm-btn--success {
    background: var(--aqua);
    color: white !important;
    box-shadow: var(--shadow-md) !important;
}

.bm-btn--success:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.bm-actions { 
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ====== HEADINGS ====== */
.bm-welcome {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-section-title, .bm-dashboard-title {
    font-size: 1.5rem;

    font-weight: 700;
    color: var(--dark-blue);
    position: relative;
    padding-left: 15px;
}

.bm-section-title:before, .bm-dashboard-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--aqua);
    border-radius: 3px;
    z-index: 1;
}

/* ====== GRID LAYOUT ====== */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* ====== CARD BASE ====== */
.bm-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 20px 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
 
}

.bm-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dark-blue);
    z-index: 1;
}

.bm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bm-card__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.bm-card small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ====== ICONS ====== */
.bm-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--aqua);
}

.bm-icon--heart { color: #E63946; }
.bm-icon--sleep { color: #06D6A0; }
.bm-icon--steps { color: var(--aqua); }

/* ====== PERSONAL CARD ====== */
.bm-personal-card {
    background: var(--dark-blue) !important;
    color: white !important;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.bm-personal-card__title {
    
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.bm-personal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
    color: white;
    position: relative;
    z-index: 2;
}

.bm-personal-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bm-personal-list li:last-child {
    border-bottom: none;
}

.bm-personal-empty { 
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* ====== INSIGHTS ====== */
.bm-insights {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
     margin-bottom: 30px;

}

.bm-insights h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    position: relative;
    padding-left: 15px;
}

.bm-insights h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--aqua);
    border-radius: 3px;
    z-index: 1;
}

.bm-insights ul {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

.bm-insights li {
    margin-bottom: 10px;
    position: relative;
}

.bm-insights li:before {
    content: '•';
    color: var(--aqua);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* ====== DERIVED CARDS ====== */
.bm-derived .bm-card__value { color: var(--aqua); }
.bm-derived--bmi i { color: #007BFF; }
.bm-derived--cancer i { color: #E63946; }
.bm-derived--liver i { color: #8B4513; }
.bm-derived--stress i { color: #FF8800; }
.bm-derived--sleep i { color: #06D6A0; }

/* ====== MODAL ====== */
.bm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    overflow: auto;
    padding-top: 40px;
    backdrop-filter: blur(5px);
}

.bm-modal__content {
    background: var(--card-bg);
    width: 85%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.bm-modal__close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.bm-modal__close:hover {
    color: var(--dark-blue);
    background: var(--light-aqua);
}

.bm-modal__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.text-blue-white {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.button-close {
    padding: 12px 24px;
    background: var(--aqua);
    color: var(--dark-blue);
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: var(--shadow-md);
}
.button-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: var(--dark-blue);
    color: var(--aqua);
}
/* ====== FORM ====== */
.bm-form-group { 
    margin-bottom: 25px;
    position: relative;
}

.bm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
}

.bm-input, .bm-select, .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eaeaea;
    border-radius: 10px;
    box-sizing: border-box;
    transition: var(--transition);
    font-size: 16px;
}

.bm-input:focus, .bm-select:focus, .form-control:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px var(--light-aqua);
    outline: none;
}

.form-check {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -30px;
}

.form-check-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* ====== SAVE BUTTON ====== */
.bm-save-btn {
    padding: 14px 30px;
    background: var(--aqua);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.bm-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ====== DEBUG ====== */
.bm-debug {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid #eee;
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

/* ====== TOAST ====== */
.bm-toast {
    position: fixed;
    right: 20px;
    top: 20px;
    background: var(--aqua);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 100000;
    transition: opacity 0.5s;
    font-weight: 500;
}

.card.rounded-class-card-bio {
    border-radius: 12px !important;
    box-shadow: var(--shadow-md); 
    border: none;
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
}

.card.rounded-class-card-bio:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bold-text-fullname {
    font-weight: 700;
    color: var(--dark-blue) !important; 
    font-size: 24px;
}

.card-title-title-health {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue) !important;
}

.card-health-der {
    width: 100%;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    background: white;
    transition: var(--transition);
}

.card-health-der:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-summary-sub-health {
    font-size: 18px;
    font-weight: 500;
    color: var(--aqua) !important;
}

.bm-card-circle-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 50%;
    background: var(--light-aqua);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-health-der:hover .bm-card-circle-icon {
    transform: scale(1.1);
    background: var(--aqua);
    color: white;
}

.card-dahsbord-title-like-steps {
    color: var(--dark-blue);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.bm-card__title {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
}

/* category title */
.text-card-biomarker-deravative {
    font-weight: 600;
    font-size: 18px;
    color: var(--dark-blue) !important;
    margin-bottom: 8px;
}

/* value pills */
.card-text-pilles {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-blue) !important;
    border-radius: 20px;
    padding: 6px 14px;
    background-color: var(--light-aqua) !important;
    margin: 4px 4px 4px 0;
    transition: var(--transition);
}

.card-text-pilles:hover {
    background-color: var(--aqua) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Additional enhancements */
.bm-row {
    margin-bottom: 30px;
}

.bm-small {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.bm-small-title {
    font-size: 16px;
    color: var(--text-muted);
    display: block;
} 

/* Enhanced form sections */
h4.mt-3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-top: 30px !important;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-aqua);
    position: relative;
}

h4.mt-3:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--aqua);
    z-index: 1;
}

/* Modal enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--dark-blue);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 25px;
}

.btn-secondary {
    background: #eaeaea;
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Enhanced form styling */
.bm-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid var(--aqua);
}

.bm-form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.bm-form-section-title i {
    margin-right: 10px;
    color: var(--aqua);
    font-size: 1.3rem;
}

.bm-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.bm-form-col {
    padding: 0 10px;
    flex: 1;
    min-width: 250px;
}

.bm-form-check {
    display: flex;
    align-items: center;
    padding-left: 30px;
    position: relative;
    gap: 8px;
    margin-bottom: 8px;
}

.bm-form-check-input {
    width: 20px;
    height: 20px;
    margin-left: -30px;
}

.bm-form-check-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
}

.bm-form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

.bm-form-required {
    color: #E63946;
    margin-left: 3px;
}

.bm-progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 15px;
}

.bm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 60px;
}

.bm-progress-step:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.bm-progress-step:last-child:before {
    display: none;
}

.bm-progress-step.active:before {
    background: var(--aqua);
}

.bm-progress-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #999;
    position: relative;
    z-index: 2;
}

.bm-progress-step.active .bm-progress-circle {
    border-color: var(--aqua);
    color: var(--aqua);
}

.bm-progress-step.completed .bm-progress-circle {
    background: var(--aqua);
    border-color: var(--aqua);
    color: white;
}

.bm-progress-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
}

.bm-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bm-form-info {
    font-size: 14px;
    color: var(--text-muted);
}

.bm-form-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid var(--aqua);
}

.bm-form-note i {
    color: var(--aqua);
    margin-right: 8px;
}

.bm-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.bm-tooltip .bm-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-blue);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
}

.bm-tooltip:hover .bm-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.bm-tooltip i {
    color: var(--aqua);
    font-size: 14px;
    cursor: help;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .bm-welcome {
        margin-bottom: 20px;
        align-items: flex-start;
        gap: 15px;
    }
    
    .bm-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .bm-actions .bm-btn {
        width: 100%;
        justify-content: center;
        font-size: 17px;
    }
    
    .card-dahsbord-title-like-steps {
        font-size: 36px;
    }
    
    .bm-modal__content {
        width: 95%;
        padding: 25px;
    }
    
    .bm-form-row {
        flex-direction: column;
    }
    
    .bm-form-col {
        min-width: 100%;
    }
    
    .bm-progress-indicator {
        flex-wrap: wrap;
    }
    
    .bm-progress-step {
        margin-bottom: 15px;
    }
    
    .bm-form-actions {
        flex-direction: column;
        gap: 15px;
    }
}


/* Blood Test Summary Styles */
.bm-blood-test-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bm-summary-title {
    color: #c0392b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.bm-summary-title-paients {
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* .bm-summary-title::before {
    content: "\f1fd";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #e74c3c;
} */

.bm-summary-content {
    background-color: #fff;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #34495e;
}

.bm-summary-content-paients {
    background-color: #fff;
    border-left: 4px solid #2ecc71;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #34495e;
}

.bm-summary-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-align: right;
    font-style: italic;
}





/* Responsive adjustments */
@media (max-width: 768px) {
    .bm-summary-title {
        font-size: 1.3rem;
    }
    .bm-summary-title-paients {
        font-size: 1.3rem;
    }
   
    .bm-summary-content {
        padding: 12px;
        font-size: 0.95rem;
    }
}

.pagination-container {
    display: flex;
    gap: 8px;
   
    justify-content: center;
    align-items: center;
}

.margin-top-4 {
 margin-top: 16px !important;   
}

.margin-bottom-20-mobile-col-mb {
    margin-bottom: 0px;
}

.pagination-btn {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: none !important;
    background-color: transparent !important;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.flex-direction-column {
    flex-direction: row ;
}

.pagination-btn:hover {
    color: var(--aqua);

}

.pagination-btn.active {
    color: var(--aqua);
    font-weight: 700;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-muted);
}

.display-flex-column {
    display: flex;

}
/* Add a subtle animation for page changes */
@keyframes pageChange {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.biomarker-card-item {
    animation: pageChange 0.3s ease-out;
}

.align-items-center-mobile {
    align-items: center;
}

.margin-bottom-20-mobile {
    margin-bottom: 0px;
}


@media (max-width: 768px) {
    .flex-direction-column {
        flex-direction: column !important;
    }

    .align-items-center-mobile {
        align-items: start ;
    }
    .margin-bottom-20-mobile {
                margin-bottom: 10px;
    }
    .margin-top-4 {
 margin-top: 10px !important; 
 margin-bottom: 10px !important;  
}
.margin-bottom-20-mobile-col-mb {
    margin-bottom: 20px;
}

.display-flex-column {
    display: flex;
    flex-direction: column;
}
}





.bm-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.bm-loading-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
}

.bm-loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bm-loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.bm-loading-subtext {
    font-size: 14px;
    color: #666;
}

.bm-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
}

.bm-toast-icon {
    margin-right: 10px;
    font-size: 24px;
}

/* === Enhanced summary cards (Blood Test & Patient Summary) === */
/* CSS Variables for consistent theming */
/* Main container styling */
/* Enhanced Blood Test Analysis Section */
.bm-summary-section {
    margin-top: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern card design with gradient accents */
.bm-summary-card__body {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bm-summary-card__body:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Gradient header bar */
.bm-summary-card__header {
    padding: 20px 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bm-summary-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.bm-summary--blood .bm-summary-card__icon {
    background: linear-gradient(135deg, var(--accent-color), #c53030);
}

.bm-summary--patient .bm-summary-card__icon {
    background: linear-gradient(135deg, var(--secondary-color), #2c5282);
}

.bm-summary-card__title {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 0.025em;
}

/* Content styling with improved typography */
/* Content styling with improved typography and spacing */
.bm-summary-card__content {
    padding: 25px 30px;
    color: #2d3748;
    line-height: 1.7;
    font-size: 1.05rem;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: pre-wrap; /* Keep this for line breaks */
    position: relative;
    letter-spacing: 0.01em;
    font-weight: 400;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-spacing: 0.05em;
    /* Add these to control spacing */
    margin: 0;
    padding-top: 20px;
}

/* Remove extra spacing from line breaks */
.bm-summary-card__content br {
    display: block;
    margin-bottom: 8px; /* Adjust this value to control spacing between lines */
    content: "";
}

/* Control the spacing for the entire content block */
.bm-summary-card__content {
    line-height: 1.6;
}

/* If you need even more control, add this */
.bm-summary-card__content {
    white-space: pre-wrap;
    white-space-collapse: preserve-breaks; /* This helps with line breaks */
}

.bm-summary-card__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Enhanced questions section */
.bm-summary-questions {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bm-summary-questions__title {
    font-weight: 700 !important;
    color: var(--dark-blue) !important;
    margin: 0 0 20px !important;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.025em;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}

.bm-summary-questions__title::before {
    content: '❓';
    margin-right: 10px;
    font-size: 1.2rem;
}

.bm-summary-questions__list {
    margin: 0;
    padding-left: 0;
    color: #4a5568;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.bm-summary-questions__list li {
    margin-bottom: 12px;
    position: relative;
    padding: 8px 12px 8px 40px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--accent-color);
}

.bm-summary-questions__list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bm-summary-questions__list li:last-child {
    margin-bottom: 0;
}

.bm-summary-questions__list li::before {
    content: '💡';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* Meta information styling */
.bm-summary-card__meta {
    padding: 18px 30px;
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    letter-spacing: 0.025em;
    font-weight: 500;
    position: relative;
}

.bm-summary-card__meta::before {
    content: '📅';
    margin-right: 10px;
    font-size: 1rem;
}

/* Section headers */
.bm-summary-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.bm-summary-section-title {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.025em;
}

.bm-summary-section-divider {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.bm-summary--blood .bm-summary-section-divider {
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.bm-summary--patient .bm-summary-section-divider {
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

/* Status indicators */
.bm-summary-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 15px;
    letter-spacing: 0.05em;
}

.bm-summary--blood .bm-summary-status {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.bm-summary--patient .bm-summary-status {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.your-resutls-ai {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
     display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500 !important;
    margin-left: 15px;
    letter-spacing: 0.05em;

}

.bm-summary--urine .bm-summary-status {
  background: rgba(255, 238, 88, 0.3);
color: #c49a00;


 


}

.bm-rating-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.bm-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bm-rating-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.bm-rating-score {
    display: flex;
    align-items: baseline;
}

.bm-rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin-right: 5px;
}

.bm-rating-number.high {
    color: #28a745; /* Green for high scores (8-10) */
}

.bm-rating-number.medium {
    color: #ffc107; /* Yellow for medium scores (5-7) */
}

.bm-rating-number.low {
    color: #dc3545; /* Red for low scores (1-4) */
}

.bm-rating-outof {
    font-size: 1.2rem;
    color: #666;
}




.bm-rating-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}


.bm-btn--primary-sub {
     background: #cdf1f8  !important;
    color: var(--dark-blue) !important;
    box-shadow: var(--shadow-md) !important;
}

.bm-btn--primary-sub:hover {
    background: var(--dark-blue)!important;
    color: #fff !important;
}

.btn-personal-data {
     background: #cdf1f8  !important;
    color: var(--dark-blue) !important;
    box-shadow: var(--shadow-md) !important;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 5px;
    
}



.bm-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bm-rating-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.bm-rating-score {
    display: flex;
    align-items: baseline;
}

.bm-rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin-right: 5px;
}

.bm-rating-number.high {
    color: #28a745; /* Green for high scores (8-10) */
}

.bm-rating-number.medium {
    color: #ffc107; /* Yellow for medium scores (5-7) */
}

.bm-rating-number.low {
    color: #dc3545; /* Red for low scores (1-4) */
}

.bm-rating-outof {
    font-size: 1.2rem;
    color: #666;
}

.bm-rating-explanation {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.bm-rating-explanation p {
    margin-bottom: 10px;
}

.bm-rating-explanation p:last-child {
    margin-bottom: 0;
}

.upload-test-container {
  position: relative;
  display: inline-block;
}

.health-test-container {
  position: relative;
  display: inline-block;
}

/* Make main button larger & centered */
.bm-btn--main {
  background: var(--aqua);
  color: white;
  font-weight: 700;
  padding: 16px 40px; /* wider button */
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 1rem;
  min-width: 200px; /* ensure wide size */
  justify-content: center;
}

.bm-btn--main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--dark-blue);
  color: #fff;
}

/* Dropdown hidden by default */
.upload-dropdown {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 70px;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 15px;
  z-index: 1000;
  animation: dropdownSlide 0.3s ease-in-out;
  width: 100%;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toggle open on click */
.upload-test-container.active .upload-dropdown {
  display: flex;
}


.health-test-container.active .upload-dropdown {
  display: flex;
}



/* Responsive design */
@media (min-width: 992px) {
    .bm-summary-section-container {
        display: flex;
        gap: 30px;
    }
    
    .bm-summary-section {
        flex: 1;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    .bm-summary-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .bm-summary-card__header {
        padding: 20px 20px 0;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bm-summary-card__content {
        padding: 20px;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .bm-summary-questions {
        padding: 20px;
    }
    
    .bm-summary-card__meta {
        padding: 14px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bm-summary-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bm-summary-section-divider {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .bm-summary-questions__list li {
        padding: 8px 10px 8px 35px;
    }
    
    .bm-summary-card__icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .bm-summary-section-title {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    .bm-summary-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .bm-summary-card__body {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .bm-summary-card__body:hover {
        transform: none;
    }
}

/* Health Rating Display Styles */


.test-result-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-weight: 500;
    text-align: left;
}

.test-result-btn .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

.bm-rating-label {
    font-weight: 700;
    margin-right: 8px;
    color: var(--dark-blue);
    font-size: 23px;
}

.bm-rating-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.bm-rating-value.high {
    color: #28a745;
}

.bm-rating-value.medium {
    color: #ffc107;
}

.bm-rating-value.low {
    color: #dc3545;
}
.bm-health-rating-display {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background-color: #f8f9fa;
    border-radius: 17px;
    border: 2px solid var(--dark-blue);
    margin-left: 15px;
}



.bm-rating-value {
    font-weight: 700;
    font-size: 1.4rem;
}

.bm-rating-value.high {
    color: #28a745;
}

.bm-rating-value.medium {
    color: #ffc107;
}

.bm-rating-value.low {
    color: #dc3545;
}

@media (max-width: 768px) {
    .bm-health-rating-display {
        margin-left: 0;
        margin-top: 10px;
    }
}