﻿.mud-toolbar .logo {
    line-height: 1;
    outline: none;
    box-shadow: none;
}

    .mud-toolbar .logo img {
        max-height: 45px;
        margin-right: 8px;
        outline: none;
        box-shadow: none;
    }

    .mud-toolbar .logo h1 {
        font-size: 30px;
        margin: 0;
        font-weight: 500;
        letter-spacing: 2px;
    }

.footer .footer-logo {
    max-height: 45px;
}

.mud-drawer-content{
    width: 100%;
}

.mud-toolbar .logo {
    order: 1;
}

@media (max-width: 1200px) {
    .mud-toolbar .logo {
        order: 1;
    }

        .mud-toolbar .logo:focus {
            outline: none;
            box-shadow: none;
        }
}


/*MENU*/
.mt-navlink {
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    margin: 0.2rem 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.2s ease;
    background-color: transparent !important;
}

    .mt-navlink:hover {
        background-color: rgba(255, 255, 255, 0.08) !important;
    }

.mt-navlink-active {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.mt-navlink .mud-nav-link {
    background-color: transparent !important;
    padding: 0 !important;
}


/*Model List*/
.model-image img {
    object-fit: cover;
    width: 80px;
    height: 50px;
    aspect-ratio: auto 80 / 50;
    border-radius: 2px;
}


/*MODEL SLIDER */
.full-width-grid-override {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.swipeable-item-container.mud-grid-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mud-grid-item {
    padding-top: 0px;
}

/* --- FINAL SWIPE STYLES --- */

/* Full Screen Divs */
.full-screen-slide-div, .left-full-screen-slide-div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    color: white;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE and Edge */
    padding: 20px;
    box-sizing: border-box;
}

.full-screen-slide-div::-webkit-scrollbar,
.left-full-screen-slide-div::-webkit-scrollbar,
.slide-up-div::-webkit-scrollbar {
    display: none;                 /* Chrome, Safari, Opera */
}

/* --- COLOR CHANGE: Logo-inspired Golden Yellow Theme --- */
.full-screen-slide-div {
    background-color: rgba(239, 175, 65, 0.97); /* Muted Golden Yellow Theme */
    transform: translateX(-100%);
}

.left-full-screen-slide-div {
    background-color: rgba(70, 130, 180, 0.97); /* Muted Steel Blue Theme */
    transform: translateX(100%);
}

.full-screen-content {
    width: 100%;
    text-align: center;
    /* height: 100vh; */
}

.full-screen-content-report { 
    height: 100vh;
}


/* Swipeable Item Styles */
.swipeable-item-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Default "Peeking" State */
.swipe-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease-out, width 0s;
}

/* --- COLOR CHANGE: Logo-inspired Golden Yellow Theme --- */
.swipe-indicator-right {
    left: 0;
    background-color: rgba(239, 175, 65, 0.4); /* Muted Golden Yellow */
}

.swipe-indicator-left {
    right: 0;
    background-color: rgba(70, 130, 180, 0.4); /* Muted Steel Blue */
}

/* Swiping State: The active indicator expands to 100% width and comes to the front */
.swipeable-item-container.is-swiping.swiping-right .swipe-indicator-right,
.swipeable-item-container.is-swiping.swiping-left .swipe-indicator-left {
    width: 100%;
    z-index: 1;
}


/* Make colors fully opaque when the swipe is active */
/* --- COLOR CHANGE: Logo-inspired Golden Yellow Theme --- */
.swipeable-item-container.is-swiping .swipe-indicator-right {
    background-color: rgba(239, 175, 65, 1);
}

.swipeable-item-container.is-swiping .swipe-indicator-left {
    background-color: rgba(70, 130, 180, 1);
}


/* Enable Tracking */
.enable-tracking-indicator-icon {
    position: absolute;
    top: 50%;
    right: 20px; 
    transform: translateY(-50%);
    font-size: 28px;
    color: rgba(239, 175, 65, 1);
    font-weight: bold;
}

.disable-tracking-indicator-icon {
    color: rgba(239, 175, 65, 0.2);
}

/* Icon positioning and styling */
.swipe-indicator-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: white;
    font-weight: bold;
}

.swipe-indicator-icon-right {
    left: 20px;
}

.swipe-indicator-icon-left {
    right: 20px;
}

.swipe-content-wrapper {
    position: relative;
    z-index: 2;
    width: calc(100% - 8px);
    margin: 0 auto;
    touch-action: pan-y;
}

    .swipe-content-wrapper .mud-paper {
        background-color: var(--mud-palette-surface);
    }

.model-image {
    object-fit: cover;
    border-radius: var(--mud-default-borderradius);
    flex-shrink: 0;
}

.swipe-content-wrapper .mud-typography-h6 {
    margin-bottom: 4px;
}

.swipe-content-wrapper .mud-typography-body2 {
    margin-bottom: 2px;
    color: var(--mud-palette-text-secondary);
}

.swipe-content-wrapper .mud-typography-caption {
    color: var(--mud-palette-text-disabled);
}


/* --- NEW STYLES for HOLD ACTION --- */

/* Hold-to-activate Progress Bar */
.hold-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 3;
    pointer-events: none; /* Allows clicks to pass through */
}

.hold-progress-bar-inner {
    height: 100%;
    width: 0%; /* Starts at 0 width */
    background-color: #ffffff;
}

/* Keyframe animation for filling the progress bar */
@keyframes fill-progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* This class, added by JS, triggers the animation */
.swipeable-item-container.is-holding .hold-progress-bar-inner {
    /* Changed from 2s to 1.5s */
    animation: fill-progress 1s linear forwards;
}


/* New Slide-Up Div Panel */
.slide-up-div {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(60, 60, 60, 0.97); /* Dark grey theme */
    color: white;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(100%); /* Start off-screen at the bottom */
    overflow-y: auto;
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE and Edge */
    padding: 20px;
    box-sizing: border-box;
}

.slide-up-div::-webkit-scrollbar {
    display: none;                 /* Chrome, Safari, Opera */
}


/* --- NEW STYLES for LOADING ICON --- */
.loading-icon {
    width: 80px;
    height: auto;
    animation: pulse-animation 2.5s infinite ease-in-out;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}
 
.footer-menu-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1500;
    width: 100vw;
    max-width: 100vw;
    background: var(--mud-palette-appbar-background, var(--mud-palette-background, #fff)); 
    padding: 0.25rem 0; 
}

.footer-menu-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    height: 56px;
}

/* Ensure icons are white and visible */
.footer-menu-icons .mud-icon-root,
.footer-menu-icons svg {
    color: #fff !important;
    fill: #fff !important;
}

body {
    padding-bottom: 56px; /* Adjust if footer height changes */
}

.nowrap {
    white-space: nowrap;
}

/* --- Dashboard Cards Responsive Grid Layout --- */
/* Remove legacy nth-child rules to avoid layout conflicts */
/* .dashboard-cards-container > .dashboard-card:nth-child(1) { ... }
   .dashboard-cards-container > .dashboard-card:nth-child(2) { ... }
   ... (all nth-child rules) ...
*/
.dashboard-cards-container {
    width: 100%;
    margin-bottom: 16px;
}

.dashboard-cards-row.dashboard-cards-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.dashboard-cards-row.dashboard-cards-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.dashboard-card .mud-typography-caption {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    max-width: 100%;
}
@media (max-width: 600px) {
    .dashboard-card .mud-typography-caption {
        font-size: 0.8rem;
    }
}
