
/* ---- dress-size-calculator.blade.php ---- */
.overflow-auto{
        overflow: auto;
    }

/* ---- bulking-calculator.blade.php ---- */
.highcharts-credits{
        display: none
    }

/* ---- harris-benedict-calculator.blade.php ---- */
.canvasjs-chart-credit{
        display: none
    }

/* ---- maintenance-calorie-calculator.blade.php ---- */
.highcharts-credits{
        display: none
    }

/* ---- weight-gain-calculator.blade.php ---- */
.highcharts-credits{
        display: none
    }

/* ---- ffmi-calculator.blade.php ---- */
.purple{
        background: #9c27b0
    }
    .cyan{
        background: #00bcd4
    }
    .red{
        background: #F44336
    }
    .orange{
        background: #ff9800
    }

/* ---- lean-body-mass-calculator.blade.php ---- */
.border-danger {
                border: 2px solid #dc3545 !important;
            }
            .text-danger {
                color: #dc3545 !important;
            }
            .font-s-10 {
                font-size: 10px;
            }
            .font-s-12 {
                font-size: 12px;
            }

/* ---- steps-to-miles-calculator.blade.php ---- */
.content table, .content th, .content td {
        border: 1px solid #9f9d9d;
        border-collapse: collapse;
        padding: 5px;
        text-align: center;
    }
    .content table tr:hover td {
        color: #fff !important;
        background-color: rgb(0, 0, 0) !important;
    }

/* ---- steps-to-calories-calculator.blade.php ---- */
.content table, .content th, .content td {
        border: 1px solid #9f9d9d;
        border-collapse: collapse;
        padding: 5px;
        text-align: center;
    }
    .content table tr:hover td {
        color: #fff !important;
        background-color: rgb(0, 0, 0) !important;
    }

/* ---- implantation-calculator.blade.php ---- */
.clr_0 th, .clr_0 td{
        color: #dac600
    }
    .clr_1 th, .clr_1 td{
        color: #c0627a
    }
    .clr_2 th, .clr_2 td{
        color: #62d616
    }
    .clr_3 th, .clr_3 td{
        color: #328210
    }
    .clr_4 th, .clr_4 td{
        color: #292828
    }

/* ---- height-percentile-calculator.blade.php ---- */
.chart-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 24px 28px; width: 560px; }
    .chart-title { text-align: center; font-size: 20px; font-weight: bold; color: #222; margin-bottom: 6px; }
    .legend { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; font-size: 13px; color: #444; }
    .legend-item { display: flex; align-items: center; gap: 6px; }
    .legend-line { width: 28px; height: 3px; border-radius: 2px; }
    canvas { width: 100% !important; }

/* ---- bmi-calculator.blade.php ---- */
.speech-bubble-area{
            position: absolute;
            width:18%;
            top: -29px;
            background:{{ $detail['color'] }};
            left: {{ $detail['left'] }}%
        }
        @keyframes bmi_res {
            from {left: 2%;}
            to {left: {{ $detail['left'] }}%}
        }
        .speech-bubble:after{
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            bottom: 0;
            left: 40%;
            border: 8px solid transparent;
            border-bottom: 0;
            margin-bottom: -7px;
            border-top-color: {{ $detail['color'] }};
        }

/* ---- waist-to-height-ratio-calculator.blade.php ---- */
.speech-bubble-area{
            position: absolute;
            width:18%;
            top: -29px;
            background:{{ $detail['color'] }};
            left: {{ $detail['left'] }};
            animation: bmi_res 0.5s
        }
        @keyframes bmi_res {
            from {left: 2%;}
            to {left: {{ $detail['left'] }}}
        }
        .speech-bubble:after{
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            bottom: 0;
            left: 40%;
            border: 8px solid transparent;
            border-bottom: 0;
            margin-bottom: -7px;
            border-top-color: {{ $detail['color'] }};
        }

/* ---- uog-gpa-calculator.blade.php ---- */
.grade_format,.close{
        cursor: pointer;
    }
    .grade_format img{
        width: 12px;
        height: 12px
    }
    .grade_type{
        background-color: #fff;
        position: absolute;
        width: 160px;
        right: 20px;
        top: 25px;
        z-index: 2;
        padding: 5px;
        border-radius: 10px;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)
    }
    .grade_type div{
        padding: 5px;
        font-size: 17px;
        cursor: pointer;
    }
    .grade_type p{
        display: inline
    }
    .grade_type img{
        width: 20px;
        height: 20px;
    }
    li.row.position-relative .remove{
        position: absolute;
        top: 5px;
        right: 0;
    }
    .current_inp{
        transition: display 0.5s ease-in-out;
    }

/* ---- waist-to-hip-ratio-calculator.blade.php ---- */
.unit-selector {
        position: absolute;
        right: 10px;
        top: 39%;
        transform: translateY(-50%);
    }

    .unit-options {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        z-index: 1000;
        min-width: 150px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .unit-option {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 12px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .bg-transparent{
        background-color: transparent !important;
    }

    .unit-option:hover {
        background-color: #f5f5f5;
    }

    .measurement-input {
        padding-right: 50px !important;
    }
    .unit-selector button {
        font-size: 14px;
        cursor: pointer;
    }

    .table-responsive {
        overflow-x: auto;
    }

/* ---- body-shape-calculator.blade.php ---- */
    .image {
        width: 100%;
        transition: transform 0.5s ease;
    }
    .zoomed {
        transform: scale(2);
    }
    .zoom-container {
        overflow: hidden;
        max-height: 400px; /* Adjust as needed */
        position: relative;
        transition: transform 0.5s ease;
    }
    .input{
        padding-right: 49px;
    }
@media (max-width: 480px) {
                .calculator-box{
                    padding-right: 0;
                    padding-left: 0;
                    padding-top: 0;
                }
            }

/* ---- weightloss-calculator-old.blade.php ---- */
.highcharts-credits{
        display: none
    }
    .orange-text{
        color: #FF6D00;
    }
    
    .docter{
        color: #856404;
        animation: blinker 2s linear infinite;
    }
    @keyframes blinker {
        50% {
            opacity: 0;
        }
    }
    @media screen and (min-width : 550px){
        .custom-flex{
            flex: 1;
        }
    }
    .gap-10{
        gap: 10px;
    }
    .zain-tooltip-text{
        display: none;
        width: 45%;
        position: absolute;
        bottom: 68%;
        color: black;
        font-size: 12px;
        border: 1px solid black;
        background-color: #FAFAEE;
        padding: 5px;
        border-radius: 5px;
    }

    .tooltip-container:hover .zain-tooltip-text{
        display: block;
    }

    @media (max-width: 480px) {
        .tooltip-container:hover .zain-tooltip-text{
            display: block;
            width: 60%;
            left: 10%;
            bottom: 70%;
        }   
    }
    .gap-2{
        gap: 4px;
    }
    #emojis-div{
        background: #f9f9f9;
        border-radius: 10px;
        width: max-content;
    }
.custom-alert {
                        color: #721c24;
                        background-color: #f8d7da;
                        padding: 10px 15px;
                        border-radius: 7px;
                    }

                    .custom-alert p{
                        animation: blinker 1s linear infinite;
                    }
                    @keyframes blinker {
                        50% {
                            opacity: 0;
                        }
                    }

/* ---- tdee-calculator.blade.php ---- */
.first:before {
        border-radius: 50px;
        margin-right: 0
    }
    input[type=range]::-webkit-slider-runnable-track {
        -webkit-appearance: none;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    #custom_moderate{
        margin-top: 10px
    }
    .units_active1{
        background-color: var(--light-blue);
        color: white;
    }

    @keyframes  button-pulse {
        0% {
            box-shadow: 0 0 0 0px #77DC7E;
        }
        100% {
            box-shadow: 0 0 0 5px #fff;
        }
    }


    .activeMacro{
        background: #278ECD;
        color: var(--white);
    }

    .resultInput{
        height: 31px;
        border-radius: 5px;
        box-shadow: 0px 0px 2px 0px #1670a7 inset;
        background: #FFFFFF;
        outline: 0px;
        border: 0px;
        text-align: center;
        font-size: 14px
    }

    .border_btm_D9D9D9{
        border-bottom: 1px solid #D9D9D9
    }

    .border_btm_D9D9D9.bg-light-blue p{
        color:var(--light-blue) !important
    }

    .color_434648{
        color: #434648
    }

    .min_mt_10{
        margin-top: -10px
    }

    .gap_5{
        gap: 5px
    }

    .border_left{
        border-left: 2px solid #ECEAEA
    }

    .border_right{
        border-right: 1px solid #00000026
    }

/* ---- ovulation-calculator.blade.php ---- */
.calendar {
        position: relative;
        text-transform: capitalize;
        text-align: center;
        color: #545A5C;
        margin: 0px auto;
        overflow: auto
    }
    .calendar header .month {
        padding: 0;
        margin: 0;
    }
    .calendar header .btn {
        display: inline-block;
        position: absolute;
        background: none !important;
        box-shadow: none !important;
        text-align: left;
        line-height: 35px;
        font-size: 25px;
    }
    .calendar header .btn-prev {
        left: 24%;
        top: -10px;
        font-size: 35px;
    }
    .calendar header .btn-next {
        right: 25%;
        top: -10px;
        font-size: 35px;
    }
    .calendar .day {
        display: inline-block;
        width: 2em;
        height: 2em;
        line-height: 1.9em;
        border-radius: 50%;
        text-align: center;
        font-size: 12px;
        border: 2px solid transparent;
    }
    .calendar .day.event {
        color: #fff;
        background: #ff4081;
        border: 2px solid #f77721;
    }
    .calendar .day.today {
        background: #13699E;
        color: white;
    }
    .calendar .event-container {
        display: none;
        position: absolute;
        top: 3px;
        left: 0;
        width: 100%;
        height: 98%;
        color: white;
        background: #fff;
        border-radius: 10px
    }
    .event-container>p {
        margin-top: 20px;
        font-size: 20px !important;
    }
    .event-container>.close {
        position: absolute;
        right: 32px;
        top: 32px;
        width: 32px;
        height: 32px;
        opacity: 0.3;
    }
    .calendar a {
        text-decoration: none;
    }
    .close {
        font-size: 25px;
        cursor: pointer
    }
    .calendar table {
        width: 100%;
        margin: 10px 0;
        border-spacing: 0px;
        border: 1px solid #f5f5f5
    }
    .calendar td {
        padding: 1.8px 5px;
        line-height: 0;
        border: 1px solid #f5f5f5
    }
    .calendar .headings td{
        padding: 12px 5px;
        border: 0
    }
    .cycle6_table td{
        padding: 13.7px
    }

/* ---- weightloss-calculator.blade.php ---- */
.highcharts-credits{
        display: none
    }
    .orange-text{
        color: #84D23C;
        font-size: 43px
    }
    .minus-top_border{
        margin-top: -8px
    }
    
    .docter{
        color: #856404;
        animation: blinker 2s linear infinite;
    }
    @keyframes blinker {
        50% {
            opacity: 0;
        }
    }
    @media screen and (min-width : 550px){
        .custom-flex{
            flex: 1;
        }
    }
    .gap-10{
        gap: 10px;
    }
    .zain-tooltip-text{
        display: none;
        width: 45%;
        position: absolute;
        bottom: 68%;
        color: black;
        font-size: 12px;
        border: 1px solid black;
        background-color: #FAFAEE;
        padding: 5px;
        border-radius: 5px;
    }

    .tooltip-container:hover .zain-tooltip-text{
        display: block;
    }

    @media (max-width: 480px) {
        .tooltip-container:hover .zain-tooltip-text{
            display: block;
            width: 60%;
            left: 10%;
            bottom: 70%;
        }   

        input[type="date"] {
            min-width: 90%;
            margin: 0px auto;
        }
    }
    .gap-2{
        gap: 4px;
    }
    #emojis-div{
        background: #f9f9f9;
        border-radius: 10px;
        width: max-content;
    }
    .tooltip{
        visibility: hidden;
        position: absolute;
        top: auto;
        width: 100%;
        right: 0px;
        left: 0;
        background:  #8D8D8D;
        border-radius: 5px;
        padding: 5px 10px;
        color: white;
        opacity: 0;
        bottom: 110%;
        font-size: 12px;
        opacity: 100%;
    }

    .toolspan:hover .tooltip{
        visibility: visible !important;
        opacity: 1;
    }
    .toolspan svg{
        margin-bottom: -2px;
        cursor: pointer;
    }
    .acitivityTable table td:first-child{
        border-right: 1px solid #D2D4D8
    }
    .acitivityTable table tr:first-child td:first-child{
        background: var(--light-blue);
        border-top-left-radius: 10px;
    }
    .acitivityTable table tr:first-child td:last-child{
        background: var(--light-blue);
        border-top-right-radius: 10px;
    }

/* ---- meal-planner.blade.php ---- */
.no-scroll{
        overflow: hidden;
    }

    .white-nowrap{
        white-space: nowrap;
    }

    .gap-5{
        gap: 5px
    }
    
    .gap-10{
        gap: 10px
    }

    .gap-15{
        gap: 15px
    }

    .foodsTypes{
        border: 1px solid #E1E1E1
    }
    
    .foodsTypes:hover{
        background: #EEF5F9;
        border: 1px solid transparent
    }

    .foodsTypes.activeFood{
        background: #EEF5F9;
        border: 1px solid transparent
    }

    #allFoods{
        max-height: 350px;
        overflow: auto;
    }

    #allFoods::-webkit-scrollbar,.mealsSection::-webkit-scrollbar {
        width: 10px;
    }
    #allFoods::-webkit-scrollbar-thumb, .mealsSection::-webkit-scrollbar-thumb{
        background: #CBCACA;
        border-radius: 7px;
    }
    #allFoods::-webkit-scrollbar-track, .mealsSection::-webkit-scrollbar-track{
        background-color: #F1F1F1;
        border-radius: 7px;
    }

    .hover-underline:hover,.mealNamePopup:hover{
        text-decoration: underline
    }

    .loading-dots {
        display: inline-block;
        position: relative;
        font-size: 1.5em;
    }

    .loading-dots::after {
        content: '...';
        animation: dots 1.5s steps(5, end) infinite;
    }

    @keyframes dots {
        0%, 20% {
            content: '.';
        }
        40% {
            content: '..';
        }
        60%, 100% {
            content: '...';
        }
    }

    .previewBtns{
        background: #F5F5F5;
        color: #000000;
        font-size: 16px;
    }

    .previewBtns.activePreview{
        background: var(--light-blue);
        color: var(--white);
    }

    .border_btm{
        border-bottom: 1px solid #D2D2D2
    }


    .base-timer {
        position: relative;
        width: 50px;
        height: 50px;
        margin-top: 20px
    }

    .base-timer__svg {
        transform: scaleX(-1);
    }

    .base-timer__circle {
        fill: none;
        stroke: none;
    }

    .base-timer__path-elapsed {
        stroke-width: 7px;
        stroke: grey;
    }

    .base-timer__path-remaining {
        stroke-width: 7px;
        stroke-linecap: round;
        transform: rotate(90deg);
        transform-origin: center;
        transition: 1s linear all;
        fill-rule: nonzero;
        stroke: currentColor;
    }

    .base-timer__path-remaining.green {
        color: rgb(65, 184, 131);
    }

    .base-timer__path-remaining.orange {
        color: orange;
    }

    .base-timer__path-remaining.red {
        color: red;
    }

    .base-timer__label {
        position: absolute;
        width: 50px;
        height: 50px;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .dayHeading{
        font-weight: bold;
        font-size: 18px
    }

    .checkBtns{
        font-size: 14px;
        padding: 5px 12px
    }

    .checkBtns:hover{
        background: #1670a752
    }

    .mealTimes,.goal_weight{
        background: #F5F5F5;
        color: #000000;
        font-size: 14px;
        padding: 5px 12px;
        border-radius: 10px;
        cursor: pointer;
    }

    .mealTimes.activemealTimes,.goal_weight.activeGoal{
        background: var(--light-blue);
        color: var(--white);
    }

    .text_chota{
        font-size: 15px;
        letter-spacing: .5px;
        line-height: 32px;
    }

    .new-gray{
        color: #838080
    }

    #add_more_days:disabled {
        background: #1670a7c4;
        cursor: not-allowed;
    }

    @media (max-width: 480px){
        .text_chota{
            font-size: 14px;
        }
        
        .checkBtns{
            font-size: 12px;
            padding: 5px 10px
        }
    }

/* ---- calorie-deficit-calculator.blade.php ---- */
@media (max-width: 520px) {
        .calculator-box{
            padding-right: 0rem;
            padding-left: 0rem;
        }
        .border-end-cus{
            padding-bottom: 20px;
           border-bottom: 1px solid gainsboro; 
        }
        #top {
            left: -5% !important;
        }     
        .tooltip-text {
            width: 400px !important;
        }
    }
    @media (max-width: 370px) {
        #top {
            left: -9% !important;
        }     
        .tooltip-text {
            width: 290px !important;
        }
    }
    @media (min-width: 520px) {
        .border-end-cus{
           border-right: 1px solid gainsboro; 
        }
        .hover_div:hover {
            -ms-transform: scale(1.1);
            -webkit-transform: scale(1.1);
            transform: scale(1.1); 
        }   

    }
    .calo{
        font-size: 10px;
    }
	.loading {
		display: flex;
		justify-content: center;
		align-items: center;
		transition: 0.5s;
        position: absolute;
		top: 0;
		width: 95.5%;
		height: 100%
	}
    .text-orange{
        color: #ff4500c4;
    }
	.loading::after {
		content: "";
		width: 37.6px;
		height: 37.6px;
		border: 8px solid #bbdbfc;
		border-top-color: #0c6cf2;
		border-radius: 50%;
		animation: loading 1s linear infinite
	}
	@keyframes loading {
		to {
			transform: rotate(1turn)
		}
	}
	.load_content {
		transition: 0.5s;
		opacity: 0
	}
	.active_tr{
        background-image: linear-gradient(45deg, #156ba1d0, #57b4eb) !important;
	}
    .active_tr td{
		color: white !important;
	}
	.click_me:hover{
        background-image: linear-gradient(45deg, #156ba1d0, #57b4eb);
        /* color: white !important; */
	}
    .click_me:hover td{
        color: white !important;
	}
    .line-height{
        line-height: 28px;
    }
    .gap-2{
        gap: 15px;
    }
    tbody .click_me:nth-child(even) {
        background-color: #1670a712;
        /* color: #fff; */
    }
    .radius-top{
        border-radius: 10px 10px 0px 0px;
    }
    .font-s-34{
        font-size: 34px;
    }
    .hover_div {
        transition: transform .2s;
    }
    
      
    .top {
        top: -40px;
        left: -50%;
    }     
    .tooltip-text {
        visibility: hidden;
        position: absolute;
        z-index: 1;
        width: 565px;
        color: black;
        font-size: 12px;
        border: 1px solid black;
        background-color: #fff9f9c4;
        padding: 7px 8px 10px 8px;
    }
    @media (min-width: 520px) {
        .hover-text:hover .tooltip-text {
            visibility: visible;
        }
    }
    .hover-text {
        position: relative;
    }
    .gap-1{
        gap: 5px;
    }
    .zain-tooltip-text{
        display: none;
        width: 70%;
        position: absolute;
        bottom: 62%;
        right: 11%;
        color: black;
        font-size: 12px;
        border: 1px solid black;
        background-color: #fff9f9c4;
        padding: 5px;
        border-radius: 5px;
    }

    .tooltip-container:hover .zain-tooltip-text{
        display: block;
    }

    @media (max-width: 480px) {
        .tooltip-container:hover .zain-tooltip-text{
            display: block;
            width: 80%;
            left: 10%;
        }   
    }
    .font-s-38{
        font-size: 38px;
    }
.calorie-card {
        background: #fff;
        border-left: 6px solid var(--light-blue);
        border-radius: 12px;
        padding: 5px 15px;
        margin-bottom: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s, box-shadow 0.3s;
    }
    .calorie-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    .calorie-card .zain-tooltip-text{
        bottom: 100% !important
    }
    .result>*:not(:first-child){
        overflow: visible!important;
    }

/* ---- body-fat-percentage-calculator.blade.php ---- */
.blue{
        background: #1565C0
    }
    .teal{
        background: #006C61
    }
    .green{
        background: #00C853
    }
    .yellow{
        background: #FBC02D
    }
    .red{
        background: #FF1744
    }
    .scale-up{
        transform: scale(1.1)
    }
    @media (max-width: 767px){
        .scale-up{
            transform: scale(1.05)
        }
    }
    .radius-top{
        border-radius: 10px 10px 0px 0px;
    }
    .font-s-34{
        font-size: 34px;
    }
    .hover_div {
        transition: transform .2s;
    }
    .new_table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed; /* Ensures proper distribution of columns */
    }

    .font_w {
        font-weight: bold;
    }

    .active_tr{
        background-image: linear-gradient(45deg, #156ba1d0, #57b4eb) !important;
	}
    .active_tr td{
		color: white !important;
	}
	.click_me:hover{
        background-image: linear-gradient(45deg, #1670a7, #1670a7) !important;
	}
    .click_me:hover td{
        color: white !important;
	}
    .line-height{
        line-height: 28px;
    }
    .gap-2{
        gap: 15px;
    }
    .new_table .click_me:nth-child(odd) {
        background-color: #1670a712;
        /* color: #fff; */
    }
    .radius-top{
        border-radius: 10px 10px 0px 0px;
    }
    .font-s-34{
        font-size: 34px;
    }
    .hover_div {
        transition: transform .2s;
    }
    .new_table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    .font_w {
        font-weight: bold;
    }

    .content tbody tr:hover td p{
        color: white !important;
    }


    .text-light-green{
        color: #84D23C;
    }



    /* Apply borders to tbody cells */
    .top-table tbody tr:first-child {
        border-top: 8px solid white; /* Adds a visual gap */
    }
    .spacer-row td {
        height: 8px;
        border: none;
    }


    .top-table td {
        border: 1px solid #D4D4D4;
    }

    .table-wrapper {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #ddd;
    }

    .statistics td{
        font-size: 14px;
    }

    .text-secondary{
        color: #6c757d !important;
    }

    .bg-blue{
        background: #1670a7;
    }

    .br-top{
        border-radius: 10px 10px 0px 0px;
    }

    .first_c{
        color: #0D47A1;
        font-weight: bold;
    }

    .second_c{
        color: #00897B;
        font-weight: bold;
    }

    .third_c{
        color: #00C853;
        font-weight: bold;
    }

    .fourth_c{
        color: #ab9326;
        font-weight: bold;
    }

    .fifth_c{
        color: #FF1744;
        font-weight: bold;
    }

    .border-b {
        border-bottom: 2px solid #f2f2f2;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        padding-top: 100px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.4);
    }


   
    .modal-content {
        margin: auto;
        padding: 10px;
        width: 1000px;
        max-width: 100%;
        border-radius: 20px;
    }

    #method_info_modal .modal-content {
        width: 400px;
    }

    #image_modal .modal-content {
        width: 300px;
    }

    .m-t-35{
        margin-top: 35px;
    }

    .f-w-600{
        font-weight: 600;
    }

/* ---- pregnancy-calculator.blade.php ---- */
.calender_val{
        position: absolute;
        top: 17px;
        left: 11.5px
    }
    .inner_line{
        position: absolute;
        bottom: 3px;
        height: 4px;
        background: #fff;
    }
    .r_line,.r_line2,.r_line3{
        position: absolute;
        bottom: 3px;
        height: 4px;
        background: #1670a7;
        width: 0px;
        height: 7px;
        border-radius: 10px
    }
    .r_line{
        width: 10px;
    }
    .p_line{
        width: 100%;
        height: 50px;
        position: relative;
        margin-top: -20px;
        z-index: 0;
    }
    .res_img,.res_img1,.res_img2{
        position: relative;
        left: 0px;
        top: 12px;
        width: 23%;
        height: 100%;
    }
    .p_res_img,.p_res_img1,.p_res_img2{
        position: absolute;
        z-index: 3333;
        left: -12px;
    }
    .p_res_img1,.p_res_img2{
        display: none;
    }
    .trim_height{
        height: 215px;
    }
    .week_height{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 71.59px;
        line-height: 50px;
    }
    .orange_color{
        color: #CC6E29;
    }
    .green_color{
        color: #5F6D24;
    }
    .orange{
        background: ##FFCC80
    }
    .light-orange{
        background: #FFE0B2
    }
    .lime{
        background: #E6EE9C
    }
    .light-lime{
        background: #F0F4C3
    }
    .light-blue{
        background: #B3E5FC
    }
    .lighter-blue{
        background: #E1F5FE
    }
    .bg_blue_g{
	    background-image: linear-gradient(to left,#012432,#02598c)
    }
    .grey{
        background: #eee
    }
    .color_gray{
        color: #666666
    }
	@if(isset($detail['RemainingWeeks']) && $detail['RemainingWeeks']!='')
        @php $value=$detail['RemainingWeeks'] @endphp
        @if($value!=1 && $value!=2 && $value<7)
            .res_img{
                left: {{ 7.69 * $value }}%;
            }
            .r_line{
                width: {{ 7.69 * $value }}%;
            }
        @endif
        @if($value>=7 && $value<11)
            .res_img{
                left: {{ 7.69 * $value }}%;
            }
            .r_line{
                width: {{ 7.69 * $value }}%;
            }
        @endif
        @if($value>=11 && $value<14)
            .res_img{
                left: {{ 7.69 * $value }}%;
            }
            .r_line{
                width: {{ 7.69 * $value }}%;
            }
        @endif
        @if($value>=14 && $value<16)
            .p_res_img{
                display: none;
            }
            .p_res_img1{
                display: block;
            }
            .r_line{
                width: 100%;
            }
            .r_line2{
                width: 10px;
            }
        @endif
        @if($value>=16 && $value<24)
            .p_res_img{
                display: none;
            }
            .p_res_img1{
                display: block;
            }
            .r_line{
                width: 100%;
            }
            .res_img1{
                left: {{ 2.2 * $value }}%;
            }
            .r_line2{
                width: {{ 2.2 * $value }}%;
            }
        @endif
        @if($value>=24 && $value<27)
            .p_res_img{
                display: none;
            }
            .p_res_img1{
                display: block;
            }
            .r_line{
                width: 100%;
            }
            .res_img1{
                left: {{ 3.3 * $value }}%;
            }
            .r_line2{
                width: {{ 3.3 * $value }}%;
            }
        @endif
        @if($value==27)
            .p_res_img{
                display: none;
            }
            .p_res_img1{
                display: block;
            }
            .r_line{
                width: 100%;
            }
            .res_img1{
                left: 100%;
            }
            .r_line2{
                width: 100%;
            }
        @endif
        @if($value>=28 && $value<30)
            .p_res_img,.p_res_img1{
                display: none;
            }
            .p_res_img2{
                display: block;
            }
            .r_line,.r_line2{
                width: 100%;
            }
            .r_line3{
                width: 10px;
            }
        @endif
        @if($value>=30 && $value<36)
            .p_res_img,.p_res_img1{
                display: none;
            }
            .p_res_img2{
                display: block;
            }
            .r_line,.r_line2{
                width: 100%;
            }
            .res_img2{
                left: {{ 1.5 * $value }}%;
            }
            .r_line3{
                width: {{ 1.5 * $value }}%;
            }
        @endif
        @if($value>=36 && $value<39)
            .p_res_img,.p_res_img1{
                display: none;
            }
            .p_res_img2{
                display: block;
            }
            .r_line,.r_line2{
                width: 100%;
            }
            .res_img2{
                left: {{ 2 * $value }}%;
            }
            .r_line3{
                width: {{ 2 * $value }}%;
            }
        @endif
        @if($value==39 || $value==40)
            .p_res_img,.p_res_img1{
                display: none;
            }
            .p_res_img2{
                display: block;
            }
            .r_line,.r_line2,.r_line3{
                width: 100%;
            }
            .res_img2{
                left: 100%;
            }
        @endif
	@endif

/* ---- face-shape-calculator.blade.php ---- */
select {
        outline: none;
        border: 0;
        position: absolute;
        right: 17px;
        top: 17px;
    }

    .image {
        width: 100%;
        transition: transform 0.5s ease;
    }

    .zoomed {
        transform: scale(2);
    }

    .zoom-container {
        overflow: hidden;
        max-height: 400px;
        /* Adjust as needed */
        position: relative;
        transition: transform 0.5s ease;
    }

    .input {
        padding-right: 49px;
    }

    .f-w-bold {
        font-weight: bold;
    }


    .input-unit {
        cursor: pointer;
        position: absolute;
        right: 17px;
        top: 17px;
        user-select: none;
    }

    .units {
        position: absolute;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        z-index: 10;
        right: 0;
        top: 40px;
        min-width: 120px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .units p {
        margin: 0;
        padding: 8px 12px;
        cursor: pointer;
    }

    .units p:hover {
        background-color: #f5f5f5;
    }

    .error-message {
        color: #dc3545;
        font-size: 12px;
        margin-top: 5px;
        display: none;
    }

    @media (min-width: 768px) {

        /* Bootstrap md breakpoint */
        .border-md-bottom-0 {
            border-bottom: 0 !important;
        }
    }

    .rounded-10 {
        border-radius: 10px;
    }

    .text-muted {
        font-size: 12px;
    }

    .toolspan {
        position: relative;
        /* Add this */
        display: inline-block;
        /* Optional but helpful */
    }

    .tooltip {
        visibility: hidden;
        position: absolute;
        top: auto;
        width: 200px;
        /* Consider a fixed width instead of 100% */
        right: 0;
        background: #8D8D8D;
        border-radius: 5px;
        padding: 8px 12px;
        color: white;
        opacity: 0;
        bottom: 100%;
        /* Position above the icon */
        margin-bottom: 8px;
        /* Add some spacing */
        font-size: 12px;
        z-index: 1000;
        transition: opacity 0.2s ease;
        pointer-events: none;
        /* Prevent tooltip from interfering with hover */

        /* Center the tooltip */
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        /* Adjust width to content */
        max-width: 250px;
        min-width: 120px;
        /* Prevent too wide tooltips */
        text-align: center;
    }

    .toolspan:hover .tooltip {
        visibility: visible;
        opacity: 1;
    }

    @media (max-width: 480px) {
        .tooltip {
            left: 50%;
            right: auto;
            transform: translateX(-50%);
            width: auto;

        }
    }

    /*
    .input {
        padding-right: 49px;
        transition: all 0.3s ease;
        border: 1px solid #ddd !important;
        border-radius: 4px;
        padding: 10px 15px;
    } */

    .input:focus {
        outline: none;
        border-color: #1670a7 !important;
        /* box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1); */
    }
.loading-dots {
        display: inline-flex;
        align-items: center;
        height: 14px; /* Reduced from 20px */
    }

    .loading-dots .dot {
        display: inline-block;
        width: 4px; /* Reduced from 6px */
        height: 4px; /* Reduced from 6px */
        border-radius: 50%;
        background-color: #666;
        margin: 0 1.5px; /* Reduced from 2px */
        animation: dot-pulse 1.5s infinite ease-in-out;
    }

    .loading-dots .dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .loading-dots .dot:nth-child(2) {
        animation-delay: -0.16s;
    }

    @keyframes dot-pulse {
        0%, 80%, 100% {
            transform: scale(0.8);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }


    #reference_source_btn:hover {
        text-decoration: underline;
    }

   .reference-dropdown {
        position: absolute;
        top: 110%;
        right: 0;
        width: 420px;
        background: #ffffff;
        border-radius: 10px;
        padding: 14px 16px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.329);
        z-index: 1000;
    }

    .reference-list {
        margin: 0;
        padding-left: 18px;
    }

    .reference-list li {
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        margin-bottom: 10px;
    }

    .reference-list li:last-child {
        margin-bottom: 0;
    }

    .reference-list a {
        color: #2563eb; /* blue link */
        text-decoration: none;
        font-weight: 500;
    }

    .reference-list a:hover {
        text-decoration: underline;
    }

    .reference-list .authors {
        font-weight: 500;
        color: #111;
    }

    .reference-list .meta {
        color: #666;
        font-size: 13px;
    }

    #reference_source_btn img.arrow {
        transition: transform 0.1s ease;
    }

    #reference_source_btn.active img.arrow {
        transform: rotate(180deg);
    }

    @media (max-width: 500px) {
        .reference-dropdown {
            width: 300px;
        }
    }

    .input-unit {
        cursor: pointer !important;
        position: absolute ! important;
        right: 11px ! important;
        top: 14px !important;
        user-select: none;
    }

/* ---- height-calculator.blade.php ---- */
.pacetabs{
        left: 16.6%;
    }
    @media (max-width: 991px){
        .pacetabs{
            left: 0;
        }
    }
    @media (max-width: 380px) {
         .calculator-box{
             padding-right: 0rem;
             padding-left: 0rem;
         }
         .font-s-14{
            font-size: 12px;
         }
     }
     .velocitytab .v_active{
         border-bottom: 3px solid var(--light-blue);
     }
     .veloTabs:hover{
         background: #dcdcdc73;
     }
     .velocitytab .v_active strong{
         color: var(--light-blue);
     }
     .velocitytab p{
         position: relative;
         top: 2px
     }
     input[type="date"],input[type="time"]{
         min-width: 85%;
         margin: 0px auto;
     }
     .gap-10{
         gap: 20px;
     }
.example{
        cursor: pointer;
    }
    .new_textArea {
        outline: none;
        border: none;
        resize: none;
        overflow: hidden;
        width: 100%;
        font-size: 15px;
        box-sizing: border-box;
        line-height: 1.5;
        letter-spacing: .5px;
        background-color: #f5f5f5;
        max-width: 635px;
    }
    .new_textArea:empty::before {
        content: attr(aria-placeholder);
        color: gray;
        opacity: 0.6;
    }

    .icon_animation {
        display: inline-block;
        position: relative;
        width: 100%;
        height: 80px;
    }
    .icon_animation samp {
        display: inline-block;
        position: absolute;
        left: 0; /* Adjusted to start from the left edge */
        background: #EEF1F5;
        animation: icon_animation 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
        height: 8px;
    }
    .main_area .icon_sty:hover .icon_animation samp {
        background: #fff;
    }

    .icon_animation samp:nth-child(1) {
        top: 10px;
        animation-delay: -0.24s;
    }
    .icon_animation samp:nth-child(2) {
        top: 28px;
        left: 0; /* Starts from the left edge */
        animation-delay: -0.12s;
    }
    .icon_animation samp:nth-child(3) {
        top: 47px;
        animation-delay: 0s;
    }

    .icon_animation samp:nth-child(4) {
        top: 66px; /* Adjusted for 4th element */
        animation-delay: 0.12s; /* Slightly delayed */
    }
    .icon_animation samp:nth-child(5) {
        top: 85px; /* Adjusted for 5th element */
        animation-delay: 0.24s; /* Further delayed */
    }

    @keyframes icon_animation {
        0% {
            left: 0;
            width: 0;
        }
        50%, 100% {
            left: 0; /* Stays at the left edge */
            width: 100%; /* Expands to full width */
        }
    }

    #responseContainer{
        line-height: 2
    }

    #responseContainer ol,#responseContainer ul{
        padding-left: 20px
    }

    .mere_li p, .mere_li li:not(:has(p)){
        font-size: 17px;
        letter-spacing: .5px;
        line-height: 1.5;
        color: #000000;
    }

    .mere_li p:not(:first-child),.mere_li ol p,.mere_li ul p, .mere_li li:not(:has(p)) {
        margin-top: 12px;
    }

    #responseContainer ol,#responseContainer ul{
        padding-left: 20px
    }

    #responseContainer h3,#responseContainer h2{
        font-size: 18px;
        font-weight: 600 !important;
        margin-top: 12px;
        letter-spacing: .5px;
        line-height: 1.5;
        color: #1670a7;
    }
/* Scroll Wrapper */
    .scroll-wrapper {
        overflow-x: auto;
        width: 100%;
    }
    
    /* Chart Container */
    .chart-container {
        position: relative;
        width: 100%;
        min-width: 100%; /* Remove fixed min-width */
        margin: 0 auto;
        font-family: Arial, sans-serif;
        background-color: white;
        padding: 5px 10px; /* Reduced padding for small screens */
        border-radius: 10px;
    }
    
    /* Chart Line */
    .chart-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #d8d8d8;
        padding: 5px 0;
    }

    .chart-line span {
        font-size: 14px;
    }
    
    .chart-line:last-child {
        border-bottom: none;
        margin-bottom: 10px;
    }
    
    .cm {
        text-align: left;
    }
    
    .ft-in {
        text-align: right;
    }
    
    /* Person Images */
    .person-image {
        position: absolute;
        bottom: 5px;
        z-index: 1;
        object-fit: contain;
    }
    
    /* Person Labels */
    .person-label {
        position: absolute;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
        font-weight: bold;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 4px 8px;
        border-radius: 5px;
        white-space: nowrap;
    }
    
    /* Image Positioning */
    .child-image { left: 28%; }
    .father-image { left: 45%; }
    .mother-image { left: 61%; }
    
    .image_text {
        position: absolute;
        left: 50%;
        bottom: 0;
        background-color: #b6b6b6;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
    }
    
    .mother { left: 62% }
    .child { left: 30% }
    .father { left: 47% }
    
    /* Loader */
    .loader {
        width: 50px;
        height: 50px;
        border: 5px solid #ffffff;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .chart-container {
            padding: 5px; /* Further reduce padding */
        }

        .chart-line span {
            font-size: 12px; /* Smaller font size for small screens */
        }

        .image_text {
            font-size: 12px; /* Smaller font size for labels */
        }

        .person-image {
            width: 40px; /* Reduce image size */
            bottom: 3px;
        }

        .loader {
            left: 40%;
            top: 40%;
        }
    }

    @media (max-width: 480px) {
        .chart-line {
            padding: 3px 0; /* Reduce padding */
        }

        .chart-line span {
            font-size: 10px; /* Even smaller font size */
        }

        .image_text {
            font-size: 10px; /* Smaller font size for labels */
            padding: 3px 6px; /* Reduce padding */
        }

        .person-image {
            width: 30px; /* Further reduce image size */
            bottom: 3px;
        }

        .loader {
            left: 40%;
            top: 40%;
        }
    }

    .text-orange{
        color: #ff4500c4;
    }

    .font-s-38 {
        font-size: 38px;
    }
    .font-s-22 {
        font-size: 22px;
    }
/* Scroll Wrapper */
    .scroll-wrapper {
        overflow-x: auto;
        width: 100%;
    }
    
    /* Chart Container */
    .chart-container-2 {
        position: relative;
        width: 100%;
        min-width: 100%; /* Remove fixed min-width */
        margin: 0 auto;
        font-family: Arial, sans-serif;
        background-color: white;
        padding: 5px 10px; /* Reduced padding for small screens */
        border-radius: 10px;
    }
    
    /* Chart Line */
    .chart-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #d8d8d8;
        padding: 5px 0;
    }

    .chart-line span {
        font-size: 14px;
    }
    
    .chart-line:last-child {
        border-bottom: none;
        margin-bottom: 10px;
    }
    
    .cm {
        text-align: left;
    }
    
    .ft-in {
        text-align: right;
    }
    
    /* Person Images */
    .person-image-2 {
        position: absolute;
        bottom: 5px;
        z-index: 1;
        object-fit: contain;
    }
    
    /* Person Labels */
    .image_text-2 {
        position: absolute;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
        font-weight: bold;
        background: #b6b6b6;
        color: #fff;
        padding: 4px 8px;
        border-radius: 5px;
        white-space: nowrap;
    }
    
    /* Image Positioning */
    .girl-image-2 { left: 21%; }
    .boy-image-2 { left: 35%; }
    .father-image-2 { left: 51%; }
    .mother-image-2 { left: 67%; }
    
    .girl-2 { left: 27%; }
    .boy-2 { left: 40%; }
    .father-2 { left: 56%; }
    .mother-2 { left: 73%; }
    
    /* Loader */
    .loader {
        height: 50px;
        border: 5px solid #ffffff;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .chart-container-2 {
            padding: 5px; /* Further reduce padding */
        }

        .chart-line span {
            font-size: 12px; /* Smaller font size for small screens */
        }

        .image_text-2 {
            font-size: 12px; /* Smaller font size for labels */
        }

        .person-image-2 {
            width: 40px; /* Reduce image size */
            bottom: 3px;
        }

        .loader {
            left: 40%;
            top: 40%;
        }
    }

    @media (max-width: 480px) {
        .chart-line {
            padding: 3px 0; /* Reduce padding */
        }

        .chart-line span {
            font-size: 10px; /* Even smaller font size */
        }

        .image_text-2 {
            font-size: 10px; /* Smaller font size for labels */
            padding: 3px 6px; /* Reduce padding */
        }

        .person-image-2 {
            width: 30px; /* Further reduce image size */
            bottom: 3px;
        }

        .loader {
            left: 40%;
            top: 40%;
        }
    }

/* ---- water-intake-calculator.blade.php ---- */
.text-orange {
        color: #ff4500c4;
    }
.result-card {
        background: white;
        color: rgb(0, 0, 0);
        padding: 1px 50px;
        border-radius: 16px;
        text-align: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    }


    .celebration {
        text-align: center;
        margin: 1rem 0;
    }

    .celebration-emoji {
        font-size: 2rem;
        animation: bounce 1s infinite;
    }

    .water-amount {
        font-size: 3rem;
        font-weight: 700;
    }

    .progress-bar {
        background: #e2e8f0;
        height: 30px;
        border-radius: 10px;
        overflow: hidden;
        margin: 1rem 0;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #48bb78, #38a169);
        border-radius: 10px;
        transition: width 1s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 0.8rem;
    }

    .schedule-timeline {
        background: #ffffff;
        border-radius: 12px;
        padding: 8px 15px;
    }

    .schedule-item {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .schedule-item:last-child {
        border-bottom: none;
    }

    .schedule-time {
        font-weight: 600;
        color: #1670a7;
        width: 80px;
        flex-shrink: 0;
    }

    .schedule-activity {
        color: #4a5568;
        margin-left: 1rem;
    }

    .water-tracker {
        padding: 1rem;
    }

    .glasses-consumed {
        font-size: 1.5rem;
        font-weight: 700;
        color: #000;
    }

    .tracker-progress {
        background: #e2e8f0;
        height: 25px;
        border-radius: 12px;
        overflow: hidden;
        margin: 1rem 0;
    }

    .tracker-fill {
        height: 100%;
        background: linear-gradient(90deg, #48bb78, #38a169);
        border-radius: 12px;
        transition: width 0.5s ease;
        position: relative;
    }

    .tracker-percentage {
        font-size: 1.1rem;
        font-weight: 600;
        color: #ff4500c4;
    }

    .tracker-controls {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .glass-btn,
    .reset-btn {
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .glass-btn {
        background: linear-gradient(135deg, #48bb78, #38a169);
        color: white;
    }

    .glass-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
    }

    .glass-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .reset-btn {
        background: #e2e8f0;
        color: #4a5568;
    }

    .reset-btn:hover {
        background: #cbd5e0;
    }

    @media (max-width: 768px) {
        .result-card {
            padding: 15px 20px;
        }

        .schedule-timeline {
            padding: 10px;
        }

        .schedule-item {
            flex-direction: column;
            align-items: flex-start;
        }

        .schedule-time {
            width: 100%;
            margin-bottom: 5px;
        }

        .schedule-activity {
            margin-left: 0;
            margin-top: 0;
        }

        .tracker-controls {
            flex-direction: column;
            align-items: center;
        }

        .glass-btn,
        .reset-btn {
            width: 100%;
            max-width: 200px;
        }
    }

    @media (max-width: 480px) {
        .result-card {
            padding: 10px 15px;
        }

        .schedule-timeline {
            padding: 8px;
        }

        .schedule-time {
            font-size: 0.8rem;
        }

        .schedule-activity {
            font-size: 0.8rem;
            min-width: 150px;
        }

        .glass-btn,
        .reset-btn {
            min-width: 100px;
            padding: 0.5rem 1rem;
        }
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }


    .guidelines-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .guidelines-table th {
        background: linear-gradient(90deg, #1670a7, #094365);
        color: white;
        padding: 1rem 0.75rem;
        text-align: center;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .guidelines-table td {
        padding: 0.75rem;
        text-align: center;
        border: 1px solid #e2e8f0;
        color: #4a5568;
    }

    .guidelines-table tbody tr:nth-child(even) {
        background: #f7fafc;
    }

    .guidelines-table tbody tr:hover {
        background: #edf2f7;
        transition: background 0.3s ease;
    }

    .guidelines-table .highlight-row {
        background: #1670a7 !important;
        font-weight: 600;

    }

    .guidelines-table .highlight-row td {
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }


    .table-notes {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .note-item {
        background: #f7fafc;
        padding: 1rem;
        border-radius: 8px;
        /* border-left: 4px solid #1670a7 !important; */
        color: #4a5568;
        font-size: 0.9rem;
    }

    #personalizedAmount {
        color: #1670a7;
        font-weight: 700;
    }



    @media (max-width: 768px) {
        .guidelines-table {
            font-size: 0.8rem;
        }

        .guidelines-table th,
        .guidelines-table td {
            padding: 0.5rem 0.25rem;
        }

        .table-notes {
            gap: 0.5rem;
        }

        .note-item {
            padding: 0.75rem;
            font-size: 0.85rem;
        }
    }
.ai-section h3 {
        color: #4a5568;
        margin-bottom: 1rem;
        font-size: 1.3rem;
        font-weight: 700;
    }

    /* .ai-container {
        background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
        border-radius: 16px;
        padding: 2rem;
        border: 2px solid #e2e8f0;
    } */

    .ai-chat-area {
        background: white;
        border-radius: 12px;
        margin-bottom: 2rem;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        font-size: 14px;
    }

    .ai-messages {
        max-height: 400px;
        overflow-y: auto;
        padding: 1rem;
    }

    .ai-message {
        display: flex;
        margin-bottom: 1rem;
        animation: fadeInUp 0.3s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

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

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

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

    .ai-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }

    .ai-message.user .ai-avatar {
        background: #1670a7;
        margin-right: 0;
        margin-left: 0.75rem;
        order: 2;
    }

    .ai-message.assistant .ai-avatar {
        background: linear-gradient(135deg, #48bb78, #38a169);
    }

    .ai-content {
        max-width: 70%;
        padding: 1rem 1.25rem;
        border-radius: 18px;
        position: relative;
    }

    .ai-message.user .ai-content {
        background: #1670a7;
        color: white;
        border-bottom-right-radius: 6px;
    }

    .ai-message.user .ai-content p {
        color: white;
    }

    .ai-message.assistant .ai-content {
        background: #f7fafc;
        color: #4a5568;
        border: 1px solid #e2e8f0;
        border-bottom-left-radius: 6px;
    }

    .ai-content p {
        margin: 0;
        line-height: 1.5;
    }

    .ai-input-area {
        display: flex;
        padding: 1rem;
        background: #f7fafc;
        border-top: 1px solid #e2e8f0;
        gap: 0.75rem;
    }

    .ai-input-area input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 25px;
        font-size: 0.95rem;
        background: white;
    }

    .ai-input-area input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .ai-send-btn {
        padding: 0.75rem 1.5rem;
        background: #1670a7;
        color: white;
        border: none;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .ai-send-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

    .ai-send-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .ai-sample-questions h4 {
        color: #4a5568;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .sample-questions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 0.75rem;
    }

    .sample-question {
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 1rem;
        text-align: left;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        color: #4a5568;
        font-weight: 500;
    }

    .sample-question:hover {
        border-color: #667eea;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .ai-typing {
        display: none;
        align-items: center;
        margin-bottom: 1rem;
    }

    .ai-typing.active {
        display: flex;
    }

    .typing-indicator {
        display: flex;
        align-items: center;
        padding: 1rem 1.25rem;
        background: #f7fafc;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        border-bottom-left-radius: 6px;
    }

    .typing-dots {
        display: flex;
        gap: 4px;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background: #cbd5e0;
        border-radius: 50%;
        animation: typingAnimation 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: -0.16s;
    }

    @keyframes typingAnimation {

        0%,
        80%,
        100% {
            transform: scale(0.8);
            opacity: 0.5;
        }

        40% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @media (max-width: 640px) {
        /* .ai-container {
            padding: 1.5rem;
        } */

        .sample-questions-grid {
            grid-template-columns: 1fr;
        }

        .ai-content {
            max-width: 85%;
        }

        .ai-input-area {
            flex-direction: column;
            gap: 0.5rem;
        }

        .ai-send-btn {
            align-self: flex-end;
            padding: 0.75rem 2rem;
        }
    }

    .ansswer-box{
        background: #1670a712 !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    background: #48bb78;
}

.toast-notification.warning {
    background: #ed8936;
}

.toast-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    font-weight: 800;
    float: right;
   
}
.ansswer-box {
            margin-top: 20px;
        
        }

        .page-water-intake-calculator.calculator-box{
            background: white;
        }

/* ---- height-comparison.blade.php ---- */
.chart-n-container {
        height: 400px; /* Reduced from default height */
        position: relative;
    }
    
    .main-side {
        max-width: 100% !important;
        padding: 10px !important;
    }

    body {
        overflow-x: hidden;
        min-width: 320px;
    }

    /* Inline input error styling */
    .input-error {
        color: #d32f2f;
        font-size: 12px;
        margin-top: 4px;
        display: block;
    }
@media (max-width: 768px) {
        .calculator-box {
            padding: 2px !important;
        }
    }
    .n-container {
        max-width: 100%;
        margin: 0 auto;
        background-color: white;
        border-radius: 12px;
        padding: 15px 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }

    .chart-h1 {
        text-align: center;
        color: #333;
        margin: 10px 0 20px;
        width: 100%;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .comparison-form {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        flex: 1 1 350px;
    }

    .person-input {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        position: sticky;
        top: 20px;
    }

    h3 {
        margin-bottom: 15px;
        color: #444;
    }

    .gender-selector {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .gender-btn {
        flex: 1;
        padding: 10px;
        border: 2px solid #ddd;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .gender-btn.active {
        background-color: #1670a7;
        color: white;
        border-color: #1670a7;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
    }

    input[type="text"],
    input[type="number"] {
        width: 100%;
        padding: 10px;
        border: 2px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
    }



    .unit-input {
        flex: 1;
        position: relative;
    }

    .unit-input span {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
    }


    .avatar-selector {
        margin-bottom: 15px;
    }

    .avatar-selector h4 {
        margin-bottom: 15px;
        color: #555;
    }

    .avatar-options {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .avatar-option-btn {
        flex: 1;
        padding: 8px;
        border: 2px solid #ddd;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .avatar-option-btn.active {
        background-color: #1670a7;
        color: white;
        border-color: #1670a7;
    }

    .avatar-colors {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        margin-bottom: 15px;
        align-items: center;
    }

    .avatar-color {
        width: 40px;
        height: 25px;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .avatar-color.active {
        border-color: #1670a7;
        transform: scale(1.1);
    }

    .custom-color-picker {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .pencil-icon {
        width: 40px;
        height: 25px;
        background-color: #f8f9fa;
        border: 2px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: all 0.3s ease;
        user-select: none;
    }

    .pencil-icon:hover {
        background-color: #e9ecef;
        border-color: #1670a7;
        transform: scale(1.05);
    }

    .color-picker-input {
        width: 40px;
        height: 25px;
        padding: 0;
        border: 2px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .color-picker-input.show {
        opacity: 1;
        visibility: visible;
    }

    .color-picker-wrapper {
        position: relative;
        display: inline-block;
    }

    .custom-image-upload {
        margin-bottom: 15px;
    }

    .custom-image-upload label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-size: 14px;
    }

    .custom-image-upload input[type="file"] {
        width: 100%;
        padding: 8px;
        border: 2px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }

    .image-preview {
        margin-top: 15px;
        text-align: center;
    }

    .image-preview img {
        max-width: 100%;
        max-height: 150px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .remove-btn {
        padding: 6px 12px;
        background-color: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s ease;
    }

    .remove-btn:hover {
        background-color: #c82333;
    }

    .add-btn {
        width: 100%;
        padding: 12px;
        background-color: #1670a7;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .add-btn:hover {
        background-color: #0056b3;
    }

    .comparison-view {
        flex: 1;
    }

    .chart-n-container {
        width: 100%;
        height: 440px;
        margin: 15px 0;
        background-color: white;
        min-height: 280px;
        overflow: hidden;
        position: relative;
        display: flex;
        /* justify-content: center;
        align-items: center; */
    }

    .controls {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        flex-wrap: wrap;
        margin: 8px 0 15px;
    }

    /* Download dropdown */
    .download-menu-wrapper {
        position: relative;
        display: inline-block;
    }

    .download-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        padding: 6px;
        display: none;
        z-index: 2000;
        min-width: 140px;
    }

    .download-menu.show {
        display: block;
    }

    .download-menu button {
        width: 100%;
        background: #fff;
        border: none;
        text-align: left;
        padding: 8px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

    .download-menu button:hover {
        background: #f3f4f6;
    }

    .control-btn {
        padding: 8px 15px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s ease;
        min-width: auto;
        text-align: center;
        color: #555;
    }

    /* .control-btn:hover {
        background-color: #f8f9fa;
    } */

    .control-btn.primary {
        background-color: #1670a7;
        color: white;
        border-color: #1670a7;
        padding: 8px 15px;
    }

    /* .control-btn.primary:hover {
        background-color: #0056b3;
    } */

    @media (max-width: 768px) {
        /* .n-container {
            flex-direction: column;
            padding: 5px;
            gap: 10px;
        } */

        .comparison-form {
            width: 100%;
            max-width: 100%;
            padding: 0;
        }

        .chart-n-container {
            height: 400px;
            margin: 8px 0;
            min-height: 250px;
        }

        .person-input {
            padding: 12px 8px;
            position: relative;
            top: auto;
        }

        .gender-selector {
            flex-wrap: wrap;
            gap: 5px;
        }

        .gender-btn {
            min-width: calc(50% - 3px);
            margin-bottom: 5px;
            padding: 8px 5px;
            font-size: 14px;
        }

        .controls {
            flex-wrap: wrap;
            gap: 5px;
            margin: 10px 0;
        }

        .control-btn {
            flex: 1 1 calc(50% - 10px);
            margin: 3px;
            padding: 8px 5px;
            font-size: 13px;
            min-width: 120px;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            font-size: 14px;
            margin-bottom: 5px;
        }

        input[type="text"],
        input[type="number"] {
            padding: 8px 10px;
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .chart-n-container {
            height: 400px;
            margin: 5px 0;
        }

        .person-entry {
            padding: 8px 10px;
            flex-direction: row;
            align-items: center;
            margin: 4px 0;
        }

        .person-actions {
            margin-top: 0;
            width: auto;
            display: flex;
            justify-content: flex-end;
        }

        .avatar-options {
            flex-wrap: wrap;
            gap: 5px;
        }

        .avatar-option-btn {
            min-width: calc(50% - 3px);
            padding: 6px 4px;
            font-size: 13px;
        }

        .person-name {
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }

        .person-height {
            font-size: 13px;
        }
    }

    @media (max-width: 475px) {
        .n-container{
            gap: 0 !important;
        }
        .chart-n-container {
            height: 400px;
            margin: 0 -10px;
        }
        .comparison-view{
            justify-items: center !important;
        }
        .comparison-form {
            padding: 5px;
            max-width: 100%;
        }
        
        .person-input {
            padding: 10px;
            position: relative;
            top: 0;
        }
        
        .gender-btn, .avatar-option-btn {
            padding: 8px 5px;
            font-size: 14px;
        }
        
        .control-buttons {
            flex-direction: column;
            gap: 8px;
        }
        
        .control-buttons button {
            width: 100%;
            padding: 8px;
            font-size: 14px;
        }
        
        .input-group {
            margin-bottom: 15px;
        }
        
        input[type="text"],
        input[type="number"] {
            padding: 8px;
            font-size: 14px;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        
        .stat-item {
            padding: 8px;
        }

        .control-btn {
            min-width: 100px;
            padding: 6px 4px;
            font-size: 12px;
        }

        .person-name {
            max-width: 120px;
        }
    }

    @media (max-width: 300px) {
        .chart-n-container {
            height: 220px;
            margin: 0;
            border-radius: 0;
            padding: 0 2px;
        }

        .n-container {
            padding: 3px 0;
            border-radius: 0;
        }

        .person-input {
            padding: 8px 6px;
            border-radius: 0;
        }

        .control-btn {
            min-width: 80px;
            padding: 4px 2px;
            font-size: 10px;
            margin: 1px;
            white-space: nowrap;
        }

        .person-name {
            max-width: 80px;
            font-size: 12px;
        }

        .person-height {
            font-size: 11px;
        }

        .gender-btn {
            font-size: 12px;
            padding: 6px 2px;
        }

        .input-group label {
            font-size: 12px;
            margin-bottom: 3px;
        }

        input[type="text"],
        input[type="number"] {
            padding: 6px 8px;
            font-size: 13px;
        }
    }

    /* Person List Styles */
    .person-list {
        max-height: 145px;
        overflow-y: auto;
        border: 1px solid #e0e6ed;
        border-radius: 12px;
        padding: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin: 15px 0;
        -webkit-overflow-scrolling: touch;
    }

    .person-list::-webkit-scrollbar {
        width: 6px;
    }

    .person-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .person-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

    .person-list::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    .person-entry {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        background-color: white;
        margin: 6px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .person-entry:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .person-entry:last-child {
        border-bottom: none;
    }

    .person-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .person-name {
        font-weight: 600;
        font-size: 16px;
        color: #2c3e50;
        margin: 0;
    }

    .person-height {
        font-size: 14px;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .person-height::before {
        content: "📏";
        font-size: 12px;
    }

    .person-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .person-actions img {
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    /* Edit and Delete Button Styles */
    .edit-person-btn {
        padding: 8px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        position: relative;
        overflow: hidden;
    }

    .edit-person-btn:hover {
        background-color: #218838;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }

    .edit-person-btn svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .delete-person-btn {
        padding: 8px;
        background-color: #dc3545;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        position: relative;
        overflow: hidden;
    }

    .delete-person-btn:hover {
        background-color: #c82333;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }

    .delete-person-btn svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    /* Empty state styling */
    .person-list-empty {
        text-align: center;
        padding: 40px 20px;
        color: #6c757d;
        font-style: italic;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 12px;
        border: 2px dashed #dee2e6;
    }

    .person-list-empty::before {
        content: "👥";
        display: block;
        font-size: 32px;
        margin-bottom: 15px;
        opacity: 0.5;
    }

    /* Edit Modal Styles */
    .edit-modal-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .edit-modal {
        background-color: white;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        width: 90%;
        max-width: 400px;
        position: relative;
    }

    .edit-modal h4 {
        margin-bottom: 15px;
        color: #333;
        text-align: center;
    }

    .edit-modal label {
        display: block;
        margin-bottom: 8px;
        margin-top: 15px;
        color: #555;
        font-weight: 500;
    }

    .edit-modal input[type="text"],
    .edit-modal input[type="number"] {
        width: 100%;
        padding: 10px;
        border: 2px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .edit-modal input:focus {
        outline: none;
        border-color: #1670a7;
    }

    .close-edit-modal {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #999;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-edit-modal:hover {
        color: #333;
    }

    .edit-modal-actions {
        display: flex;
        gap: 10px;
        margin-top: 25px;
        justify-content: center;
    }

    .edit-modal-actions .save-edit {
        background-color: #1670a7;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    .edit-modal-actions .save-edit:hover {
        background-color: #0056b3;
    }

    .edit-modal-actions .close-edit-modal {
        position: static;
        background-color: #6c757d;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
        width: auto;
        height: auto;
    }

    .edit-modal-actions .close-edit-modal:hover {
        background-color: #545b62;
        color: white;
    }

    /* Statistics Section Styles */
    .stats-section {
        margin: 15px 0;
        padding: 30px 25px;
        background: #ffffff;
        border-radius: 8px;
        border: 1px solid #e9ecef;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        position: relative;
        overflow: hidden;
    }

    .stats-section h4 {
        margin: 0 0 15px 0;
        color: #495057;
        text-align: left;
        font-size: 16px;
        font-weight: 600;
        position: relative;
        padding-bottom: 0;
    }

    .stats-section h4::after {
        display: none;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        align-items: center;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
        border: none;
        transition: none;
        text-align: center;
        position: relative;
        overflow: hidden;
        min-height: auto;
    }

    .stat-item::before {
        display: none;
    }

    #tallestPerson {
        font-size: 18px;
        color: #28a745;
        font-weight: 700;
        margin-top: 5px;
    }

    #shortestPerson {
        font-size: 18px;
        color: #fd7e14;
        font-weight: 700;
        margin-top: 5px;
    }

    #totalPersons {
        font-size: 18px;
        color: #007bff;
        font-weight: 700;
        margin-top: 5px;
    }

    #averageHeight {
        font-size: 18px;
        color: #6f42c1;
        font-weight: 700;
        margin-top: 5px;
    }

    .stat-label {
        font-weight: 500;
        color: #6c757d;
        font-size: 12px;
        margin-bottom: 5px;
        text-transform: none;
        letter-spacing: 0;
        position: relative;
        z-index: 2;
    }

    .stat-value {
        font-weight: 700;
        color: #007bff;
        font-size: 24px;
        line-height: 1.2;
        position: relative;
        z-index: 2;
        word-break: break-word;
    }

    /* Add icon styles for stats */
    .stat-item .stat-icon {
        font-size: 32px;
        margin-bottom: 15px;
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .stat-item:hover .stat-icon {
        transform: scale(1.1);
        opacity: 1;
    }

    .stat-item:nth-child(1) .stat-icon {
        color: #667eea;
    }

    .stat-item:nth-child(2) .stat-icon {
        color: #f5576c;
    }

    .stat-item:nth-child(3) .stat-icon {
        color: #4facfe;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .stats-section {
            margin: 10px 0;
            padding: 12px 10px;
        }

        .stats-section h4 {
            font-size: 15px;
            margin-bottom: 12px;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
        }

        .stat-item {
            padding: 8px 5px;
            min-height: auto;
            border-radius: 6px;
        }

        .stat-icon {
            font-size: 14px;
            margin-right: 4px;
        }

        .stat-value {
            font-size: 14px;
        }

        .stat-label {
            font-size: 11px;
        }

        .stat-item:nth-child(4),
        .stat-item:nth-child(5) {
            grid-column: span 1;
        }

        .stat-item:nth-child(5) {
            grid-column: 2 / 3;
        }

        @media (max-width: 400px) {
            .stats-section {
                padding: 10px 5px;
            }

            .stats-grid {
                gap: 4px;
            }

            .stat-item {
                padding: 6px 3px;
            }

            .stat-value {
                font-size: 13px;
            }

            .stat-label {
                font-size: 10px;
            }
        }

        @media (max-width: 360px) {
            .stat-value {
                font-size: 12px;
            }

            .stat-icon {
                font-size: 12px;
            }
        }

        @media (max-width: 320px) {
            .stats-section {
                padding: 8px 2px;
                margin: 5px 0;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 3px;
            }

            .stat-item {
                padding: 4px 2px;
                min-width: 0;
            }

            .stat-value {
                font-size: 11px;
            }

            .stat-label {
                font-size: 9px;
            }

            .stat-icon {
                font-size: 11px;
                margin-right: 2px;
            }
        }

        .stat-value {
            font-size: 20px;
        }

        .stat-label {
            font-size: 11px;
        }
    }

    .personList {
        max-height: 163px;
        overflow-y: auto;
    }



    .person-avatar {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        cursor: pointer;
        text-align: center;
    }

    .person-avatar:hover {
        z-index: 100;
    }

    .person-actions {
        display: none;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        gap: 5px;
        pointer-events: auto;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        padding: 5px;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        border: 1px solid #ddd;
    }

    .person-avatar:hover .person-actions,
    .person-avatar .person-actions:hover {
        display: flex;
    }

    .person-actions button {
        background: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        min-width: 50px;
    }

    .person-actions button.delete-person {
        background: #f44336;
    }

    .person-actions button.delete-person:hover {
        background: #d32f2f;
    }

    .person-actions button.edit-person:hover {
        background: #45a049;
    }

    .bg-blue {
        background-color: #1670a7;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 18px;
        font-weight: 500;
        min-width: 50px;
    }
    
    @media (max-width: 480px) {
        .bg-blue {
            font-size: 12px;
            padding: 8px 15px;
            
        }
    }
