/* views/css/card_effect.css */

/* --- Global Theme Variables (apply to html for full page effect) --- */
html {
    /* Dark Mode Defaults */
    --text-color: #0d1d28; /* Light text for general content */
    --card-background-color: #7e8b96; /* Very subtle, dark-translucent card background */
    --card-border-color: rgb(255 255 255);
    --card-box-shadow-1: rgb(0 0 0 / 59%);
    --card-box-shadow-1-y: 3px;
    --card-box-shadow-1-blur: 6px;
    --card-box-shadow-2: rgb(81 79 79);
    --card-box-shadow-2-y: 6px;
    --card-box-shadow-2-blur: 15px;
    --card-label-color: #f3f3f3; /* White text for card titles */
    --card-icon-color: #1e1e20; /* Light icon color */
    --card-icon-background-color: rgba(255, 255, 255, 0.08);
    --card-icon-border-color: rgba(255, 255, 255, 0.2);
    --card-shine-opacity: .1;
    --card-shine-gradient: conic-gradient(from 205deg at 50% 50%, rgba(16, 185, 129, 0) 0deg, #10B981 25deg, rgba(52, 211, 153, 0.18) 295deg, rgba(16, 185, 129, 0) 360deg);
    --card-line-color: #2A2B2C;

    --card-hover-border-color: rgba(255, 255, 255, 0.2);
    --card-hover-box-shadow-1: rgba(0, 0, 0, 0.04);
    --card-hover-box-shadow-1-y: 5px;
    --card-hover-box-shadow-1-blur: 10px;
    --card-hover-box-shadow-2: rgba(0, 0, 0, 0.8);
    --card-hover-box-shadow-2-y: 15px;
    --card-hover-box-shadow-2-blur: 15px;
    --card-hover-icon-color: rgb(59 60 60);
    --card-hover-icon-background-color: rgba(0, 180, 177, 0.1);
    --card-hover-icon-border-color: rgba(0, 180, 177, 0.2);

    --blur-opacity: .01;

    /* Base background color for the page based on the theme */
    background-color: var(--background-color);
    transition: background-color .3s ease; /* Smooth transition for background */
    font-family: 'Inter', Arial, sans-serif; /* Ensure Inter is applied if needed globally */

    /* Scrollbar colors for Firefox */
    --scrollbar-thumb: #888;
    --scrollbar-track: #f1f1f1;

    /* Define your tile colors as CSS variables, though JS will directly use them */
    --tile-color-1: rgba(255, 248, 0, 1);
    --tile-color-2: rgba(0, 181, 181, 1);
    --tile-color-3: rgba(255, 0, 0, 1);
    --tile-color-4: rgba(0, 111, 180, 1);

    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* --- Light Mode Overrides (apply to html.light) --- */
html.light {
    --text-color: #52525B; /* Dark text for general content */
    --card-background-color: #F0F0F0; /* Explicitly a light gray for cards, making them "darker" than page background */
    --card-border-color: rgba(24, 24, 27, 0.1); /* Slightly more visible border */
    --card-box-shadow-1: rgba(24, 24, 27, 0.5); /* Slightly stronger shadow */
    --card-box-shadow-1-y: 3px;
    --card-box-shadow-1-blur: 6px;
    --card-box-shadow-2: rgba(24, 24, 27, 0.2); /* Slightly stronger shadow */
    --card-box-shadow-2-y: 2px;
    --card-box-shadow-2-blur: 7px;
    --card-label-color: #18181B; /* Dark text for card titles */
    --card-icon-color: #18181B; /* Dark icon color */
    --card-icon-background-color: rgba(24, 24, 27, 0.08); /* Slightly more visible icon background */
    --card-icon-border-color: rgba(24, 24, 27, 0.15); /* Slightly more visible icon border */
    --card-shine-opacity: .3;
    --card-shine-gradient: conic-gradient(from 225deg at 50% 50%, rgba(16, 185, 129, 0) 0deg, #10B981 25deg, #EDFAF6 285deg, #FFFFFF 345deg, rgba(16, 185, 129, 0) 360deg);
    --card-line-color: #E9E9E7;

    --card-hover-border-color: rgba(24, 24, 27, 0.2); /* Stronger hover border */
    --card-hover-box-shadow-1: rgba(24, 24, 27, 0.08); /* Stronger hover shadow */
    --card-hover-box-shadow-1-y: 3px;
    --card-hover-box-shadow-1-blur: 6px;
    --card-hover-box-shadow-2: rgba(24, 24, 27, 0.15); /* Stronger hover shadow */
    --card-hover-box-shadow-2-y: 8px;
    --card-hover-box-shadow-2-blur: 15px;
    --card-hover-icon-color: #18181B;
    --card-hover-icon-background-color: rgba(24, 24, 27, 0.08);
    --card-hover-icon-border-color: rgba(24, 24, 27, 0.4);

    --blur-opacity: .1;

    /* Scrollbar colors for Firefox in light mode */
    --scrollbar-thumb: #555;
    --scrollbar-track: #eee;
}

/* --- Toggle Class for Smooth Transitions (apply to html.toggle) --- */
html.toggle .grid * {
    transition-duration: 0s !important;
}

/* --- Top-Level Page Wrapper (New and Crucial for overall width containment) --- */
.mma-page-wrapper {
    max-width: 1200px; /* Set your desired max width for the entire content area */
    margin: 0 auto; /* Center the wrapper horizontally */
    padding: 0 20px; /* Add horizontal padding to prevent content hugging the edges */
    box-sizing: border-box; /* Include padding in the width calculation */
}

/* --- Main Content Container (Adapts to new wrapper) --- */
.mma-container-main {
    width: 100%; /* Make it fill the new mma-page-wrapper */
    padding: 0; /* Remove existing padding, let mma-page-wrapper handle horizontal spacing */
    overflow: visible; /* Content should flow within the new wrapper, not hidden here */
    box-sizing: border-box;
    position: relative; /* For the radial background effect's positioning */
    min-height: 80vh; /* Kept from loginstyle.css */
    border-radius: 50px; /* Kept from loginstyle.css */
    z-index: 0; /* Kept from loginstyle.css */

    /* Apply flex properties conditionally for logged-out login form */
    /* This rule will make it a flex container regardless of login status,
        but is overridden by specific rules below for logged-in content flow. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ensure mma-spacer-container allows content to flow naturally when logged in */
.mma-spacer-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Ensure it fills mma-container-main */
}

/* When logged in, allow content within mma-user-content to align left and flow */
/* This overrides centering from mma-container-main for logged-in view */
.mma-container-main #mma-user-content {
    width: 100%; /* Ensure it takes full width within mma-spacer-container */
    align-self: flex-start; /* Aligns content to the left inside the flex container */
    padding: 0; /* No extra padding here */
    margin: 0;
    display: block; /* Revert to block flow */
}

/* --- Radial Background Effect for Main Content Area (Confined to mma-container-main) --- */
.mma-container-main::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 65%; /* Still radial at top, but now confined by container */
    background-image: radial-gradient(ellipse at top, #10B981 0%, var(--background-color) 50%);
    opacity: var(--blur-opacity);
    z-index: 0; /* Ensure it's behind your content */
    pointer-events: none; /* Make it non-interactive */
}

/* --- Card Section Layout --- */
.mma-purchased-products-section .grid{
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* --- New Wrapper for Cards with Fade Effect --- */
.mma-card-scroll-wrapper {
    position: relative;
    margin: 20px 0; /* Space above/below the card section */
    overflow: hidden; /* Hides content that extends past its width */
    padding: 0 10px; /* Small padding so the fades don't start immediately at the edge */
}

/* --- Fade-Out Effects on the Wrapper --- */
.mma-card-scroll-wrapper::before,
.mma-card-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0; /* Span the full height of the wrapper */
    width: 100px; /* Width of the fade area */
    z-index: 2; /* Make sure it's above the cards */
    pointer-events: none; /* Allows clicks/drags to pass through */
}

.mma-card-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f6f6f6 0%, transparent 100%);
}

.mma-card-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f6f6f6 0%, transparent 100%);
}

/* --- Grid Layout for Cards (Horizontal Scroll-Snap) --- */
.grid {
    display: flex; /* Use flexbox for horizontal layout */
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Enable horizontal scroll snapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    gap: 32px; /* Space between cards */
    padding-top: 20px;
    padding-bottom: 20px; /* Space for scrollbar or visual padding */
    padding-left: 15px; /* Cards start with some padding inside the wrapper */
    padding-right: 15px; /* Cards end with some padding inside the wrapper */
    position: relative; /* Needed for z-index with background effects */
    z-index: 1; /* Ensure cards are above page background effect but below fades */

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.grid::-webkit-scrollbar {
    display: none; /* WebKit (Chrome, Safari) */
}

/* --- Card Styling --- */
.card {
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 240px; /* Fixed width for each card */
    scroll-snap-align: start; /* Align each card to the start of the scroll container */
    box-shadow: 1px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
    padding: 5px 16px 16px 16px;
    border-radius: 20px;
    cursor: progress !important;
    position: relative;
    transition: box-shadow .25s;
    overflow: hidden; /* Important for background and shine effects */
    display: flex; /* Make cards flex containers for internal layout */
    flex-direction: column; /* Stack content vertically */
    text-decoration: none; /* Remove underline from links */
    color: var(--card-label-color); /* Default text color for card content */
    z-index: 10;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background-color: var(--card-background-color);
    z-index: 0; /* Ensure this background is behind text/icons */
}

.card .icon {
    z-index: 2;
    position: relative;
    display: table; /* Used for centering the icon content */
    padding: 0.5px;
    margin: 0 auto 0 auto; /* Center the icon */
}

.card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: blur(0);
    transition: filter 0.3s ease-in-out;
    display: block;
    z-index: 2;
}

.card:hover .icon img {
    filter: blur(2px);
}

.card .icon::after {
    /* content: ''; */ /* This is commented out, so it does nothing. Keep as is for now.*/
    position: absolute;
    inset: 4.5px;
    z-index: 2;
    border-radius: 50%;
    background-color: var(--card-icon-background-color);
    border: 0px solid var(--card-icon-border-color);
    backdrop-filter: blur(0px);
    transition: background-color .25s, border-color .25s, backdrop-filter .25s;
}

.card:hover .icon::after {
    backdrop-filter: blur(0.8px);
    z-index: 1;
}

.card .icon svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 24px;
    height: 24px;
    transform: translateZ(0);
    color: var(--card-icon-color);
    transition: color .25s;
}

.card h4 {
    z-index: 2;
    position: relative;
    margin: 12px 0 4px 0;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 2;
    color: var(--card-label-color);
    text-align: center;
}

.card p {
    z-index: 2;
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
    text-align: center;
    flex-grow: 1;
}

/* Shine effect */
.shine {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity .5s;
}

.shine::before {
    content: '';
    width: 100%;
    padding-bottom: 100%;
    border-radius: 25%;
    position: absolute;
    left: 50%;
    bottom: 20%;
    z-index: 10;
    filter: blur(35px);
    opacity: var(--card-shine-opacity);
    transform: translateX(-50%);
    background-image: var(--card-shine-gradient);
}

/* Background tiles and lines */
.card .background {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
    mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

.card .background .tiles {
    opacity: 0;
    transition: opacity .25s;
}

.card .background .tiles .tile {
    position: absolute;
    /* JavaScript will set background-color directly */
    animation-duration: 8s;
    animation-iteration-count: infinite;
    opacity: 0;
    transition: background-color 0.5s ease; /* Added for smooth color transitions */
}

/* Tile animation delays */
.card .background .tiles .tile.tile-4,
.card .background .tiles .tile.tile-6,
.card .background .tiles .tile.tile-10 {
    animation-delay: -2s;
}

.card .background .tiles .tile.tile-3,
.card .background .tiles .tile.tile-5,
.card .background .tiles .tile.tile-8 {
    animation-delay: -4s;
}

.card .background .tiles .tile.tile-2,
.card .background .tiles .tile.tile-9 {
    animation-delay: -6s;
}

@keyframes tile {
    0%, 12.5%, 100% { opacity: 1; }
    25%, 82.5% { opacity: 0; }
}

/* Tile positioning and sizing */
.card .background .tiles .tile.tile-1 { top: 0; left: 0; height: 10%; width: 22.5%; }
.card .background .tiles .tile.tile-2 { top: 0; left: 22.5%; height: 10%; width: 27.5%; }
.card .background .tiles .tile.tile-3 { top: 0; left: 50%; height: 10%; width: 27.5%; }
.card .background .tiles .tile.tile-4 { top: 0; left: 77.5%; height: 10%; width: 22.5%; }
.card .background .tiles .tile.tile-5 { top: 10%; left: 0; height: 22.5%; width: 22.5%; }
.card .background .tiles .tile.tile-6 { top: 10%; left: 22.5%; height: 22.5%; width: 27.5%; }
.card .background .tiles .tile.tile-7 { top: 10%; left: 50%; height: 22.5%; width: 27.5%; }
.card .background .tiles .tile.tile-8 { top: 10%; left: 77.5%; height: 22.5%; width: 22.5%; }
.card .background .tiles .tile.tile-9 { top: 32.5%; left: 50%; height: 22.5%; width: 27.5%; }
.card .background .tiles .tile.tile-10 { top: 32.5%; left: 77.5%; height: 22.5%; width: 22.5%; }

.card .background .line {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s;
}

.card .background .line::before,
.card .background .line::after {
    content: '';
    position: absolute;
    background-color: var(--card-line-color);
    transition: transform .35s;
}

.card .background .line::before {
    left: 0;
    right: 0;
    height: 1px;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.card .background .line::after {
    top: 0;
    bottom: 0;
    width: 1px;
    transform-origin: 50% 0;
    transform: scaleY(0);
}

.card .background .line.line-1::before { top: 10%; }
.card .background .line.line-1::after { left: 22.5%; }
.card .background .line.line-1::before,
.card .background .line.line-1::after { transition-delay: .3s; }

.card .background .line.line-2::before { top: 32.5%; }
.card .background .line.line-2::after { left: 50%; }
.card .background .line.line-2::before,
.card .background .line.line-2::after { transition-delay: .15s; }

.card .background .line.line-3::before { top: 55%; }
.card .background .line.line-3::after { right: 22.5%; }

/* --- Card Hover Effects --- */
.card:hover {
    box-shadow: 0px var(--card-hover-box-shadow-1-y) var(--card-hover-box-shadow-1-blur) var(--card-hover-box-shadow-1), 0px var(--card-hover-box-shadow-2-y) var(--card-hover-box-shadow-2-blur) var(--card-hover-box-shadow-2), 0 0 0 1px var(--card-hover-border-color);
}

.card:hover .icon::after {
    background-color: var(--card-hover-icon-background-color);
    border-color: var(--card-hover-icon-border-color);
}

.card:hover .icon svg {
    color: var(--card-hover-icon-color);
}

.card:hover .shine {
    opacity: 1;
    transition-duration: .5s;
    transition-delay: 0s;
}

.card:hover .background .tiles {
    opacity: 1;
    transition-delay: .25s;
}

.card:hover .background .tiles .tile {
    animation-name: tile;
}

.card:hover .background .line {
    opacity: 1;
    transition-duration: .15s;
}

.card:hover .background .line::before {
    transform: scaleX(1);
}

.card:hover .background .line::after {
    transform: scaleY(1);
}

.card:hover .background .line.line-1::before,
.card:hover .background .line.line-1::after { transition-delay: .0s; }
.card:hover .background .line.line-2::before,
.card:hover .background .line.line-2::after { transition-delay: .15s; }
.card:hover .background .line.line-3::before,
.card:hover .background .line.line-3::after { transition-delay: .3s; }

/* --- Day/Night Toggle Styles --- */
.day-night {
    cursor: pointer;
    opacity: .5;
}

.day-night input {
    display: none;
}

.day-night input + div {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    position: relative;
    box-shadow: inset 8px -8px 0 0 var(--text-color);
    transform: scale(1) rotate(-2deg);
    transition: box-shadow .5s ease 0s, transform .4s ease .1s;
    --text-color: #006fb4;
}

.day-night input + div::before {
    content: '';
    width: inherit;
    height: inherit;
    border-radius: inherit;
    position: absolute;
    left: 0;
    top: 0;
    transition: background-color .3s ease;
    --text-color: #fff800;
}

.day-night input + div::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: -3px 0 0 -3px;
    position: absolute;
    top: 50%;
    left: 50%;
    box-shadow: 0 -23px 0 var(--text-color), 0 23px 0 var(--text-color), 23px 0 0 var(--text-color), -23px 0 0 var(--text-color), 15px 15px 0 var(--text-color), -15px 15px 0 var(--text-color), 15px -15px 0 var(--text-color), -15px -15px 0 var(--text-color);
    transform: scale(0);
    transition: all .3s ease;
}

.day-night input:checked + div {
    box-shadow: inset 20px -20px 0 0 var(--text-color);
    transform: scale(.5) rotate(0deg);
    transition: transform .3s ease .1s, box-shadow .2s ease 0s;
}

.day-night input:checked + div::before {
    background: var(--text-color);
    transition: background-color .3s ease .1s;
}

.day-night input:checked + div::after {
    transform: scale(1);
    transition: transform .5s ease .15s;
}

/* --- Responsive Adjustments (Cards) --- */
@media (max-width: 768px) {
    /* Adjust overall padding for page wrapper on smaller screens */
    .mma-page-wrapper {
        padding: 0 10px;
    }

    /* Adjust padding of the card wrapper for fades */
    .mma-card-scroll-wrapper {
        padding: 0 5px;
    }

    /* Reduce fade width on smaller screens if desired */
    .mma-card-scroll-wrapper::before,
    .mma-card-scroll-wrapper::after {
        width: 50px;
    }

    .grid {
        padding-left: 10px;
        padding-right: 10px;
        gap: 20px; /* Slightly smaller gap */
    }

    .card {
        width: 240px; /* Adjust card width for smaller screens */
        height: 200px;
        padding: 2px 15px 15px 15px; /* Adjust padding for smaller cards */
    }

    .card h4 {
        font-size: 1.1em;
    }

    .card p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .card {
        width: 240px; /* Almost full width for very small screens */
    }
}

/* --- Table Section Styles --- */
.mma-report-data-section {
    padding: 20px 0; /* Keep top/bottom padding here */
    background-color: var(--background-color); /* Matches page background or card background for grouping */
    margin-bottom: 40px; /* Spacing below the section */
    width: 100%;
    box-sizing: border-box;
    th, td {
    white-space: normal;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    max-width: 200px;
    font-size: clamp(0.8em, 2vw, 1em);
    padding: 1px;
    text-align: center;
    vertical-align: middle;
    }
    table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    }
}

/* Wrapper for horizontal table scrolling */
.mma-table-scroll-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling for the table */
    width: 100%; /* Take full width of its parent */
    box-sizing: border-box; /* Include padding in width */
    padding: 0 10px; /* Add horizontal padding to match the card scroller and h2 */
    margin-top: 10px; /* Some spacing above the table for visual separation */
    scrollbar-width: thin; /* Firefox scrollbar */
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); /* Firefox scrollbar colors */
}

/* Custom scrollbar for Webkit browsers (Chrome, Safari) */
.mma-card-scroll-wrapper::-webkit-scrollbar,
.mma-table-scroll-wrapper::-webkit-scrollbar {
    height: 8px; /* Height of the horizontal scrollbar */
}

.mma-card-scroll-wrapper::-webkit-scrollbar-track,
.mma-table-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

.mma-card-scroll-wrapper::-webkit-scrollbar-thumb,
.mma-table-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-track); /* Space between thumb and track */
}

/* Ensure the table itself doesn't cause issues inside the wrapper */
.mma-table-scroll-wrapper table {
    width: auto; /* Allow table to be wider than 100% if content requires */
    min-width: 100%; /* But ensure it fills the wrapper if it's smaller */
    border-collapse: collapse; /* Ensure table borders are properly handled */
}

/* Adjust h2 padding for both sections to align with their respective scroll wrappers */
.mma-purchased-products-section h2,
.mma-report-data-section h2 {
    margin-left: 0;
    padding-left: 10px; /* Consistent left padding */
    padding-right: 10px; /* Consistent right padding */
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* --- General Font & Link Styles --- */
a {
    color: #7aa6bb; /* Default link color */
    text-decoration: none;
    background-color: transparent;
    font-size: 16px;
}

a:hover {
    text-decoration: underline;
}

a:hover,
a:focus {
    text-decoration: none;
}

b {
    font-weight: 700;
}

/* --- Form Input Styles --- */
button,
input,
select,
textarea {
    line-height: inherit;
    padding: .5rem;
    border-radius: 25px;
}

/* --- Login Form Specific Styles (also affects logged-out view) --- */
.mma-form-container {
    max-width: 96vw;
    width: 90%;
    max-width: 20rem; /* Keeps it from getting too wide on large screens */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mma-page-heading-h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #32323b; /* Specific color for this heading, as it's part of the login form */
}

.mma-container-content-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mma-form-base {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mma-form-group1,
.mma-form-group2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.mma-form-group3 {
    margin-bottom: 1rem;
}

.mma-label-form-group {
    display: block;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.25rem;
    font-size: .9rem!important;
    text-align: left;
    width: 100%;
}

.mma-form-input {
    font-size: 1rem;
    text-indent: .8rem;
    padding: .8rem 0;
    outline: none;
    width: 100%;
    border: 1px solid #e9eaea;
    border-radius: 25px;
    transition: border-color .15s;
    font-weight: 400;
    box-sizing: border-box;
}

.mma-form-input:focus {
    border-color: #4c7ef3;
}

.mma-pad-bottom-if-not-empty {
    text-align: left;
}

.mma-container-forgot {
    position: relative;
    width: 100%;
}

.mma-forgot-style {
    font-size: .9rem;
    color: #2e4a99!important;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mma-register-btn {
    padding: 0;
}

.mma-out-link {
    display: block;
    margin-top: 15px;
    color: #4169e1;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.mma-out-link:hover {
    text-decoration: underline;
}

.mma-out-link-register {
    text-align: right;
    display: block;
    color: #6400e4;
}

.mma-out-link-register:focus,
.mma-out-link-register:hover {
    color: #5900cb;
}

/* --- Notification & Popup Styles --- */
.mma-notification {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease-out;
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    font-weight: bold;
}

.mma-notification.show {
    display: block;
}

.mma-popup {
    border-radius: 25px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    padding: 20px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite ease-in-out;
}

.mma-popup-content {
    color: #333;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --- Mobile Unsupported Message --- */
.mma-mobile-message {
    display: none;
    background-color: #ffe0b2;
    color: #e65100;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 500px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
    position: relative;
}

/* --- Responsive Design (General Adjustments) --- */
@media (max-width: 768px) {
    .mma-mobile-message {
        display: block;
    }

    .mma-nav-appbar.mma-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .mma-section-content {
        width: 100%;
        margin-bottom: 10px;
    }

    .mma-desktop-view {
        display: none;
    }

    .mma-form-container {
        padding: 2px;
        max-width: 100%;
    }

    .mma-link-list-styles li {
        margin: 5px 10px;
    }

    .mma-page-heading-h1 {
        font-size: 2em;
    }
}

/* --- Order Status Container Specific Styles --- */
.order-status_container .slide1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: .7s;
}

.card:hover .order-status_container .slide1 {
    transform: translateY(0);
}

.order-status_container .slide2 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: .8s;
    transform: translateY(-200px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card:hover .order-status_container .slide2 {
    transform: translateY(0);
}
.mma-payment-status {
    display: block;
    padding: 3px 8px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 0 0 25px 25px;
    font-size: 1.0em;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgb(0 0 0 / 57%);
    bottom: 0;
    width: 240px;
    position: absolute;
    margin: 0px 0px 15px 0px; 
    padding: 1.5vh 0 .2vh 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.MainCard:hover .order-status_container .mma-payment-status {
    transform: translateY(10%);
    opacity: 1;
}

/* Optional: overlay styling for product name */
.image-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.image-wrapper img {
    width: 65%;
}

.product-name-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgb(16 44 67 / 55%);
    padding: 4px 8px;
    font-weight: bold;
    text-align: center;
    font-weight: 900;
    border-radius: 10px;
    pointer-events: none;
}
