﻿body {
    background-color: #f4fdf9;
    font-family: 'Segoe UI', sans-serif;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    /*margin-bottom: 30px;*/
}

.card-header {
    background: #bce6d0!important;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.card-body {
    padding: 20px;
}



.meal-icon {
    font-size: 1.5rem;
}

#nutritionSummary {
    padding: 10px;
    border-radius: 10px;
    background-color: #e7fbe9;
    font-size: 0.95rem;
}

.food-box {
    padding: 10px;
    background: #f0fff3;
    border-left: 5px solid #198754;
    margin-bottom: 8px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .food-box .remove-btn {
        color: #dc3545;
        font-size: 1.2rem;
        cursor: pointer;
    }

.progress {
    background-color: #e9ecef;
    border-radius: 20px;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 20px;
}

.time-input-container {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
}

#canvas {
    width: 100%;
    max-width: 400px; /* Maximum width for the canvas */
    height: 400px; /* Fixed height for the canvas */
    border: 1px solid #ccc;
    background-color: #f8f9fa;
}

/* Ensure the modal is responsive */
@media (max-width: 767px) {
    #canvas {
        max-width: 100%; /* Full width on mobile */
        height: 300px; /* Adjust height for smaller screens */
    }

    #cropImageModal .modal-dialog {
        max-width: 100%; /* Make modal full width on mobile */
    }
}

.food-box {
    cursor: move;
    transition: background 0.2s;
}

.ui-sortable-placeholder {
    background: #e0ffe0;
    border: 2px dashed #198754;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 10px;
    visibility: visible !important;
}

.food-box.ui-sortable-helper {
    background: #d1ffe0 !important; /* While dragging */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.AddedItems {
    min-height: 50px;
}

.remove-btn, .add-btn {
    cursor: pointer;
}

.remove-btn {
    color: #dc3545;
}

.add-btn {
    color: #28a745;
}

.form-section-title {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.search-results {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc; /* Optional: for visibility */
    padding: 0;
    margin-top: 5px;
    z-index: 9999;
    background-color: #fff;
    position: absolute; /* Ensure dropdown-like behavior */
    width: 100%; /* Match the input width */
    list-style: none;
}



.recommendation-row {
    margin-bottom: 10px;
}

    .recommendation-row textarea {
        border-radius: 10px;
    }


.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .card-hover:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.cert-box {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    transition: 0.3s;
}

    .cert-box:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transform: scale(1.03);
    }




.custom-pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f1f1f1;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

    .custom-pagination a:hover {
        background: #498664;
        color: white;
    }

    .custom-pagination a.active {
        background: #498664 !important; /* Bootstrap 'success' */
        color: white !important;
        border: 1px solid #498664;
    }

.custom-pagination span[disabled] {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    color: #999;
}

.card-toggle-header {
    cursor: pointer;
    user-select: none;
}

    .card-toggle-header:hover {
        background-color: #f1f1f1;
    }

.qa-item {
    background: #f9f9f9;
    border-left: 5px solid #198754; /* Bootstrap success green */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    .qa-item strong {
        display: inline-block;
        width: 100px;
        color: #198754;
    }

    .qa-item .question {
        margin-bottom: 5px;
        font-weight: 500;
    }

    .qa-item .answer {
        color: #333;
    }

.card-header h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 0;
}


.otp-input {
    width: 40px;
    height: 40px;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    .otp-input:focus {
        border-color: #28a745;
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
        outline: none;
    }

.error-field {
    border: 2px solid #dc3545 !important; /* Bootstrap danger color */
    background-color: #f8d7da !important; /* Light red background */
}

.form-group {
    position: relative;
}

.eyebtn {
    position: absolute;
    right: 5px;
    bottom: 4px;
    padding: 1px 5px;
    border: none;
}

.food-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #28a745;
}

    .food-card:hover {
        transform: translateY(-6px);
        background: linear-gradient(135deg, #e6ffe6, #ffffff);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        animation: pulseCard 0.4s ease-in-out;
    }

    .food-card img {
        transition: transform 0.3s ease;
    }

    .food-card:hover img {
        transform: scale(1.05);
    }

.search-results {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc; /* Optional: for visibility */
    padding: 0;
    margin-top: 5px;
    z-index: 9999;
    background-color: #fff;
    position: absolute; /* Ensure dropdown-like behavior */
    width: 100%; /* Match the input width */
    list-style: none;
}


.main-card {
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    background-color: #ffffff;
    padding: 30px;
}

.plan-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

    .plan-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.plan-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .plan-price i {
        cursor: pointer;
        color: #6c757d;
    }

        .plan-price i:hover {
            color: #0d6efd;
        }

.list-group-item {
    background-color: #f9f9f9;
    font-size: 0.95rem;
}

/**18-11-25**/

.newbg {
	background: #2da164;
}
.bgenewin {
    background: linear-gradient(135deg, #2da164, #0a622a);
    border: solid 1px #d8d8d8;
}
.app-footer {
    font-size: 12px;
}
.sidebar-brand a.brand-link img {
    max-height: 70px!important;
    max-width: 100%;
}
.sidebar-brand .brand-link {
    background: transparent;
}
.sidebar-brand .brand-link .brand-image {
    width: auto!important;
}
button.fw-bold {
    font-weight: 600!important;
}
.btn:hover {
    color: #fff!important;
    background-color: #2da164!important;
    border-color: #2da164!important;
}
.bgl {
	background: #f4f5f7;
}
.question p {
    margin: 6px 0;
}
.answer p {
    margin: 0;
}
.question p i, .answer p i {
    margin: 3px 5px 0 0;
    float: left;
}
.clientbox p {
    color: #212529;
    font-size: 15px;
    border-bottom: solid 1px #dedede;
    padding: 4px 0;
}
.profile-box {
    width: 100%;
    height: 90px;
}
.profile-box img {
    border-radius:0 0 2px 2px;
	 object-fit: cover;
}
.pphoto {
    width: 90px;
}
p.clientname {
    background: #2da164;
    color: #fff;
    padding: 2px 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
}
.img-circle {
    border-radius: 50%;
}
.profile-user-img {
    border: 3px solid #adb5bd;
    margin: 0 auto;
    padding: 3px;
    width: 100px;
    height: 100px!important;
    object-fit: cover;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
p.text-muted {
    line-height: 22px;
}
.float-right {
    float: right!important;
}
.planbx {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.planbx .pl {
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pr .pl {
    width: 85%;
}
.clientbox p:last-child {
    border: none;
}
.btn-primary {
    --bs-btn-bg: #2da164;
    --bs-btn-border-color: #2da164;
    --bs-btn-hover-bg: #2da164;
    --bs-btn-hover-border-color: #2da164;
    --bs-btn-active-bg: #2da164;
    --bs-btn-active-border-color: #2da164;
    --bs-btn-disabled-bg: #2da164;
    --bs-btn-disabled-border-color: #2da164;
}
.filter-box input {
    padding: 4px 6px;
    border-radius: 2px;
    border: 1px solid #ccc;
    font-size: 12px;
}
.card-body .nutrition-card {
    background: #f4f5f7;
    border-radius: 4px;
    box-shadow: none;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
.section-header .section-header i {
    margin-right: 0;
}
.nav-tabs .nav-link.active {
    background: #2da164;
    color: #fff;
    font-weight: bold;
}
.nav-tabs .nav-link, .nav-tabs .nav-link.active {
    border-radius: 0.3rem 0.3rem 0 0!important;
}
body .section-header i {
    margin-right: 0;
}
.nav-tabs .nav-link.active {
    background: #2da164!important;
    color: #fff!important;
    font-weight: bold!important;
}
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: linear-gradient(135deg, #2da164, #0a622a)!important;
    background: linear-gradient(135deg, #2da164, #0a622a)!important;
}
.btn.btn-success {
    background: #4caf50!important;
}
.container .nav-item .nav-link {
    color: #2da164!important;
}
.container .card-body .nav-link {
	color: #2da164!important
}
.container .nav-tabs .nav-item.show .nav-link, .container .nav-tabs .nav-link.active {
    color: #fff!important;
}
 .float-sm-right {
    float: right !important;
 }
p.wn {
    white-space: normal;
    line-height: 14px;
    padding: 8px 0;
}
 .diettext {
    font-size: 15px;
}
.diettext p {
    border-bottom: solid 1px #ccc;
    width: 80%;
    padding: 3px 3px;
}
.form_box .accordion-button {
    font-size: .9rem;
	padding: 10px 18px;
}
.form_box .accordion-body {
    padding: 8px 18px;
}
table.table, table.table td, table.table th {
    background: transparent;
    background-color: transparent;
}
strong.featuretxt {
    padding: 5% 0 0;
    display: block;
    text-align: center;
}
 