﻿@import url('font/quicksand.css');

body, html {
 height:100%;
}

body {
    color: var(--theme-text, #0f172a);
    background: radial-gradient(circle at 18% 20%, rgba(99,102,241,0.05), transparent 26%),
                radial-gradient(circle at 78% 8%, rgba(14,165,233,0.05), transparent 20%),
                #f6f7fb;
 padding-top:5rem;
 flex-direction: column;
 font-family: 'quicksand';
 overflow-y: auto;
}

h1, h2, h3, h4, h5,
.page-title,
.section-title {
    color: var(--theme-text, #0f172a);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.section-subtitle { color: var(--theme-muted, #475569); font-weight: 600; }

 .a{
  text-decoration:none;
 }

/* Password toggle global styles */
.password-toggle-container {
 position: relative;
 width:100%;
 display: block;
}

/* Target the MatTextField input area; ensure full width and padding for the eye */
.password-toggle-container .password-toggle-input,
.password-toggle-container input,
.password-toggle-container .form-control {
 width:100% !important;
 padding-right:3.2rem !important; /* espacio para el botón del ojo */
 box-sizing: border-box;
}

/* Position the button inside the input on the right */
.password-toggle-button {
 position: absolute;
 right:0.6rem;
 top:50%;
 transform: translateY(-50%);
 background: transparent;
 border: none;
 display: flex;
 align-items: center;
 justify-content: center;
 padding:0.15rem;
 cursor: pointer;
 color: #444;
 z-index:3; /* sit on top of the input */
 height:1.8rem;
 width:1.8rem;
 border-radius:0.25rem;
}

.password-toggle-button:focus {
 outline: none;
}

.password-toggle-button .material-icons {
 font-size:20px;
 line-height:1;
}

/* Small screens adjustments */
@media (max-width:480px) {
 .password-toggle-container .password-toggle-input,
 .password-toggle-container input,
 .password-toggle-container .form-control {
 padding-right:3.8rem !important;
 }
 .password-toggle-button {
 right:0.5rem;
 }
}

/* Ensure button doesn't overflow parent when MatTextField uses inner wrappers */
.password-toggle-container > .password-toggle-button,
.password-toggle-container button.password-toggle-button {
 pointer-events: auto;
}

.profile-avatar-img {
 width:80px;
 height:80px;
 object-fit: cover;
 border-radius:50%;
 border:2px solid #88B0BA;
 background: #fff;
}

.avatar {
    position: relative;
    width: 3.6rem;
    height: 3.6rem;
    background-color: #2c3e50;
    color: white;
    font-weight: 500;
    font-size: 2.16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s, border 0.2s;
    cursor: pointer;
}

.profile-avatar-img-principal {
    
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #88B0BA;
    background: #fff;
    position: relative;
    width: 3.6rem;
    height: 3.6rem;      
    display: flex;
    align-items: center;
    justify-content: center;    
}

.profile-avatar-img-principal.avatar-enhanced {
    border: 2.5px solid #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    cursor: pointer;
    width: 4.32rem;
    height: 4.32rem;
    transition: box-shadow 0.2s, border 0.2s, width 0.2s, height 0.2s;
}

.mat-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .mat-select:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }


.toppings {
    text-align: center;
    display: block;
    padding-left: 4rem;
}

.topping {
    display: inline-block;
    background-color: #87CEEB;
    color: black;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 2rem;
    margin: 0.4rem 0.3rem;
    font-weight: 400;
    text-align: center;
}

.topping-price {
    font-weight: 100;
    font-size: 0.8rem;
}

.delete-topping {
    background: none;
    font-weight:600;
    border: none;
    color: white;
    padding: 0.2rem 0.2rem 0.3rem 0.2rem;
    cursor: pointer;
}

    .delete-topping:hover {
        color: yellow;
    }

.i-text{
    width:25vw;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.18), transparent 35%),
                radial-gradient(circle at 70% 60%, rgba(14,165,233,0.16), transparent 30%),
                rgba(10,12,29,0.6);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(99,102,241,0.9), rgba(20,184,166,0.9), rgba(14,165,233,0.9), rgba(99,102,241,0.9));
    mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
    animation: spin 0.9s linear infinite;
    box-shadow: 0 18px 36px rgba(15,23,42,0.28);
}

.spinner::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: rgba(15,23,42,0.9);
    box-shadow: inset 0 1px 6px rgba(255,255,255,0.18);
}

.spinner::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, rgba(255,255,255,0.7));
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 22px rgba(255,255,255,0.7);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


    form {
        width: 100%;
    }

    .form-group.row > .col-form-label {
        text-align: right;
    }

    .gradient-background {
        background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
        min-height: 100vh; /* Asegura que el fondo cubra toda la altura de la ventana */
    }


.top-bar {
    height: 8rem; /* Aumenta la altura */
    background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 45%, #e0f7f6 100%);
    display: flex;
    align-items: stretch;
    color: #0f172a;
    box-shadow: 0 6px 24px rgba(15,23,42,0.08);
    border-bottom: 1px solid rgba(148,163,184,0.35);
    backdrop-filter: blur(10px);
    padding: 0 3rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

    .logo {
        display: flex;
    }

    .logo > img {
        margin-right: 3rem;
        width: 9rem;
    }

    .content {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        z-index: 1;
        background-color: white;
    }

    .main {
        flex-grow: 1;
        overflow: visible;
        /*background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 80%);*/
        padding: 1rem !important;
        width: 100%;
    }

    .nav-tab {
        margin: 0;
        padding: 0.3rem 1.8rem;
        display: inline-block;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(148,163,184,0.35);
        box-shadow: 0 14px 28px rgba(15,23,42,0.08);
        display: flex;
        flex-direction: column;
        alignment-items: center;
        justify-content: center;
        font-size: 0.95rem;
        color: #0f172a;
        position: relative;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        border-radius: 18px;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .nav-tab:hover {
        color: var(--theme-primary-strong, #4f46e5);
        text-decoration: none;
        background: #eef2ff;
        transform: translateY(-2px);
        box-shadow: 0 20px 36px rgba(15,23,42,0.12);
    }

    .nav-tab.active {
        background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #14b8a6));
        color: #0b1221;
        box-shadow: 0 18px 32px rgba(99,102,241,0.25);
    }

    .nav-tab img {
        height: 2rem;
        margin-bottom: 0.25rem;
    }

    .nav-tab.active img {
        filter: brightness(0) saturate(100%) invert(93%) sepia(18%) saturate(797%) hue-rotate(316deg) brightness(109%) contrast(101%);
    }

    .nav-tab.active:after {
        content: "";
        position: absolute;
        bottom: -1rem;
        z-index: 1;
        width: 0px;
        height: 0px;
        border-left: 0.6rem solid transparent;
        border-right: 0.6rem solid transparent;
        border-top: 1rem solid rgb(205,51,51);
    }

    .user-info {
        margin-left: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .user-info img {
        margin-right: 0.7rem;
        width: 3.9rem;
    }

    .user-info .username {
        display: block;
        font-weight: 700;
        line-height: 0.7rem;
        margin-top: 0.5rem;
        color: #0f172a;
        font-size: 1rem;
    }

    .user-info a {
        color: var(--theme-primary-strong, #4f46e5);
        font-size: 0.85rem;
        font-weight: 700;
        text-decoration: none;
    }

    .user-info button.sign-out {
        color: var(--theme-muted, #475569);
        font-size: 0.85rem;
        padding: 0;
    }

    .pizza-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, 20rem);
        grid-gap: 2rem;
        justify-content: center;
        padding-left: 0;
    }

    .pizza-cards > li {
        height: 10rem;
        position: relative;
        background-size: cover;
        border-radius: 0.5rem;
        list-style-type: none;
        box-shadow: 0 3px 4px rgba(0,0,0,0.4);
        transition: 0.1s ease-out;
    }

    .pizza-cards > li:hover {
        transform: scale(1.02);
    }

    .pizza-info {
        border-radius: 0.5rem;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: absolute;
        background: linear-gradient(rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 80%);
        padding: 1rem 1rem;
        color: #fff2cc;
        cursor: pointer;
        text-shadow: 0 2px 2px rgba(0,0,0,0.5);
        line-height: 1.25rem;
    }

    .pizza-info .title {
        color: white;
        font-size: 1.4rem;
        display: block;
        margin: 0.2rem 0 0.4rem 0;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
    }

    .pizza-info .price {
        position: absolute;
        bottom: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
        font-weight: 700;
        padding: 0rem 0.7rem;
        border-radius: 4px;
        background-color: #08af08;
        color: white;
        line-height: 2rem;
    }

    .price::before {
        /* content: '$';*/
        font-weight: 300;
        font-size: 1.2rem;
        margin-right: 0.2rem;
    }

    .sidebar {
        background-color: #2b2b2b;
        width: 12rem;
        display: flex;
        flex-direction: column;
        color: white;
        height: 87vh;
        /* Add bottom padding so the bottom content (order-total) is visible above the fixed footer */
        padding-bottom:6.5rem; /* footer height + some breathing room */
        box-sizing: border-box;
        position: relative; /* to allow z-index to take effect */
        z-index:1020; /* sit above the footer (footer z-index:1010) */
        border-radius: 0.75rem;
        overflow: hidden;
    }

    .order-contents {
        overflow-y: auto;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        flex-grow: 1;
        /* Make sure scroll area does not go under the fixed order-total */
        margin-bottom: 0.5rem;
    }

    .order-total {
         background-color: rgb(191, 52, 52);
         height: 4rem;
         flex-shrink: 0;
         display: flex;
         flex-direction: row;
         align-items: center;
         color: white;
         font-size: 1.2rem;
         transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
         padding: 0 1.5rem;
         /* Ensure the order-total is visible above footer when sidebar overlaps */
         box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    }

    .order-total.hidden {
        transform: translate3d(0, 4rem, 0);
    }

    .order-total .total-price {
        font-weight: 500;
        font-size: 1.2rem;
    }

    .order-total .total-price::before {
        /*content: '$';*/
        font-weight: 300;
        margin: 0 0.1rem 0 0.4rem;
    }

    .order-total .btn {
       margin-left: 1rem;
        font-weight: 700;
        border-radius: 20px;
        padding: 0.4rem 1.2rem;
    }

    .checkout-button {
        margin: auto;
        display: block;
        font-weight: 700;
        border-radius: 20px;
        padding: 0.4rem 1.2rem;
    }

    .cart-item {
        background-color: #333333;
        padding: 0.8rem 1.2rem;
        border-radius: 6px;
        font-weight: 100;
        margin-top: 1rem;
        position: relative;
    }

    .cart-item .title {
        font-weight: 700;
    }

    .cart-item ul {
        padding: 0;
        margin: 0.4rem 0.6rem;
    }

    .cart-item li {
        list-style-type: none;
        margin-left: 0rem;
        font-size: 0.8rem;
    }

    .empty-cart {
        text-align: center;
        margin: auto;
        font-size: 1.5rem;
        font-weight: 100;
        color: #676767;
    }

    .item-price {
        font-weight: 500;
    }

    .item-price::before {
        /* content: '$';*/
        font-weight: 100;
        margin-right: 0.3rem;
    }

    .delete-item {
        position: absolute;
        top: 0;
        right: 0;
        content: 'X';
        cursor: pointer;
        color: #fff2cc;
        width: 2rem;
        height: 2rem;
        text-align: center;
    }

    .delete-item:hover {
        text-decoration: none;
        color: #fff2cc;
        background-color: rgba(255,255,255,0.1);
    }

    .configured-pizza-item {
        display: flex;
        flex-direction: row;
    }

.dialogproduct-container {
    margin: 8rem 0rem 0rem 0rem;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    animation: dialog-container-entry 0.2s;
}

@keyframes dialogproduct-container-entry {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.dialogproduct {
    background-color: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    width: 750px;
    max-height: calc(100% - 1rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

@keyframes dialogproduct-entry {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateX(0px) scale(1.0);
    }
}

.dialogproduct-title {
    background-color: #444;
    color: #fff2cc;
    padding: 1.3rem 2rem;
}

    .dialogproduct-title h2 {
        color: white;
        font-size: 1.4rem;
        margin: 0;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        line-height: 1.3rem;
    }

.dialogproduct-body {
    flex-grow: 1;
    padding: 1rem 4rem 1rem 2rem;
}

.dialogproduct-buttons {
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #eee;
    padding: 0 1rem;
}

.dialogproduct-body > div {
    display: flex;
    margin-top: 1rem;
}

.dialogproduct-body label {
    text-align: right;
    width: 200px;
    height: 25px;
    margin: 0.1rem 1rem;
}

.dialogproduct-body input, .dialog-body select {
    flex-grow: 1;
    width: unset;
}

.dialogproduct-body .size-label {
    min-width: 110px;
    text-align: right;
}

    .dialog-container {
        margin: 8rem 0rem 0rem 0rem;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 2000;
        display: flex;
        animation: dialog-container-entry 0.2s;
    }

    @keyframes dialog-container-entry {
        0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.dialog {
    background-color: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    align-self: center;
    margin: auto;
    width: 700px;
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

@keyframes dialog-entry {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateX(0px) scale(1.0);
    }
}

.dialog-title {
    background-color: #444;
    color: #fff2cc;
    padding: 1.3rem 2rem;
}

    .dialog-title h2 {
        color: white;
        font-size: 1.4rem;
        margin: 0;
        font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        line-height: 1.3rem;
    }

.dialog-body {
    flex-grow: 1;
    padding: 1rem 4rem 1rem 2rem;
}

.dialog-buttons {
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background-color: #eee;
    padding: 0 1rem;
}

    .dialog-body > div {
        display: flex;
        margin-top: 1rem;

    }

    .dialog-body label {
        text-align: right;
        width: 200px;
        height: 25px;
        margin: 0.1rem 1rem;
    }

    .dialog-body input, .dialog-body select {
        flex-grow: 1;
        width: unset;
    }

    .dialog-body .size-label {
        min-width: 110px;
        text-align: right;
    }

.form-message {
    padding: 0.5rem;
    font-weight: 700;
}

.dialog .price {
    font-weight: 700;
    font-size: 1.5rem;
}

.orders-list .list-group-item {
    display: flex;
}

.list-group-item-spaced {
    padding: 1rem; /* Espaciado interno para mayor claridad */
    background-color: #fff; /* Fondo blanco para cada elemento */
    border: 1px solid #ddd; /* Borde para mayor separación visual */
    border-radius: 0.25rem; /* Bordes redondeados para un mejor aspecto */
    border-top: 1px solid #ddd; /* Borde superior igual que el inferior */
}

.orders-list .col {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

.orders-list .col {
    margin: auto;
}

.orders-list h5 {
    color: #c03939;
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0.2rem 0 0.2rem 0;
    font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.track-order {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .track-order > div {
        overflow-y: hidden;
    }

.track-order-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    padding-left: 0.25rem;
}

.track-order-title .title-left,
.track-order-title .title-center,
.track-order-title .title-right {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.track-order-title .title-center { margin-left:1rem; }

.track-order-title h2 { margin:0; font-size:1.25rem; }

.track-order-title .status-line { margin:0; margin-top: 0.5rem; }

.order-date { font-weight:600; margin-left: 0.5rem; }

.order-state {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 padding: 0.35rem 0.7rem;
 border-radius: 999px;
 background: linear-gradient(180deg, #f8f9fb, #eef2f6);
 color: #0f1720;
 font-weight: 600;
 font-size: 0.95rem;
 border: 1px solid rgba(15,23,32,0.06);
 box-shadow: 0 2px 6px rgba(15,23,32,0.04);
}


.chip {
 display: inline-block;
 padding: .25rem .5rem;
 border-radius:999px;
 color: #fff;
 font-size: .85rem;
 margin-left:1rem;
 margin-right: .5rem;
}

.chip-green { background-color: #28a745; }
.chip-red { background-color: #dc3545; }
.chip-blue { background-color: #007bff; }
.chip-gray { background-color: #6c757d; }

.track-order {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .track-order > div {
        overflow-y: hidden;
    }

.track-order-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    padding-left: 0.25rem;
}

.track-order-title .title-left,
.track-order-title .title-center,
.track-order-title .title-right {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.track-order-title .title-center { margin-left:1rem; }

.track-order-title h2 { margin:0; font-size:1.25rem; }

.track-order-title .status-line { margin:0; margin-top: 0.5rem; }

.order-date { font-weight:600; margin-left: 0.5rem; }

.order-state .state-text { font-weight:700; margin-left: 0.4rem; }

a.sign-in {
    font-size: 14px;
    background: none;
    border: 2px white;
    border-radius: 2.5em;
    color: white;
    text-transform: uppercase;
    padding: 0.0rem 0.8rem 0.0rem 0.8rem;
    font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
    font-weight: 100;
    cursor: pointer;
    transition: 0.2s ease-out;
    margin-left: 1px;
}

    a.sign-in:hover {
        background-color: rgba(255,255,255,0.3);
        color: #fff2cc;
        border-color: #fff2cc;
    }

input[type=range] {
    -webkit-appearance: none;
    margin: 7.1px 0;
    height: 21px;
}

    input[type=range]:focus {
        outline: none;
    }

    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 5.8px;
        cursor: pointer;
        box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
        background: #dcdcdc;
        border-radius: 1.3px;
        border: 0px solid #010101;
    }

    input[type=range]::-webkit-slider-thumb {
        box-shadow: 0.9px 0.9px 1px rgba(0, 0, 49, 0.43), 0px 0px 0.9px rgba(0, 0, 75, 0.43);
        border: 0px solid #00001e;
        height: 20px;
        width: 20px;
        border-radius: 10px;
        background: #d45352;
        cursor: pointer;
        -webkit-appearance: none;
        margin-top: -7.1px;
    }

    input[type=range]:focus::-webkit-slider-runnable-track {
        background: #e1e1e1;
    }

    input[type=range]::-moz-range-track {
        width: 100%;
        height: 5.8px;
        cursor: pointer;
        box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
        background: #dcdcdc;
        border-radius: 1.3px;
        border: 0px solid #010101;
    }

    input[type=range]::-moz-range-thumb {
        box-shadow: 0.9px 0.9px 1px rgba(0, 0, 49, 0.43), 0px 0px 0.9px rgba(0, 0, 75, 0.43);
        border: 0px solid #00001e;
        height: 20px;
        width: 20px;
        border-radius: 10px;
        background: #d45352;
        cursor: pointer;
    }

    input[type=range]::-ms-track {
        width: 100%;
        height: 5.8px;
        cursor: pointer;
        background: transparent;
        border-color: transparent;
        color: transparent;
    }

    input[type=range]::-ms-fill-lower {
        background: #d7d7d7;
        border: 0px solid #010101;
        border-radius: 2.6px;
        box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
    }

    input[type=range]::-ms-fill-upper {
        background: #dcdcdc;
        border: 0px solid #010101;
        border-radius: 2.6px;
        box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
    }

    input[type=range]::-ms-thumb {
        box-shadow: 0.9px 0.9px 1px rgba(0, 0, 49, 0.43), 0px 0px 0.9px rgba(0, 0, 75, 0.43);
        border: 0px solid #00001e;
        height: 20px;
        width: 20px;
        border-radius: 10px;
        background: #d45352;
        cursor: pointer;
        margin-top: 0;
    }

.checkout-cols {
    display: flex;
}
    .checkout-cols h4 {
        margin-bottom: 1.5rem;
    }

    .checkout-cols > div {
        flex: 1;
        margin: 1rem;
        border: 1px solid #ddd;
        background: rgba(255,255,255,0.3);
        padding: 1.25rem 1rem;
    }

        .checkout-cols > div:first-child {
            margin-left: 0;
        }

        .checkout-cols > div:last-child {
            margin-right: 0;
        }

.loading-bar {
    position: absolute;
    top: calc(50% - 3px);
    left: calc(50% - 250px);
    width: 500px;
    height: 6px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2)
}

    .loading-bar::after {
        content: '';
        display: block;
        width: 200px;
        height: 100%;
        background-color: #dc105a;
        animation: progressbar-slide 1s infinite;
        animation-timing-function: ease-in-out;
    }

.form-field {
    display: flex;
    margin: 0.5rem;
}

    .form-field > label {
        width: 8rem;
    }

    .form-field > div {
        flex-grow: 1;
    }

    .form-field input {
        width: 100%;
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@keyframes progressbar-slide {
    0% {
        transform: translateX(-200px);
    }

    70% {
        transform: translateX(500px);
    }

    100% {
        transform: translateX(500px);
    }
}

/*Estilos de Sell*/
    .container {
        margin-top: 20px;
    }

    .product-details p {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .product-details strong {
        color: #333;
    }

    .card {
        border: 1px solid #e3e6f0;
        background-color: #f8f9fc;
    }

.radio-group input[type="radio"] {
    margin-right: 10px; /* Ajusta el valor según tus necesidades */
}
/*Estilos de Sell*/

/* Estilos movidos desde Users.razor y componentes embebidos */

.users-bg {
 min-height:100vh;
 background: linear-gradient(135deg, #667eea0%, #764ba2100%);
 width:100%;
 margin:0;
 padding:0;
 display: flex;
 flex-direction: column;
}

.users-list-container {
 background: rgba(255,255,255,0.95);
 border-radius:0;
 box-shadow: none;
 padding:2rem2vw;
 width:100%;
 min-height:100vh;
}

.users-title {
 text-align: left;
 color: #4f3c8d;
 margin-bottom:2rem;
 font-weight:700;
 font-size:2rem;
 letter-spacing:1px;
}

.users-list-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
 gap:2rem;
 width:100%;
}

.user-card {
 display: flex;
 flex-direction: column;
 align-items: center;
 background: #e3f2fd; /* azul claro, igual que la card de vendedor */
 border-radius:16px;
 padding:1.5rem1rem;
 box-shadow:02px8px rgba(76,110,245,0.08);
 transition: transform0.15s;
 min-height:180px;
 cursor: pointer;
}

.user-card:hover {
 transform: translateY(-2px) scale(1.03);
 box-shadow:04px16px rgba(76,110,245,0.15);
}

.avatar {
 width:64px;
 height:64px;
 border-radius:50%;
 background: #764ba2;
 display: flex;
 align-items: center;
 justify-content: center;
 overflow: hidden;
 margin-bottom:1rem;
 box-shadow:02px8px rgba(76,110,245,0.10);
}

.avatar img {
 width:100%;
 height:100%;
 object-fit: cover;
}

.avatar-placeholder {
 color: #fff;
 font-size:2rem;
 font-weight: bold;
}

.user-name {
 font-size:1.2rem;
 color: #4f3c8d;
 font-weight:600;
 text-align: center;
 word-break: break-word;
}

.loader, .no-users {
 text-align: center;
 color: #764ba2;
 font-size:1.1rem;
 margin-top:2rem;
}

/* CostSimulator moved styles */
.cost-simulator {
 box-shadow:04px8px rgba(0,0,0,0.1);
 border-radius:10px;
 padding:20px;
 background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.rounded-table {
 border-radius:10px;
 overflow: hidden;
}

.cost-simulator th, .cost-simulator td {
 padding:15px;
 text-align: left;
}

.cost-simulator td {
 background-color: #f9f9f9;
}

.description-column {
 font-weight: normal;
}

.value-column {
 font-weight: bold;
}

/* Centralized styles moved from ProductCarrusel and MainLayout */

/* Menu items from MainLayout */
.menu-item {
 text-decoration: none;
 color: black;
 transition: box-shadow0.3s ease-in-out;
 font-weight: bold;
 padding:5px;
}

.menu-item:hover {
 box-shadow:04px8px rgba(255,0,0,0.3);
 color: #4682B4;
}

.menu-item-active {
 box-shadow:0010px5px yellow;
 color: black;
 padding:5px;
}

.scroll-container {
 overflow-y: auto;
 height: calc(100vh -10px);
}

/* Small helper to replace inline container margin in MainLayout */
.layout-container {
 margin-left: -40px;
}

/* ProductCarrusel / featured section */
.carousel-button {
 border: none;
 background-color: transparent;
 padding:0;
 display: inline-block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
 background-color: black; /* Cambia el color de las flechas a negro */
}

.carousel-caption .caption-title {
 width:150px;
 color: black;
 font-weight:500;
 font-size:1rem;
}

.carousel-caption .caption-text {
 width:150px;
 color: black;
 font-weight:500;
 font-size:1rem;
}

.featured-section-card {
 background-color: white;
 border:1px solid #ddd;
 border-radius:8px;
 box-shadow:02px4px rgba(0,0,0,0.1);
 padding:20px;
 margin:20px0;
}

.featured-img {
 width:100%;
 height:12rem;
 object-fit: scale-down;
}

.product-price {
 font-weight:400;
 margin:0;
}

/* End centralized additions */

/* Verification page styles (codeverification) */
.verification-body {
 font-family: Arial, sans-serif;
 display: flex;
 justify-content: center;
 align-items: center;
 height:100vh;
 width:90vw;
 margin:0 auto;
 font-size:20px;
}

.verification-card {
 background-color: white;
 border-radius:10px;
 padding:20px;
 box-shadow:04px8px rgba(0,0,0,0.1);
 text-align: center;
 width:50vw;
}

.verification-title {
 font-weight: bold;
 color: white;
 background-color: rgba(255,87,51,0.8);
 padding:10px;
 border-radius:5px5px00;
 margin: -20px -20px20px -20px;
 font-size:30px;
 text-align: left;
}

.verification-subtitle {
 margin-top:20px;
 margin-bottom:50px;
 font-weight: bold;
 text-align: left;
 font-size:38px;
}

.verification-content { text-align: left; }

.verification-code {
 background-color: rgba(255,87,51,0.8);
 color: white;
 font-weight: bold;
 font-size:20px;
 padding:10px;
 border:1px solid #ccc;
 border-radius:5px;
 width:80px;
 height:40px;
 display: flex;
 justify-content: center;
 align-items: center;
}

/* End verification page styles */

/* Index page specific helpers */
.index-main {
 margin-bottom:19vh;
}

.index-main .order-contents {
 max-height:27rem;
 overflow-y: auto;
}

/* Footer spacer and fixed footer to keep footer visible without overlapping content */
.footer-spacer {
 /* Height matches footer height to avoid overlap with page content */
 height:6rem;
 flex-shrink:0;
 width:100%;
}

.site-footer {
 position: fixed;
 left:0;
 right:0;
 bottom:0;
 /* Use viewport width to guarantee full-bleed across the screen */
 width:100vw;
 max-width: none;
 box-sizing: border-box;
 height:6rem;
 background-color: #f8f9fc;
 box-shadow:0 -3px8px rgba(0,0,0,0.08);
 z-index:1010;
 display: flex;
 align-items: center;
 padding:0.5rem1rem;
}

/* Make sure any inner '.container' inside MainFooter does not limit width */
.site-footer .container,
.site-footer > * {
 width:100%;
 max-width: none;
 box-sizing: border-box;
}

@media (max-width:768px) {
 .footer-spacer {
 height:8rem;
 }
 .site-footer {
 height:8rem;
 }
}

/* Ensure main content can scroll independently and not be hidden behind fixed footer */
.main {
 /* existing rule keeps scrolling inside main; add padding-bottom as safety */
 padding-bottom: calc(6rem + 3rem) !important; /* extra space above footer */
}

/* Ambient sound enable overlay */
.ambient-enable-overlay {
 position: fixed;
 top:0;
 left:0;
 right:0;
 bottom:0;
 display: flex;
 align-items: center;
 justify-content: center;
 background: rgba(0,0,0,0.35);
 z-index:20000;
}

.ambient-enable-card {
 background: white;
 padding:1.5rem2rem;
 border-radius:8px;
 box-shadow:04px18px rgba(0,0,0,0.3);
 text-align: center;
 max-width:320px;
}

.ambient-enable-title {
 font-weight:700;
 margin-bottom:0.5rem;
}

.ambient-enable-desc {
 font-size:0.95rem;
 color: #444;
 margin-bottom:1rem;
}

.ambient-enable-btn {
 background-color: #1976d2;
 color: white;
 border: none;
 padding: 0.6rem 1rem;
 border-radius: 6px;
 cursor: pointer;
 font-weight: 700;
}

.ambient-enable-btn:active { transform: translateY(1px); }

/*End AI generator overlay styles*/

/* Modern hero + card theme (MySales and reusable) */
:root {
    --theme-primary: #6366f1;
    --theme-primary-strong: #4f46e5;
    --theme-secondary: #14b8a6;
    --theme-accent: #0ea5e9;
    --theme-surface: #ffffff;
    --theme-surface-alt: #f8fafc;
    --theme-text: #0f172a;
    --theme-muted: #475569;
    --theme-border: rgba(148, 163, 184, 0.25);
    --theme-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.page-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    padding: 2rem clamp(1rem, 3vw, 2rem) 6rem;
    margin: 0 auto;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08), transparent 25%),
                radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.08), transparent 20%),
                radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.08), transparent 22%),
                var(--theme-surface-alt);
    color: var(--theme-text);
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero {
    width: 100%;
    max-width: none;
    margin: 0 0 2rem 0;
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(20, 184, 166, 0.12));
    border: 1px solid var(--theme-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.hero-content {
    display: grid;
    gap: 0.65rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    font-size: 0.9rem;
    color: var(--theme-primary-strong);
    margin: 0;
}

.hero-title {
    font-size: clamp(2.125rem, 5vw, 2.875rem);
    font-weight: 800;
    color: var(--theme-text);
    margin: 0;
}

.hero-subtitle {
    max-width: 680px;
    font-size: 1.125rem;
    color: var(--theme-muted);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

a.btn-primary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: #0b1221;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.25);
}

.page-shell .main {
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.modern-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.15rem;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
    padding: 1.15rem;
}

.glass-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.16);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    background: rgba(99, 102, 241, 0.12);
    color: #312e81;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
}

.pill-muted {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    font-weight: 600;
}

.card-body {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.detail-row .label {
    color: var(--theme-muted);
    font-weight: 600;
    font-size: 1.05rem;
}

.detail-row .value {
    color: var(--theme-text);
    font-weight: 700;
    font-size: 1.15rem;
    text-align: right;
}

.detail-row .value.highlight {
    color: var(--theme-accent);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.btn-ghost {
    background: rgba(148, 163, 184, 0.12);
    color: var(--theme-text);
    border-radius: 0.75rem;
    padding: 0.55rem 1rem;
    text-transform: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

.empty-state {
    padding: 2.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    text-align: center;
    color: var(--theme-muted);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--theme-text);
    font-weight: 800;
}

.empty-state p {
    margin-bottom: 1rem;
    color: var(--theme-muted);
}

.sales-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border: 4px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--theme-accent);
    border-radius: 50%;
    animation: sales-spin 1s linear infinite;
}

@keyframes sales-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-row .value {
        text-align: left;
    }
}

/* Reusable headings, cards, and form field helpers for new pages */
.theme-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--theme-text);
    margin: 0 0 0.35rem 0;
}

.theme-subheading {
    color: var(--theme-muted);
    font-size: 1.05rem;
    margin: 0 0 1rem 0;
}

.theme-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--theme-shadow);
}

.theme-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.theme-field label {
    color: var(--theme-muted);
    font-weight: 700;
}

.theme-input {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #fff;
    color: var(--theme-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.theme-input::placeholder {
    color: #94a3b8;
}

.theme-button,
button.theme-button {
    border: none;
    border-radius: 0.75rem;
    padding: 0.65rem 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--theme-primary-strong), var(--theme-secondary));
    color: #0b1221;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.25);
}

.theme-button.ghost {
    background: rgba(148, 163, 184, 0.12);
    color: var(--theme-text);
    box-shadow: none;
}

.theme-button.ghost:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

/* Detail page layout */
.details-page .main {
    padding: 0;
    margin: 0;
    width: 100%;
}

.detail-actions {
    flex-wrap: wrap;
}

.details-main {
    width: 100%;
    padding-bottom: 6rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-list {
    display: grid;
    gap: 0.65rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.info-label {
    color: var(--theme-muted);
    font-weight: 700;
}

.info-value {
    color: var(--theme-text);
    font-weight: 600;
    text-align: right;
}

.table-card {
    grid-column: 1 / -1;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.table-container {
    width: 100%;
}

.table-scroll {
    max-height: 360px;
    overflow: auto;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 0.9rem;
    overflow: hidden;
}

.table-modern thead th {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(20, 184, 166, 0.08));
    color: var(--theme-text);
    font-weight: 800;
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--theme-border);
}

.table-modern tbody td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--theme-text);
    vertical-align: top;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.detail-select {
    width: 100%;
    min-width: 180px;
}

.order-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.order-detail-grid .info-label.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.info-icon {
    width: 1.1rem;
    display: inline-flex;
    justify-content: center;
}

.orders-list .list-group-item {
    display: flex;
}

.list-group-item-spaced {
    padding: 1rem; /* Espaciado interno para mayor claridad */
    background-color: #fff; /* Fondo blanco para cada elemento */
    border: 1px solid #ddd; /* Borde para mayor separación visual */
    border-radius: 0.25rem; /* Bordes redondeados para un mejor aspecto */
    border-top: 1px solid #ddd; /* Borde superior igual que el inferior */
}

.orders-list .col {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

.order-card {
    width: 100%;
    max-width: 100%;
    border: none;
    position: relative;
    overflow: hidden;
}

@media (max-width: 576px) {
    .order-card {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }

    .order-card::before {
        width: 4px;
    }
}

/* Responsive adjustments for layout & sidebar */
@media (max-width: 1200px) {
    .page-shell {
        padding: 1.75rem 1.25rem 6.5rem;
    }
}

@media (max-width: 992px) {
    .page-shell {
        padding: 1.5rem 1rem 7rem;
    }

    .main {
        padding: 1rem !important;
    }

    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
        backdrop-filter: blur(6px);
    }

    .order-contents {
        max-height: 38vh;
        padding: 0.5rem 0.25rem 0.25rem;
    }

    .order-total {
        position: sticky;
        bottom: 0;
        justify-content: space-between;
        gap: 0.75rem;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 1.25rem 0.75rem 7.5rem;
    }

    .main {
        padding: 0.75rem !important;
    }

    .sidebar {
        padding: 1rem;
    }

    .order-contents {
        max-height: 45vh;
    }
}