/* #toast-container > div {
    border: 2px solid #a5d6a7;
    box-shadow: 0 0 10px 2px rgba(165, 214, 167, 0.7), 
                0 0 20px 4px rgba(165, 214, 167, 0.5), 
                0 0 30px 6px rgba(165, 214, 167, 0.3);
    animation: flicker 1.5s infinite;
    border-radius: 10px
}

@keyframes flicker {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(165, 214, 167, 0.7), 
                    0 0 20px 4px rgba(165, 214, 167, 0.5), 
                    0 0 30px 6px rgba(165, 214, 167, 0.3);
    }
    50% {
        box-shadow: 0 0 15px 3px rgba(165, 214, 167, 0.8), 
                    0 0 25px 5px rgba(165, 214, 167, 0.6), 
                    0 0 35px 8px rgba(165, 214, 167, 0.4);
    }
}

#toast-container > .toast-success {
    border-color: #a5d6a7;
    box-shadow: 0 0 10px 2px rgba(165, 214, 167, 0.7), 
                0 0 20px 4px rgba(165, 214, 167, 0.5), 
                0 0 30px 6px rgba(165, 214, 167, 0.3);
    border-radius: 10px;
}

#toast-container > .toast-error {
    border-color: #f44336;
    box-shadow: 0 0 10px 2px rgba(244, 67, 54, 0.7), 
                0 0 20px 4px rgba(244, 67, 54, 0.5), 
                0 0 30px 6px rgba(244, 67, 54, 0.3);
    border-radius: 10px;
} */

/* .bg-login {
    background: linear-gradient(0deg, #000, #667ff2, #758bf5, #8398f7, #91a5fa, #a0b2fc, #aebefd, #bdcbff) !important;
} */

/* .bg-login {
    background: linear-gradient(0deg,#000,#000,#000) !important;
} */

.bg-login {
    /* background: linear-gradient(0deg, #4facfe, #00f2fe) !important */
    /* background: linear-gradient(0deg, #43e97b, #38f9d7) !important */
    /* background: linear-gradient(0deg, #667eea, #bd7bff) !important */


    /* 15 different gradients for .bg-login, uncomment the one you want to use */
    /* background: linear-gradient(0deg, #43e97b, #38f9d7, #667eea, #bd7bff) !important; */
    /* background: linear-gradient(135deg, #ff9a56, #ff6b6b, #ffa726) !important; Warm food colors */
    /* background: linear-gradient(45deg, #ff8a65, #ff7043, #ffab40) !important; /* Orange food theme */
    /* background: linear-gradient(120deg, #ffb74d, #ff8a65, #ff7043) !important; /* Warm sunset food */

    /* background: linear-gradient(45deg, #fc466b, #3f5efb) !important; */
    /* background: linear-gradient(200deg, #ee9ca7, #ffdde1) !important; */
    /* background: linear-gradient(300deg, #ff6e7f, #bfe9ff) !important; */
    /* background: linear-gradient(330deg, #f857a6, #ff5858) !important; */

    /* background: linear-gradient(0deg, #00f2fe, #4facfe) !important; */
    /* background: linear-gradient(135deg, #e0c3fc, #8ec5fc) !important; */
    /* background: linear-gradient(120deg, #ffd395, #f3cdc0) !important; */
    background: linear-gradient(120deg, #fdd499, #ffd8cb) !important;
    /* background: linear-gradient(45deg, #fceabb, #f8b500) !important; */
}

.btn.btn-primary:hover:not(.btn-active) {
    background-color: #000 !important;
}

/* Login page logo sizing (adjust here) */
.login-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .login-logo {
        width: 56px;
        height: 56px;
    }
}

/* Toast Notification Styles - Modern Banner Design */
#toast-container {
    position: fixed;
    top: 14px;
    right: 24px;
    z-index: 9999;
    width: 300px;
    max-width: 300px;
    pointer-events: none; /* Allows clicks to pass through if toast disappears */
}

#toast-container > div {
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.05);
    padding: 8px 20px 10px 18px !important;
    margin-bottom: 10px;
    width: 300px;
    min-height: 46px;
    position: relative;
    overflow: hidden;
    background-image: none !important;
    background-position: initial !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    align-items: flex-start;
    pointer-events: auto;
}

.toast-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 6px;
    padding: 0;
    line-height: 1.4;
    display: block;
    letter-spacing: 0;
}

.toast-message {
    font-size: 14px !important;
    line-height: 1.5;
    padding: 0;
    font-weight: 400;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.toast-message a {
    text-decoration: underline;
    color: inherit;
    font-weight: 500;
}

/* Success Toast - Light Green Background */
.toast-success {
    background-color: #e8f5e9 !important;
    border-top: 4px solid #2eaf35 !important;
    color: #2eaf35 !important;
    padding: 20px 50px 20px 24px !important;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.toast-success .toast-title {
    color: #2eaf35 !important;
    font-weight: 700 !important;
}

.toast-success .toast-message {
    color: #2eaf35 !important;
}

.toast-success .toast-close-button {
    color: #2eaf35 !important;
    opacity: 0.8;
}

.toast-success .toast-close-button:hover {
    opacity: 1;
    color: #1e7e34 !important;
}

/* Error Toast - Light Red Background */
.toast-error {
    background-color: #ffebee !important;
    border-top: 4px solid #d32f2f !important;
    color: #d32f2f !important;
    padding: 20px 50px 20px 24px !important;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.toast-error .toast-title {
    color: #d32f2f !important;
    font-weight: 700 !important;
}

.toast-error .toast-message {
    color: #d32f2f !important;
}

.toast-error .toast-close-button {
    color: #d32f2f !important;
    opacity: 0.8;
}

.toast-error .toast-close-button:hover {
    opacity: 1;
    color: #b71c1c !important;
}

/* Warning Toast - Light Orange Background */
.toast-warning {
    background-color: #fff3e0 !important;
    border-top: 4px solid #f57c00 !important;
    color: #f57c00 !important;
    padding: 20px 50px 20px 24px !important;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.toast-warning .toast-title {
    color: #f57c00 !important;
    font-weight: 700 !important;
}

.toast-warning .toast-message {
    color: #f57c00 !important;
}

.toast-warning .toast-close-button {
    color: #f57c00 !important;
    opacity: 0.8;
}

.toast-warning .toast-close-button:hover {
    opacity: 1;
    color: #e65100 !important;
}

/* Info Toast - Light Blue Background */
.toast-info {
    background-color: #e3f2fd !important;
    border-top: 4px solid #1976d2 !important;
    color: #1976d2 !important;
    padding: 20px 50px 20px 24px !important;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.toast-info .toast-title {
    color: #1976d2 !important;
    font-weight: 700 !important;
}

.toast-info .toast-message {
    color: #1976d2 !important;
}

.toast-info .toast-close-button {
    color: #1976d2 !important;
    opacity: 0.8;
}

.toast-info .toast-close-button:hover {
    opacity: 1;
    color: #0d47a1 !important;
}

/* Close Button Styling */
.toast-close-button {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    opacity: 0.8;
    cursor: pointer;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.toast-close-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

/* Progress Bar Styling */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.06);
    width: 100%;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.toast-success .toast-progress {
    background-color: rgba(30, 148, 30, 0.336);
}

.toast-error .toast-progress {
    background-color: rgba(211, 47, 47, 0.4);
}

.toast-warning .toast-progress {
    background-color: rgba(245, 124, 0, 0.4);
}

.toast-info .toast-progress {
    background-color: rgba(25, 118, 210, 0.4);
}

/* Remove default toastr icons/background images */
#toast-container > div.toast-success,
#toast-container > div.toast-error,
#toast-container > div.toast-warning,
#toast-container > div.toast-info {
    background-image: none !important;
    background-position: initial !important;
}

/* Ensure proper spacing between title and message */
#toast-container .toast-title + .toast-message {
    margin-top: 5px;
}

/* Toast content wrapper */
#toast-container > div > div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure toast content doesn't overflow */
#toast-container .toast-message {
    max-width: 100%;
}

/* Animation for toast appearance */
#toast-container > div {
    animation: slideInRight 0.3s ease-out;
}

/* Hover effect for toast */
#toast-container > div:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* .btn.btn-primary:hover:not(.btn-active) {
    background-color:#FF9D9D !important;
} */

.desc-info *{
    font-size: 14px !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 300px;
}

.bg-gradient-danger {
    /* background: linear-gradient(to right, #7562F6,#9382ff) !important */
    background: linear-gradient(to right, #2196F3, #60b5fa) !important
}

.bg-gradient-success {
    /* background: linear-gradient(to right, #C93A80, #ff67b0) !important; */
    background: linear-gradient(to right, #ff48a1, #ff67b0c2) !important
}

.bg-gradient-info{
    /* background: linear-gradient(to right, #EEA750,#ffbc6b) !important; */
    background: linear-gradient(to right, #EEA750, #ffbc6bc7) !important
}

.bg-gradient-purple{
    /* background: linear-gradient(to right, #E1645D,  #f87a74) !important; */
    background: linear-gradient(to right, #50cd89, #50cd89bf) !important
}

.bg-gradient-pink{
    background: linear-gradient(to right, #787974, #787974) !important  
}

.bg-gradient-wine{
    background: linear-gradient(to right, #464555, #464555) !important;
}

.card.card-img-holder i {
    background-color: rgb(255 255 255 / 50%);
    padding: 10px;
    border-radius: 25%;
}

.card.card-img-holder {
    height: 200px;
    position: relative;
}

.card.card-img-holder a:hover{
    color:#000 !important
}

.card.card-img-holder .card-img-absolute, .card.card-img-holder .card-footer {
    position: absolute;
    top: 0;
    right:-4px;
    height: 100%;
}

.card.card-img-holder .card-footer{
    position: absolute;
    bottom: 0;
    top: 43%;
}

.card.card-img-holder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div#kt_app_sidebar {
    top: 0 !important;
    box-shadow: 0px 0px 24px rgba(27, 46, 94, 0.05) !important;
    background-color: #fff;
}

div#kt_app_header {
    left: 247px;
}

div#kt_app_header_logo {
    width: 100px;
}

.form-box {
    border: 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f7f9fc;
    transition: transform 0.3s ease;
}

.imagwrap {
    position: relative;
}

.imagwrap:before {
    position: absolute;
    content: '';
    background-color: #fff;
    width: 43px;
    height: 43px;
    opacity: 0.5;
    left: -9px;
    border-radius: 10px;
    top: -9px;
    z-index: 1; /* Ensure the background appears behind the icon */
}

.app-sidebar .menu>.menu-item .menu-item .menu-link.active .menu-icon, .app-sidebar .menu>.menu-item.here .menu-icon {
    background-color: #f36532;
}

/* Override old active state - new style is in menu-accordion.here and single-menu.active rules below */
.app-sidebar .menu-accordion>.menu-sub-accordion.here>.menu-item>.menu-accordion.here>.menu-link {
    background-color: #0a74da2b !important;
    box-shadow: 0 5px 4px 0px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1) !important;
    border-radius: 25px;
}

.app-sidebar .menu>.menu-item .menu-item .menu-link.active .menu-icon i, .app-sidebar .menu>.menu-item.here>span.menu-link>span.menu-icon i {
    color: #fff !important;
}

.imagwrap img {
    position: relative;
    z-index: 2; /* Ensure the icon is shown above the background */
}

/* .form-box:hover {
    transform: scale(1.005);
} */

.header-main,#kt_app_toolbar,div#kt_app_content,div#kt_app_footer,div#kt_app_aside {
    background-color: #F4F7FA !important;
}

/* a.menu-link.active, .app-sidebar .menu > .menu-accordion.here > .menu-link {
    background-color: rgb(87 114 239 / 20%) !important;
}*/

/* a.menu-link.active, .app-sidebar .menu > .menu-accordion.here > .menu-link {
    background-color: #a9a9a947 !important;
} */
      
.app-sidebar .menu > .menu-accordion.here .menu-sub .menu-item .menu-link.active {
    background-color: transparent !important;
    color: #f36532 !important;
}

.app-sidebar .menu > .menu-accordion.here .menu-sub .menu-item .menu-link.active .menu-title {
    color: #f36532 !important;
    font-weight: 600;
}

.app-sidebar .menu > .menu-accordion.here .menu-sub .menu-item .menu-link.active .menu-bullet .bullet {
    background-color: #f36532 !important;
}

a.menu-link.active span.menu-icon i,
a.menu-link.active span.menu-title, 
.app-sidebar .menu > .menu-item .menu-item .menu-link.active span.menu-title,
.app-sidebar .menu > .menu-accordion.here > .menu-link span.menu-title,
.app-sidebar .menu > .menu-accordion.here > .menu-link span.menu-icon i{
    color: #f36532 !important;
}

/* div#kt_app_sidebar {
    top: 0 !important;
} */

.app-sidebar{
    box-shadow: 0px 0px 24px rgba(27, 46, 94, 0.05) !important;
}

.app-sidebar .menu >.menu-item .menu-icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: .5rem;
    box-shadow: 0 5px 4px 2px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1) !important;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1) !important; */
}

span.menu-title {
    font-size: 14px;
}

/* Sidebar Section Headers */
.menu-section-title {
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-top: 16px;
    margin-bottom: 12px;
}

.menu-section-text {
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 10px;
    white-space: nowrap;
}

.menu-section-line {
    flex: 1;
    height: 1px;
    background-color: #e9ecef;
    margin-left: 10px;
}

/* Active menu item styling - light blue background with dark blue left border */
.app-sidebar .menu > .menu-accordion.here > .menu-link {
    background-color:#f3653263 !important;
    border-left: 4px solid #f36532 !important;
    padding-left: 11px !important;
    border-radius: 0 !important;
}

.app-sidebar .menu > .menu-accordion.here > .menu-link .menu-icon {
    background-color: #f36532 !important;
}

.app-sidebar .menu > .menu-accordion.here > .menu-link .menu-icon i {
    color: #fff !important;
}

.app-sidebar .menu > .menu-accordion.here > .menu-link .menu-title {
    color: #f36532 !important;
    font-weight: 600;
}

.app-sidebar .menu > .menu-accordion.here > .menu-link .menu-arrow {
    color: #f36532 !important;
}

/* Ensure menu arrows are visible */
.app-sidebar .menu > .menu-accordion > .menu-link .menu-arrow {
    opacity: 1;
    visibility: visible;
}

/* Single menu active state */
.app-sidebar .menu > .single-menu .menu-item .menu-link.active {
    background-color: #f3653263 !important;
    border-left: 4px solid #f36532 !important;
    padding-left: 11px !important;
    border-radius: 0 !important;    
}

.app-sidebar .menu > .single-menu .menu-item .menu-link.active .menu-icon {
    background-color: #f36532 !important;
}

.app-sidebar .menu > .single-menu .menu-item .menu-link.active .menu-icon i {
    color: #fff !important;
}

.app-sidebar .menu > .single-menu .menu-item .menu-link.active .menu-title {
    color: #f36532 !important;
    font-weight: 600;
}

/* Quill Editor Styles */
.ql-editor {
    min-height: 120px;
    font-size: 14px;
    line-height: 1.6;
}

.ql-toolbar {
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f8f9fa;
}

.ql-container {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    min-height: 120px;
}

.ql-editor:focus {
    border-color: #6978F7;
    box-shadow: 0 0 0 0.2rem rgba(105, 120, 247, 0.25);
}

.ql-toolbar button:hover,
.ql-toolbar .ql-picker-label:hover {
    color: #6978F7;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar .ql-picker-label:hover .ql-stroke {
    stroke: #6978F7;
}

.ql-toolbar button:hover .ql-fill {
    fill: #6978F7;
}

.ql-toolbar .ql-active {
    color: #6978F7;
}

.ql-toolbar .ql-active .ql-stroke {
    stroke: #6978F7;
}

.ql-toolbar .ql-active .ql-fill {
    fill: #6978F7;
}

/* ========== Admin Dashboard ========== */
.dash-page #kt_app_content_container {
    background: #f4f6fa;
    border-radius: 12px;
    padding-bottom: 2rem;
}

.wt-dash-stat {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.wt-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.wt-dash-stat .card-body {
    padding: 1.5rem 1.75rem;
}

.wt-dash-stat--primary {
    background: linear-gradient(135deg, #f36532 0%, #ff8f5c 100%);
    color: #fff;
}

.wt-dash-stat--dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.wt-dash-stat--teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
}

.wt-dash-stat--purple {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #fff;
}

.wt-dash-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.wt-dash-stat__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.wt-dash-stat__value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.wt-dash-stat__sub {
    font-size: 0.8rem;
    opacity: 0.85;
}

.wt-dash-mini {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.wt-dash-mini .card-body {
    padding: 1.25rem 1.5rem;
}

.wt-dash-mini__label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.wt-dash-mini__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.wt-dash-chart-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.wt-dash-chart-card .card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    min-height: auto;
}

.wt-dash-chart-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.wt-dash-chart-card .card-body {
    padding: 0.5rem 1rem 1.25rem;
}

.wt-dash-table-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.wt-dash-table-card .card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

.wt-dash-table-card thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    border: none;
}

.wt-dash-table-card tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #334155;
    font-size: 0.85rem;
    border-color: #f1f5f9;
}

.wt-dash-user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wt-dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.wt-dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wt-dash-pill--success { background: #dcfce7; color: #166534; }
.wt-dash-pill--danger { background: #fee2e2; color: #991b1b; }
.wt-dash-pill--warning { background: #fef3c7; color: #92400e; }
.wt-dash-pill--info { background: #e0f2fe; color: #075985; }
.wt-dash-pill--muted { background: #f1f5f9; color: #475569; }

.wt-dash-health {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.wt-dash-health strong {
    color: #0f172a;
}

.wt-dash-empty-chart {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ========== Fitness Admin Dashboard (fx-dash) ========== */
.dash-page #kt_app_content_container {
    background: linear-gradient(165deg, #eef2ff 0%, #f0f4f8 35%, #f8fafc 70%, #fff7ed 100%);
    min-height: 100%;
}

.fx-dash {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.fx-dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0 0.5rem;
}

.fx-dash-hero__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f36532;
}

.fx-dash-hero__title {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.2;
}

.fx-dash-hero__date {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.fx-health-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fx-health-chip {
    flex: 1;
    min-width: 10rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.fx-health-chip--fat {
    background: linear-gradient(135deg, rgba(243, 101, 50, 0.08), rgba(255, 255, 255, 0.95));
    border-color: rgba(243, 101, 50, 0.25);
    box-shadow: 0 2px 12px rgba(243, 101, 50, 0.08);
}

.fx-health-chip__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.fx-health-chip__val {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #4338ca;
}

.fx-health-chip--fat .fx-health-chip__val { color: #c2410c; }

.fx-dash__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fx-dash__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.fx-dash__sub {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.fx-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    animation: fxFadeUp 0.5s ease both;
}

.fx-kpi-grid--8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

@media (max-width: 1400px) { .fx-kpi-grid--8 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1200px) { .fx-kpi-grid, .fx-kpi-grid--8 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .fx-kpi-grid, .fx-kpi-grid--8 { grid-template-columns: 1fr; } }

.fx-row--70-30 { display: grid; grid-template-columns: 7fr 3fr; gap: 1.25rem; }
.fx-row--65-35 { display: grid; grid-template-columns: 65fr 35fr; gap: 1.25rem; }
.fx-row--50-50 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fx-row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

@media (max-width: 992px) {
    .fx-row--70-30, .fx-row--65-35, .fx-row--50-50, .fx-row--3 { grid-template-columns: 1fr; }
}

.fx-dash__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.fx-filter { display: flex; background: #f1f5f9; border-radius: 8px; padding: 0.15rem; }
.fx-filter button {
    border: none; background: transparent; padding: 0.35rem 0.75rem;
    font-size: 0.75rem; font-weight: 600; color: #64748b; border-radius: 6px;
}
.fx-filter button.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.fx-filter button:disabled { opacity: 0.45; cursor: not-allowed; }

.fx-stat-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.fx-stat-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 1rem; background: #f8fafc; border-radius: 10px; border: 1px solid #e8ecf1;
}
.fx-stat-card span { font-size: 0.8125rem; color: #64748b; }
.fx-stat-card strong { font-size: 1.125rem; color: #0f172a; }
.fx-stat-card--accent { background: linear-gradient(135deg, rgba(243,101,50,.12), rgba(243,101,50,.04)); border-color: rgba(243,101,50,.25); }

.fx-chart-caption { text-align: center; font-size: 0.75rem; color: #94a3b8; margin: 0.25rem 0 0; }
.fx-alert-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .fx-alert-grid--4 { grid-template-columns: repeat(2, 1fr); } }
.fx-alert em { display: block; font-size: 0.6875rem; font-style: normal; opacity: 0.85; margin-top: 0.15rem; }
.fx-alert--muted { background: #f1f5f9; border-color: #e2e8f0; }

.fx-table-wrap { overflow-x: auto; }
.fx-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.fx-table th, .fx-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #f1f5f9; }
.fx-table th { font-weight: 600; color: #64748b; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.03em; }
.fx-progress-pill {
    display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
    background: rgba(16,185,129,.15); color: #059669; font-weight: 700; font-size: 0.75rem;
}

/* Dashboard data tables — Latest Weight Logs & Top Performing Users */
.fx-table-row { margin-top: 0.25rem; }

.fx-table-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fx-table-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
}

.fx-table-card--weight {
    border-top: none;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, #fff 3.5rem);
}

.fx-table-card--performers {
    border-top: none;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.06) 0%, #fff 3.5rem);
}

.fx-table-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #eef2f6;
}

.fx-table-card__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.fx-table-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.fx-table-card__icon--teal {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}

.fx-table-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.3;
}

.fx-table-card__desc {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.45;
}

.fx-table-card__badge {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.fx-table-card__body { padding: 0; }

.fx-table-card__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fx-table-card__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #334155;
}

.fx-table-card__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.75rem 1.35rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

.fx-table-card__table tbody td {
    padding: 0.85rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.fx-table-card__table tbody tr:last-child td { border-bottom: none; }

.fx-table-card__table tbody tr {
    transition: background 0.15s ease;
}

.fx-table-card__table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.65);
}

.fx-table-card__table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.06) !important;
}

.fx-table-card--performers .fx-table-card__table tbody tr:hover td {
    background: rgba(20, 184, 166, 0.07) !important;
}

.fx-table-card__table--compact thead th,
.fx-table-card__table--compact tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
}

.fx-table-card__table--compact thead th:first-child,
.fx-table-card__table--compact tbody td:first-child {
    padding-left: 1.35rem;
}

.fx-table-card__table--compact thead th:last-child,
.fx-table-card__table--compact tbody td:last-child {
    padding-right: 1.35rem;
}

.fx-user-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.fx-user-cell__avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.fx-user-cell__avatar--indigo {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.fx-user-cell__avatar--teal {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.35);
}

.fx-user-cell__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-metric {
    font-variant-numeric: tabular-nums;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.fx-metric small {
    margin-left: 0.15rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.fx-stat-val {
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
}

.fx-stat-val small {
    margin-left: 0.1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
}

.fx-weight-num {
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.fx-weight-num--strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.fx-weight-num::after {
    content: ' kg';
    font-size: 0.6875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.fx-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.fx-muted {
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.fx-health-pill {
    display: inline-block;
    min-width: 2.5rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.fx-health-pill--bmi-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.fx-health-pill--bmi-low {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.fx-health-pill--bmi-high {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.fx-health-pill--bmi-alert {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.fx-health-pill--fat {
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
}

.fx-goal-tag {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.fx-goal-tag--lose {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

.fx-goal-tag--gain {
    background: rgba(2, 132, 199, 0.1);
    color: #0369a1;
}

.fx-goal-tag--maintain {
    background: rgba(243, 101, 50, 0.1);
    color: #c2410c;
}

.fx-progress-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 7rem;
}

.fx-progress-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #e8ecf1;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.fx-progress-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.fx-progress-bar__fill--high { background: linear-gradient(90deg, #10b981, #34d399); }
.fx-progress-bar__fill--mid { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.fx-progress-bar__fill--low { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.fx-progress-cell__pct {
    flex-shrink: 0;
    min-width: 2.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.fx-progress-cell__pct--high { color: #059669; }
.fx-progress-cell__pct--mid { color: #0284c7; }
.fx-progress-cell__pct--low { color: #d97706; }

.fx-table-card__empty {
    text-align: center;
    padding: 2.5rem 1.35rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    background: #fafbfc;
}

@media (max-width: 576px) {
    .fx-table-card__head { flex-direction: column; align-items: stretch; }
    .fx-table-card__badge { align-self: flex-start; }
    .fx-user-cell__name { max-width: 8rem; }
}

.fx-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    border-left: 4px solid #cbd5e1;
}

.fx-kpi--orange { border-left-color: #f36532; }
.fx-kpi--green { border-left-color: #10b981; }
.fx-kpi--blue { border-left-color: #3b82f6; }
.fx-kpi--purple { border-left-color: #8b5cf6; }
.fx-kpi--teal { border-left-color: #14b8a6; }

.fx-kpi__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.fx-kpi__val {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

/* Gradient KPI cards — must come after base .fx-kpi rules */
.fx-kpi.fx-kpi--grad {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: none;
    border-left: none !important;
    color: #fff;
    padding: 1rem 1rem 1rem 0.85rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fx-kpi.fx-kpi--grad:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.fx-kpi__glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 140%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.fx-kpi__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.fx-kpi__icon svg { display: block; }

.fx-kpi__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}

.fx-kpi.fx-kpi--grad .fx-kpi__label,
.fx-kpi.fx-kpi--grad .fx-kpi__meta {
    color: rgba(255, 255, 255, 0.9);
}

.fx-kpi.fx-kpi--grad .fx-kpi__val {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.fx-kpi__meta {
    display: block;
    font-size: 0.625rem;
    margin-top: 0.3rem;
    line-height: 1.35;
    opacity: 0.95;
}

.fx-kpi.fx-kpi--grad .fx-kpi__meta.up { color: #bbf7d0; font-weight: 600; }
.fx-kpi.fx-kpi--grad .fx-kpi__meta.down { color: #fecaca; font-weight: 600; }

.fx-kpi.fx-kpi--g1 { background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 100%); }
.fx-kpi.fx-kpi--g2 { background: linear-gradient(145deg, #0284c7 0%, #06b6d4 100%); }
.fx-kpi.fx-kpi--g3 { background: linear-gradient(145deg, #ea580c 0%, #f36532 100%); }
.fx-kpi.fx-kpi--g4 { background: linear-gradient(145deg, #059669 0%, #10b981 100%); }
.fx-kpi.fx-kpi--g5 { background: linear-gradient(145deg, #2563eb 0%, #60a5fa 100%); }
.fx-kpi.fx-kpi--g6 { background: linear-gradient(145deg, #7c3aed 0%, #a78bfa 100%); }
.fx-kpi.fx-kpi--g7 { background: linear-gradient(145deg, #0d9488 0%, #2dd4bf 100%); }
.fx-kpi.fx-kpi--g8 { background: linear-gradient(145deg, #475569 0%, #64748b 100%); }

.fx-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: box-shadow 0.22s ease;
}

.fx-panel--chart:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
}

.fx-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.fx-panel__intro {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fx-panel__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
}

.fx-panel__icon--purple {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.fx-panel__icon--brand {
    background: rgba(243, 101, 50, 0.12);
    color: #f36532;
}

.fx-panel__title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.fx-panel__sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.fx-panel__body {
    padding: 0.75rem 1.25rem 1.25rem;
}

.fx-panel__body--chart {
    padding: 0.5rem 0.75rem 1rem;
}

.fx-apex-tip {
    min-width: 140px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.fx-apex-tip strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
}

.fx-apex-tip span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

/* Goal donut visual polish */
#chart_goals {
    min-height: 300px;
}

#chart_goals .apexcharts-datalabel-label,
#chart_goals .apexcharts-datalabel-value {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

#chart_goals .apexcharts-legend {
    padding-top: 0.2rem !important;
}

#chart_goals .apexcharts-legend-series {
    margin: 4px 2px !important;
    padding: 3px 4px;
    border-radius: 6px;
}

#chart_goals .apexcharts-legend-text {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
}

.fx-goal-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    margin-top: 0.35rem;
    padding-top: 0.25rem;
}

.fx-goal-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.fx-goal-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.fx-goal-legend__dot--maintain { background: #ff8a00; }
.fx-goal-legend__dot--lose { background: #3b82c4; }
.fx-goal-legend__dot--gain { background: #7fb3e6; }

@keyframes fxFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fx-tabs {
    display: flex;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 0.2rem;
    border-radius: 8px;
}

.fx-tabs button {
    border: none;
    background: transparent;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
}

.fx-tabs button.active {
    background: #fff;
    color: #f36532;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fx-row {
    display: grid;
    gap: 1.25rem;
}

.fx-row--2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 992px) {
    .fx-row--2 { grid-template-columns: 1fr; }
}

.fx-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .fx-row-inner { grid-template-columns: 1fr; }
}

.fx-chart { min-height: 280px; }
.fx-chart--md { min-height: 260px; }
.fx-chart--sm { min-height: 200px; }

.fx-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fx-metrics--4 { grid-template-columns: repeat(4, 1fr); }
.fx-metrics--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 576px) {
    .fx-metrics, .fx-metrics--3, .fx-metrics--4 { grid-template-columns: 1fr 1fr; }
}

.fx-metrics div {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    text-align: center;
}

.fx-metrics span {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fx-metrics strong {
    font-size: 1.125rem;
    color: #0f172a;
}

.fx-metric-green strong { color: #10b981; }
.fx-metric-orange strong { color: #f36532; }
.fx-metric-blue strong { color: #3b82f6; }

.fx-alert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .fx-alert-grid { grid-template-columns: repeat(2, 1fr); }
}

.fx-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
}

.fx-alert strong {
    display: block;
    font-size: 1.25rem;
    color: #0f172a;
}

.fx-alert span {
    font-size: 0.75rem;
    color: #64748b;
}

.fx-alert--warn { border-left: 4px solid #f59e0b; }
.fx-alert--danger { border-left: 4px solid #ef4444; }
.fx-alert--info { border-left: 4px solid #3b82f6; }

.fx-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 420px;
    overflow-y: auto;
}

.fx-activity {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.fx-activity:last-child { border-bottom: none; }

.fx-activity__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fx-activity--register .fx-activity__dot { background: #3b82f6; }
.fx-activity--weight .fx-activity__dot { background: #f36532; }
.fx-activity--meal .fx-activity__dot { background: #10b981; }

.fx-activity__content {
    flex: 1;
    min-width: 0;
}

.fx-activity__content strong {
    display: block;
    font-size: 0.875rem;
    color: #0f172a;
}

.fx-activity__content span {
    font-size: 0.75rem;
    color: #64748b;
}

.fx-activity time {
    font-size: 0.6875rem;
    color: #94a3b8;
    white-space: nowrap;
}

.fx-empty {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
}