﻿.form-field:focus-within {
    transform: scale(1.52);
    box-shadow: 0 0 15px #1976d2;
}

.fancy-input {
  /*  background-color:red;*/
}



.tight-table .mud-table-root,
.tight-table .mud-table-cell,
.tight-table .mud-table-row {
    padding: 2px 8px !important;
    min-height: 28px !important;
}

.tight-table .mud-table-head {
    font-size: 0.95rem;
    font-weight: 600;
}





.tab-active-blue .mud-tab {
    background: white !important;
    border: 2px solid darkblue;
    border-bottom: none;
    font-weight: bold;
}

.tab-active-red .mud-tab {
    background: white !important;
    border: 2px solid red;
    border-bottom: none;
    font-weight: bold;
}

.tab-inactive .mud-tab {
    background: #ccc;
    color: #666;
    border: none;
}

.border-red {
    border: 1px solid red !important;
    border-radius: 8px;
}


.thumbnail-item:hover {
    background: rgba(0,0,0,0.05);
    transition: background 0.2s;
}

.thumbnail-select-card {
    transition: transform 0.2s;
}

    .thumbnail-select-card:hover {
        transform: scale(1.05);
    }



@keyframes dropIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.drop-in {
    animation: dropIn 0.6s ease-out forwards;
}

.card-container {
    position: relative;
   /* overflow: hidden;*/
    display: inline-block;
    vertical-align: top;
    margin: 16px;
    width: 300px; /* Match card width */
    /*height: 400px;*/ /* Match card height */
    transform: scale(1);
    transition: transform 0.3s ease;
    top:30px;
}

    .card-container:hover {
        transform: scale(1.05);
    }

    /* Base image container */
    .base-img,
    .card-container img {
        width: 100%;
        height: auto; /* Allows height to adjust based on width */
        /*  max-height: 60%;  */ /* Constrain image to top portion of card */
        object-fit: contain; /* Ensures full image is visible without cropping */
        object-position: center; /* Centers the image within its container */
        display: block;
        border-top-left-radius:5px;
        border-top-right-radius: 5px;
    }

/* Remove hover image overlay if using hover-img */
.hover-img {
    display: none !important;
}

/* Hover panel slides up from just under image into card content area */
.hover-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: white; /* Solid white background */
    color: black;
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.card-container:hover .hover-panel {
    opacity: 1;
    transform: translateY(0);
}

.blur {
    backdrop-filter: blur(10px);
}

.dialog-background {
    background-color: transparent;
}

.dialog-background-title {
    background: rgb(from var(--mud-palette-info-lighten) r g b / 50%);
    color: var(--mud-palette-white);
}

.dialog-background-surface {
    background: rgb(from var(--mud-palette-surface) r g b / 75%);
}

.narrow-column {
    width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wide-column {
    width: 500px;
}

.invoice-container {
    margin: 40px auto;
    max-width: 1000px;
    background-color: white;
    padding: 30px;
    border-radius: 4px;
}

invoicebody {
    background-color: #fafafa;
}

.border-black {
    border: 1px solid black;
}

.door-style-scroll-area {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    padding-right: 8px;
    min-height: 400px;
}

.door-style-card {
    width: 110px;
    margin: 12px 8px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .door-style-card:hover .door-style-img-container {
        z-index: 2;
        transform: scale(1.5);
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    }

.door-style-img-container {
    position: relative;
    width: 90px;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #fdf6e3;
    border-radius: 6px;
    overflow: hidden;
}

.door-style-img {
    width: 90px;
    object-fit: cover;
    border-radius: 6px;
    background: #fdf6e3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
}

.overlay-style-card {
    width: 210px;
    margin: 12px 8px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .overlay-style-card:hover .overlay-style-img-container {
        z-index: 2;
        transform: scale(1.1);
       /* box-shadow: 0 8px 32px rgba(0,0,0,0.18);*/
    }


.overlay-style-img-container {
    position: relative;
    max-width: 250px;
    /* height: 120px;*/
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background:none; /* Cream color */
}

.overlay-style-img {
    max-width: 250px;
    /*height: 120px;*/
    object-fit: cover;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background: none; /* Cream color */
   /* box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
    display: block;
}

/*.door-style-price-strip {
    width: 100%;
    height: 28px;
    background: #fdf6e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}*/

/* Default: on top of image */
.price-strip-on-image {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* For short images: move price strip below image */
.price-strip-below-image {
    position: static;
    margin-top: 4px;
}

.door-style-price-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: #fdf6e3;  Cream color 
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.door-style-name {
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

/* Wood species card styling */
.wood-species-card {
    width: 140px;
    margin: 12px 8px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wood-species-card:hover {
    z-index: 100;
    transform: scale(1.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.wood-species-card.selected {
    border: 3px solid #1976d2;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
    position: relative;
}

.wood-species-card.selected::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

.wood-species-img-container {
    position: relative;
    width: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wood-species-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Selected state for door/drawer cards */
.door-style-card.selected {
    position: relative;
}

.door-style-card.selected .door-style-img-container {
    border: 3px solid #1976d2;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.door-style-card.selected::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #1976d2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

.door-appbar-gradient {
    background: linear-gradient(to bottom, rgba(33,150,243,0.15), rgba(25,118,210,0.15)) !important;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.mud-list-item, .mud-list-item.dense {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: 32px !important;
}

.mud-list {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.mud-avatar {
    margin-right: 8px !important;
}

.mud-stack.pa-0 {
    padding: 0 !important;
    margin: 0 !important;
}

.mud-list-item .mud-stack {
    margin: 0 !important;
}


:root {
    --drawer-grad-top: #0b2a52; /* dark navy */
    --drawer-grad-bottom: #000000; /* black */
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.22);
    --glass-highlight: rgba(255,255,255,0.55);
    --glass-shadow: rgba(0, 0, 0, 0.35);
    --accent: #4fc3f7;
}

/* Drawer chrome */
.glass-drawer {
    background: linear-gradient(180deg, var(--drawer-grad-top) 0%, var(--drawer-grad-bottom) 100%) !important;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    box-shadow: -10px 0 30px var(--glass-shadow) !important;
    border-left: 1px solid rgba(255,255,255,0.06);
}

/* Container for the cards */
.user-switcher-container {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

/* Glass “card buttons” */
.glass-card {
    position: relative;
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px var(--glass-shadow), inset 0 0 0 1px rgba(255,255,255,0.07);
    color: #eaf6ff;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, filter .22s ease;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

    .glass-card:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 14px 46px rgba(79,195,247,0.35), inset 0 0 0 1px rgba(255,255,255,0.18);
        border-color: var(--glass-highlight);
        filter: drop-shadow(0 0 10px rgba(79,195,247,0.45));
        background: linear-gradient(135deg, rgba(79,195,247,0.18), rgba(255,255,255,0.08));
    }

    /* Little glow accent strip */
    .glass-card::before {
        content: "";
        position: absolute;
        inset: -1px -1px auto auto;
        width: 100px;
        height: 100px;
        background: radial-gradient( circle at 70% 30%, rgba(79,195,247,0.35), transparent 60% );
        border-top-right-radius: 18px;
        pointer-events: none;
    }

/* Title + meta */
.user-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.user-meta {
    opacity: .9;
    font-size: .88rem;
}

.role-chip {
    display: inline-block;
    margin: 6px 6px 0 0;
    padding: 4px 10px;
    font-size: .78rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

/* Enter animation (cards fly up into place) */
@keyframes flyUpIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(.96);
    }

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

.fly-in .glass-card {
    animation: flyUpIn .50s cubic-bezier(.2,.8,.2,1) both;
}

    .fly-in .glass-card:nth-child(1) {
        animation-delay: .02s;
    }

    .fly-in .glass-card:nth-child(2) {
        animation-delay: .06s;
    }

    .fly-in .glass-card:nth-child(3) {
        animation-delay: .10s;
    }

    .fly-in .glass-card:nth-child(4) {
        animation-delay: .14s;
    }

    .fly-in .glass-card:nth-child(5) {
        animation-delay: .18s;
    }

/* Losing cards fly down and fade */
@keyframes flyDownOut {
    to {
        opacity: 0;
        transform: translateY(90px) scale(.94);
        filter: blur(2px);
    }
}

.fly-out-down {
    animation: flyDownOut .45s ease forwards;
}

/* Winner flies to avatar area (top-right). This aims to the AppBar corner visually) */
@keyframes flyUpToAvatar {
    0% {
        transform: translateY(0) scale(1);
        filter: none;
    }

    70% {
        transform: translate(-6vw, -12vh) scale(1.06);
        filter: drop-shadow(0 10px 35px rgba(79,195,247,0.55));
    }

    100% {
        transform: translate(-2vw, -16vh) scale(0.86);
        opacity: 0;
    }
}

.fly-up-to-avatar {
    position: relative;
    z-index: 5;
    animation: flyUpToAvatar .55s cubic-bezier(.09,.84,.32,1.08) forwards;
}

/* “Plop” effect for the AppBar avatar button when the new user lands */
@keyframes plop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.09);
        filter: drop-shadow(0 0 14px rgba(79,195,247,0.55));
    }

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

.user-pill-plop {
    animation: plop .35s ease-out;
}

/* AppBar user pill (glass button) */
.appbar-user-pill {
    border-radius: 999px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #eaf6ff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px var(--glass-shadow);
}

    .appbar-user-pill .pill-name {
        font-weight: 600;
        letter-spacing: .2px;
        max-width: 26ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .appbar-user-pill .pill-role {
        font-size: .78rem;
        opacity: .85;
        border-left: 1px solid rgba(255,255,255,.18);
        padding-left: 8px;
    }

/* Carousel Container Styles */
.carousel-main-container {
    height: calc(100vh - 200px);
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.carousel-slide-container {
    min-height: calc(100vh - 250px);
    padding-bottom: 100px;
}

.slide-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    flex-direction: column;
    gap: 16px;
}

.slide-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slide-content.loading {
    opacity: 0.5;
}
/* Modern Home Page Styles */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #b6d7f0 !important;
}

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

/* Clean card styling */
.modern-action-card {
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
}

.modern-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #b6d7f0;
}

/* Icon containers */
.action-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.primary-icon {
    background: linear-gradient(135deg, #002C47 0%, #1565c0 100%);
    box-shadow: 0 4px 20px rgba(0, 44, 71, 0.3);
}

.secondary-icon {
    background: linear-gradient(135deg, #b6d7f0 0%, #90caf9 100%);
    box-shadow: 0 4px 20px rgba(182, 215, 240, 0.4);
}

.tertiary-icon {
    background: linear-gradient(135deg, #ceb888 0%, #d4c49a 100%);
    box-shadow: 0 4px 20px rgba(206, 184, 136, 0.4);
}