/* ===================================
   🏋️ FitTrack - Custom Styles
   =================================== */

/* --- Root Variables --- */
:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6B6B;
    --accent: #4ECDC4;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --dark: #2C3E50;
    --light-bg: #F8F9FD;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --border-radius-sm: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: #333;
    overflow-x: hidden;
}

/* --- Gradient Backgrounds --- */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.bg-gradient-admin {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%) !important;
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #6C63FF 0%, #896BFF 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EE7DE 100%);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, #F39C12 0%, #F7BC50 100%);
}

/* --- Navbar --- */
.navbar {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #896BFF 50%, var(--accent) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-section h1 {
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Section Titles --- */
.section-title {
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* --- Stat Cards --- */
.stat-card {
    border-radius: var(--border-radius);
    padding: 30px;
    color: white;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.stat-card:hover::before {
    transform: scale(1.5);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Filter Card --- */
.filter-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.filter-card .form-select,
.filter-card .form-control {
    border-radius: 10px;
    border: 2px solid #E8ECF4;
    padding: 10px 16px;
    transition: var(--transition);
}

.filter-card .form-select:focus,
.filter-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

/* --- Workout Cards (Public Page) --- */
.workout-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.workout-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.workout-card .card-header {
    border: none;
    padding: 16px 20px;
    font-weight: 700;
}

.workout-card .card-body {
    padding: 20px;
}

.workout-card .workout-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.workout-card .workout-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    background: #F8F9FD;
    padding: 4px 12px;
    border-radius: 20px;
}

.workout-card .workout-meta-item i {
    font-size: 0.9rem;
}

.muscle-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), #896BFF);
    color: white;
}

/* Muscle group colors */
.muscle-Ngực {
    background: linear-gradient(135deg, #E74C3C, #FF6B6B);
}

.muscle-Lưng {
    background: linear-gradient(135deg, #3498DB, #5DADE2);
}

.muscle-Vai {
    background: linear-gradient(135deg, #9B59B6, #BB8FCE);
}

.muscle-Tay\ trước {
    background: linear-gradient(135deg, #E67E22, #F0B27A);
}

.muscle-Tay\ sau {
    background: linear-gradient(135deg, #D35400, #E59866);
}

.muscle-Chân {
    background: linear-gradient(135deg, #27AE60, #58D68D);
}

.muscle-Bụng {
    background: linear-gradient(135deg, #F39C12, #F7DC6F);
}

.muscle-Cardio {
    background: linear-gradient(135deg, #1ABC9C, #48C9B0);
}

.muscle-Full\ Body {
    background: linear-gradient(135deg, #2C3E50, #5D6D7E);
}

/* --- Chart Cards --- */
.chart-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.chart-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.chart-card .card-header {
    padding: 20px 24px;
    border-bottom: 2px solid #F0F2F8;
}

.chart-container {
    min-height: 250px;
    padding: 20px 0;
}

/* --- CSS Bar Chart --- */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 220px;
    padding: 0 10px;
    border-bottom: 2px solid #E8ECF4;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 60px;
}

.bar {
    width: 35px;
    border-radius: 8px 8px 0 0;
    transition: height 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
}

.bar:hover {
    opacity: 0.85;
    transform: scaleX(1.1);
}

.bar-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
    white-space: nowrap;
}

.bar-label {
    font-size: 0.7rem;
    color: #888;
    margin-top: 8px;
    font-weight: 500;
}

/* Gradient bars */
.bar.bar-calories {
    background: linear-gradient(180deg, #FF6B6B 0%, #FFB4B4 100%);
}

.bar.bar-duration {
    background: linear-gradient(180deg, #6C63FF 0%, #A9A4FF 100%);
}

/* --- Horizontal Bar Chart (Muscle Groups) --- */
.h-bar-chart {
    padding: 10px 0;
}

.h-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.h-bar-label {
    width: 90px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-align: right;
    padding-right: 12px;
    flex-shrink: 0;
}

.h-bar-track {
    flex: 1;
    height: 28px;
    background: #F0F2F8;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.h-bar-fill {
    height: 100%;
    border-radius: 14px;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

/* --- Weekly Activity Grid --- */
.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 10px 0;
}

.day-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.day-cell:hover {
    transform: scale(1.05);
}

.day-cell .day-name {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.day-cell .day-count {
    font-size: 1.2rem;
    font-weight: 800;
}

.day-cell.level-0 {
    background: #F0F2F8;
    color: #CCC;
}

.day-cell.level-1 {
    background: #D5F5E3;
    color: #27AE60;
}

.day-cell.level-2 {
    background: #ABEBC6;
    color: #1E8449;
}

.day-cell.level-3 {
    background: #82E0AA;
    color: #196F3D;
}

.day-cell.level-4 {
    background: #58D68D;
    color: #FFFFFF;
}

/* --- Exercise Cards (Public) --- */
.exercise-card {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.exercise-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.exercise-card .exercise-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

/* --- Calculator --- */
.calculator-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.calc-exercise-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: #F8F9FD;
    border-radius: var(--border-radius-sm);
    animation: slideIn 0.3s ease;
}

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

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

.calc-exercise-row .form-select,
.calc-exercise-row .form-control {
    border-radius: 8px;
}

.calc-exercise-row .btn-remove {
    flex-shrink: 0;
}

/* --- Admin Cards --- */
.admin-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.admin-card .card-header {
    background: white;
    border-bottom: 2px solid #F0F2F8;
    padding: 20px 24px;
}

.admin-stat-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.admin-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
}

/* --- Table Styles --- */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border: none;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: #F0F2F8;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #F8F9FD;
}

/* --- Action Buttons --- */
.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition);
    margin: 0 2px;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-edit {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}

/* --- Forms --- */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #E8ECF4;
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #555;
}

/* --- Buttons --- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #4A42C0);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    border: none;
}

/* --- Footer --- */
.footer-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
}

/* --- Toast --- */
.toast {
    border-radius: var(--border-radius-sm);
    border: none;
    box-shadow: var(--card-shadow-hover);
}

/* --- Modal --- */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header.bg-gradient-primary {
    padding: 20px 24px;
}

/* --- Truncate text --- */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F0F2F8;
}

::-webkit-scrollbar-thumb {
    background: #C0C5D0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0A5B0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .bar-chart {
        height: 180px;
    }

    .bar {
        width: 25px;
    }

    .h-bar-label {
        width: 70px;
        font-size: 0.7rem;
    }

    .calc-exercise-row {
        flex-wrap: wrap;
    }

    .admin-stat-number {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .workout-card .workout-meta {
        gap: 8px;
    }

    .weekly-grid {
        gap: 5px;
    }

    .day-cell .day-count {
        font-size: 1rem;
    }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, #F0F2F8 25%, #E8ECF4 50%, #F0F2F8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Workout Notes Tooltip --- */
.notes-preview {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #888;
    font-size: 0.85rem;
}

/* --- Animation Classes --- */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ===================================
   👤 USERS SECTION
   =================================== */

/* User Card */
.user-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.user-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.user-card .user-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-card .user-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-card .user-meta {
    font-size: 0.8rem;
    opacity: 0.85;
}

.user-card .user-body {
    padding: 16px 20px 20px;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #F0F2F8;
    font-size: 0.85rem;
}

.user-info-row:last-child {
    border-bottom: none;
}

.user-info-label {
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info-value {
    font-weight: 600;
    color: #333;
}

/* BMI Badge trong user card */
.bmi-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Level badges */
.level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.level-Mới\ bắt\ đầu {
    background: rgba(52, 152, 219, 0.12);
    color: #2980B9;
}

.level-Trung\ cấp {
    background: rgba(39, 174, 96, 0.12);
    color: #1E8449;
}

.level-Nâng\ cao {
    background: rgba(142, 68, 173, 0.12);
    color: #6C3483;
}

/* Goal badges */
.goal-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), #896BFF);
    color: white;
}

/* ===================================
   📊 BMI CALCULATOR
   =================================== */

/* Form Card */
.bmi-form-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* Gender Buttons */
.gender-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #E8ECF4;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    color: #888;
}

.gender-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gender-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #896BFF);
    color: white;
    transform: scale(1.02);
}

.gender-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Range Sliders */
.bmi-range {
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #E8ECF4;
    outline: none;
    transition: var(--transition);
}

.bmi-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #896BFF);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.4);
    transition: var(--transition);
}

.bmi-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Manual input toggle */
.manual-inputs {
    background: #F8F9FD;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

/* BMI Result Card */
.bmi-result-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* BMI Avatar */
.bmi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), #896BFF);
    color: white;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

/* BMI Value Box */
.bmi-value-box {
    padding: 24px;
    border-radius: var(--border-radius-sm);
    background: #F8F9FD;
}

.bmi-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bmi-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.5s;
}

/* BMI Colors */
.bmi-underweight .bmi-number {
    color: #17A2B8;
}

.bmi-normal .bmi-number {
    color: #28A745;
}

.bmi-overweight .bmi-number {
    color: #FFC107;
}

.bmi-obese1 .bmi-number {
    color: #FD7E14;
}

.bmi-obese2 .bmi-number {
    color: #DC3545;
}

.bmi-category-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.bmi-underweight .bmi-category-badge {
    background: rgba(23, 162, 184, 0.15);
    color: #117A8B;
}

.bmi-normal .bmi-category-badge {
    background: rgba(40, 167, 69, 0.15);
    color: #1E7E34;
}

.bmi-overweight .bmi-category-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.bmi-obese1 .bmi-category-badge {
    background: rgba(253, 126, 20, 0.15);
    color: #C56A00;
}

.bmi-obese2 .bmi-category-badge {
    background: rgba(220, 53, 69, 0.15);
    color: #B21F2D;
}

/* BMI Scale Bar */
.bmi-scale {
    margin: 0 10px;
}

.bmi-scale-bar {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 6px;
}

.bmi-scale-segment {
    flex: 1;
}

.seg-underweight {
    background: #17A2B8;
    flex: 1.8;
}

.seg-normal {
    background: #28A745;
    flex: 2.2;
}

.seg-overweight {
    background: #FFC107;
    flex: 1;
}

.seg-obese1 {
    background: #FD7E14;
    flex: 2.5;
}

.seg-obese2 {
    background: #DC3545;
    flex: 2;
}

.bmi-scale-pointer {
    position: absolute;
    top: -4px;
    width: 6px;
    height: 24px;
    background: #2C3E50;
    border-radius: 3px;
    transform: translateX(-50%);
    transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bmi-scale-pointer::after {
    content: '▼';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #2C3E50;
}

.bmi-scale-labels,
.bmi-scale-names {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-top: 3px;
    color: #888;
}

.bmi-scale-names {
    font-weight: 600;
}

/* BMI Stat Boxes */
.bmi-stat-box {
    background: #F8F9FD;
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.bmi-stat-box:hover {
    background: #EEF0FB;
    transform: translateY(-2px);
}

.bmi-stat-box i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 6px;
}

.bmi-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.bmi-stat-lbl {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BMI Advice Box */
.bmi-advice-box {
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(78, 205, 196, 0.05));
}

/* BMI Reference Table */
.bmi-table td,
.bmi-table th {
    padding: 10px 14px;
    font-size: 0.85rem;
}

.bmi-row-underweight {
    background: rgba(23, 162, 184, 0.06);
}

.bmi-row-normal {
    background: rgba(40, 167, 69, 0.06);
}

.bmi-row-overweight {
    background: rgba(255, 193, 7, 0.06);
}

.bmi-row-obese1 {
    background: rgba(253, 126, 20, 0.06);
}

.bmi-row-obese2 {
    background: rgba(220, 53, 69, 0.06);
}

/* BMI History Table */
#bmiHistoryBody tr {
    transition: var(--transition);
}

/* Highlight active row */
.bmi-active-row {
    background: rgba(108, 99, 255, 0.08) !important;
}

/* Orange color */
.text-orange {
    color: #FD7E14;
}

.bg-orange {
    background: #FD7E14;
}

/* Pulse animation cho result */
.highlight-pulse {
    animation: highlightPulse 0.6s ease;
}

@keyframes highlightPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
    }
}
.nav-link.active {
    background-color: #0d6efd;
    /* màu nền nổi bật */
    color: white !important;
    /* chữ trắng */
    border-color: #0d6efd;
    /* viền cùng màu */
}
.navbar .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
}
/* ============================================
   CALORIE CALCULATOR - ENHANCED STYLES
   ============================================ */

/* Main Card */
.calc-main-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.calc-main-card .card-header {
    padding: 18px 24px;
}

/* Weight Section */
.calc-weight-section {
    background: linear-gradient(135deg, #f0f4ff, #e8ecff);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.calc-weight-section .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Exercise Row */
.calc-exercise-row {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

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

.calc-exercise-row:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.calc-exercise-row .row-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.calc-exercise-row .btn-remove-row {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0;
}

.calc-exercise-row .btn-remove-row:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.calc-exercise-row .exercise-select {
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}

.calc-exercise-row .exercise-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.calc-exercise-row .duration-input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    font-size: 0.9rem;
    text-align: center;
}

.calc-exercise-row .duration-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.calc-exercise-row .intensity-select {
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 8px 10px;
}

.calc-exercise-row .row-calorie-preview {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
    transition: all 0.3s ease;
}

/* Add Exercise Button */
.btn-add-exercise {
    border-style: dashed;
    border-width: 2px;
    padding: 14px;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-add-exercise:hover {
    background: rgba(102, 126, 234, 0.05);
    border-style: solid;
    transform: translateY(-1px);
}

/* Result Card */
.calc-result-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

/* Placeholder */
.calc-placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.calc-placeholder-icon i {
    font-size: 2.5rem;
    color: #ffb3b3;
}

/* Total Display */
.calc-total-display {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 16px;
    padding: 30px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.calc-total-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.calc-total-display::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.calc-fire-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
}

.calc-fire-icon i {
    font-size: 1.8rem;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.calc-total-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.calc-total-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.calc-total-unit {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Stats Box */
.calc-stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.calc-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.calc-stat-box i {
    font-size: 1.3rem;
    margin-bottom: 6px;
    display: block;
}

.calc-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
    line-height: 1.2;
}

.calc-stat-label {
    font-size: 0.75rem;
    color: #636e72;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Breakdown */
.calc-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.calc-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.calc-breakdown-item .breakdown-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.calc-breakdown-item .breakdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.calc-breakdown-item .breakdown-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d3436;
}

.calc-breakdown-item .breakdown-meta {
    font-size: 0.75rem;
    color: #636e72;
}

.calc-breakdown-item .breakdown-cal {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.calc-breakdown-item .breakdown-bar {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    width: 100%;
    margin-top: 6px;
    overflow: hidden;
}

.calc-breakdown-item .breakdown-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    transition: width 0.8s ease;
}

/* Food Equivalents */
.calc-food-equiv {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.calc-food-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.85rem;
}

.calc-food-item .food-emoji {
    font-size: 1.3rem;
}

.calc-food-item .food-name {
    flex: 1;
    color: #636e72;
}

.calc-food-item .food-amount {
    font-weight: 700;
    color: #2d3436;
}

/* Advice */
.calc-advice {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.calc-advice h6 {
    color: #2e7d32;
    margin-bottom: 8px;
}

.calc-advice p {
    font-size: 0.85rem;
    color: #4a7c59;
    margin-bottom: 0;
    line-height: 1.6;
}

/* History List */
.calc-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.calc-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.calc-history-item:hover {
    background: #f8f9fa;
}

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

.calc-history-item .history-info {
    display: flex;
    flex-direction: column;
}

.calc-history-item .history-date {
    font-size: 0.75rem;
    color: #999;
}

.calc-history-item .history-detail {
    font-size: 0.8rem;
    color: #636e72;
}

.calc-history-item .history-cal {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 1rem;
    white-space: nowrap;
}

/* Quick Add Panel */
.quick-add-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.quick-add-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.quick-add-btn .qa-emoji {
    font-size: 1.1rem;
}

.quick-add-btn .qa-name {
    font-weight: 600;
    color: #2d3436;
    flex: 1;
    text-align: left;
}

.quick-add-btn .qa-met {
    font-size: 0.7rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-total-number {
        font-size: 2.5rem;
    }

    .calc-exercise-row {
        padding: 12px;
    }

    .calc-result-card {
        position: static;
    }
}

/* Animation for result appearance */
@keyframes resultPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.02);
    }

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

.calc-result-animate {
    animation: resultPop 0.5s ease-out;
}

/* Calorie number counting animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.count-animate {
    animation: countUp 0.4s ease-out;
}
/* Slide out animation for removed rows */
@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
        max-height: 0;
        padding: 0;
        margin: 0;
        border: 0;
        overflow: hidden;
    }
}

/* Toast slide in */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ==================== BMI CALCULATOR — CẢI TIẾN ==================== */

/* Form card */
.bmi-form-card {
    border-radius: 16px;
    overflow: hidden;
}

.bmi-form-card .card-header {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* Gender buttons */
.gender-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    user-select: none;
}

.gender-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.gender-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

/* Live preview */
.bmi-live-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 8px 16px;
    border: 1px dashed #dee2e6;
}

/* Result card */
.bmi-result-card {
    border-radius: 16px;
    overflow: hidden;
}

/* Avatar */
.bmi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* BMI Value Box */
.bmi-value-box {
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: background 0.5s ease;
}

.bmi-value-box.cat-underweight {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.bmi-value-box.cat-normal {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.bmi-value-box.cat-overweight {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
}

.bmi-value-box.cat-obese1 {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.bmi-value-box.cat-obese2 {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}

.bmi-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.bmi-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.bmi-category-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* BMI Scale */
.bmi-scale-bar {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: visible;
    position: relative;
}

.bmi-scale-segment {
    height: 100%;
}

.seg-underweight,
.bmi-row-underweight td:first-child {
    background: #4FC3F7;
}

.seg-normal {
    background: #66BB6A;
    flex: 4.4;
}

.seg-overweight {
    background: #FFA726;
    flex: 2;
}

.seg-obese1 {
    background: #EF5350;
    flex: 5;
}

.seg-obese2 {
    background: #B71C1C;
    flex: 10;
}

.seg-underweight {
    background: #4FC3F7;
    flex: 8.5;
    border-radius: 7px 0 0 7px;
}

.seg-normal {
    border-radius: 0;
}

.seg-overweight {
    border-radius: 0;
}

.seg-obese1 {
    border-radius: 0;
}

.seg-obese2 {
    border-radius: 0 7px 7px 0;
}

.bmi-scale-pointer {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 26px;
    background: #333;
    border-radius: 2px;
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    z-index: 2;
}

.bmi-scale-pointer::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
}

.bmi-scale-labels,
.bmi-scale-names {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 4px;
}

.bmi-scale-names {
    font-weight: 600;
    font-size: 0.7rem;
}

/* Stat boxes */
.bmi-stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmi-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bmi-stat-box i {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 6px;
}

.bmi-stat-val {
    font-size: 1.15rem;
    font-weight: 700;
}

.bmi-stat-lbl {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Section box (thành phần cơ thể, TDEE, kế hoạch) */
.bmi-section-box {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.bmi-section-box h6 {
    color: #333;
}

/* Composition rings */
.comp-ring-wrap {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 90px;
}

.comp-ring-svg {
    width: 100%;
    height: 100%;
}

.comp-ring-arc {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.comp-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #333;
}

.comp-unit {
    font-size: 0.7rem;
    color: #6c757d;
}

/* TDEE items */
.tdee-item {
    background: white;
    border-radius: 10px;
    padding: 12px 8px;
    border: 1px solid #e9ecef;
}

.tdee-main {
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tdee-val {
    font-size: 1.05rem;
    font-weight: 700;
}

.tdee-lbl {
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Goal plan */
.bmi-goal-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.bmi-goal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bmi-goal-text {
    flex: 1;
}

.bmi-goal-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.bmi-goal-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

.bmi-goal-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Advice box */
.bmi-advice-box {
    background: linear-gradient(135deg, #fffde7, #fff8e1);
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 16px;
}

/* SVG Gauge */
.bmi-gauge-svg {
    max-width: 340px;
    width: 100%;
    height: auto;
}

.gauge-segment {
    transition: opacity 0.3s ease;
}

.gauge-segment:hover {
    opacity: 0.8;
}

.gauge-needle {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: 150px 155px;
}

.gauge-glow {
    animation: gaugeGlow 2s ease-in-out infinite;
}

@keyframes gaugeGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Reference table highlight */
.bmi-table tbody tr {
    transition: background 0.3s ease;
}

.bmi-table .bmi-row-underweight td:first-child {
    border-left: 4px solid #4FC3F7;
}

.bmi-table .bmi-row-normal td:first-child {
    border-left: 4px solid #66BB6A;
}

.bmi-table .bmi-row-overweight td:first-child {
    border-left: 4px solid #FFA726;
}

.bmi-table .bmi-row-obese1 td:first-child {
    border-left: 4px solid #EF5350;
}

.bmi-table .bmi-row-obese2 td:first-child {
    border-left: 4px solid #B71C1C;
}

.bmi-table tr.highlight-row {
    background: rgba(102, 126, 234, 0.1) !important;
}

/* Badge orange */
.badge.bg-orange {
    background-color: #EF5350;
}

.text-orange {
    color: #EF5350;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.bmi-animate-in {
    animation: fadeInUp 0.5s ease forwards;
}