﻿.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;
}
.flatpickr-calendar.inline {
    display: contents;
    position: relative;
    top: 20px;
    width: 100%;
}
.flatpickr-innerContainer {
    
    display: grid;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}
.flatpickr-wrapper .form-control {
    display: none;
}
.flatpickr-calendar{
    background: orange;
    opacity: 0;
    display: none;
    text-align: center;
    visibility: hidden;
    padding: 0;
    -webkit-animation: none;
    animation: none;
    direction: ltr;
    border: 0;
    font-size: 14px;
    line-height: 24px;
    border-radius: 5px;
    position: absolute;
    width: 307.875px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    background: #fff;
    -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
    box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
}
.dayContainer {
    text-align: left;
    width: 100%;
    min-width: 100%;
    max-width: 307.875px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    transform: translate3d(0px, 0px, 0px);
    opacity: 1;
    padding: 0px;
    outline: 0px;
    background: #f0f7fa;
    border-radius: 5px;
    border:1px solid grey ;
    margin-top: 15px;
}
.flatpickr-weekdays {
    background: #b6ccd6;
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    height: 28px;
    border: 1px solid;
}
.flatpickr-day.selected {
    background: darkgrey;
    border-color: black;
}
.flatpickr-day {
    border-radius: 0.25rem;
    font-weight: 500;
    color: #212529;
}
.flatpickr-innerContainer {
    display: grid;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}
.flatpickr-days {
    width: 100%;
    align-items: baseline;
    overflow: hidden;
}
.flatpickr-day {
    background: #f5fafc;
    border: 1px solid #cee3ed;
    border-radius: 5px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #393939;
    cursor: pointer;
    font-weight: 500;
    width: 39px;
    -webkit-flex-basis: 14.2857143%;
    -ms-flex-preferred-size: 14.2857143%;
    flex-basis: 13.285714%;
    max-width: 500px;
    height: 45px;
    line-height: 45px;
    margin: 0px;
    display: block;
    position: relative;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}
.flatpickr-day.today {
    border-color:black;
}
.flatpickr-months .flatpickr-month {
    color: #212529;
    border: 1px solid #c2d4f2;
    border-radius: 5px;
    margin-right: 2px;
    margin-left: 2px;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-next-month, .flatpickr-months .flatpickr-next-month.flatpickr-next-month {
    right: 0;
    border: 1px solid #c2d4f2;
    border-radius: 5px;
}
.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month, .flatpickr-months .flatpickr-next-month.flatpickr-prev-month {
    left: 0;
    border-radius: 5px;
    border: 1px solid #c2d4f2;
}
.flatpickr-months {
    margin: 3.4rem 0;
}
.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 5px;
    outline: 0;
}
.modal-footer {
    display: -ms-flexbox;
    display: contents;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}
.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 5px;
}
#spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.5rem;
    height: 3.5rem;
    /* transform: translate(-50%, -50%); */
    display: none;
}

.ourbody {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ─── Kitchen Loader (initial page load) ─── */

.kitchen-loader-init {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kli-scene {
    position: relative;
    width: 120px;
    height: 120px;
}

.kli-pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 42px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, #6b7b8d, #4a5568);
    overflow: hidden;
}

.kli-pot-shine {
    position: absolute;
    top: 4px;
    left: 6px;
    width: 8px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    transform: rotate(8deg);
}

.kli-pot-handles {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
}

.kli-handle-l,
.kli-handle-r {
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    border: 3px solid #4a5568;
    border-radius: 50%;
    background: transparent;
}

.kli-handle-l { left: 0; }
.kli-handle-r { right: 0; }

.kli-lid {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: kli-lid-bounce 1.8s ease-in-out infinite;
}

.kli-lid-knob {
    width: 12px;
    height: 8px;
    border-radius: 6px 6px 2px 2px;
    background: #6b7b8d;
    margin-bottom: -1px;
}

.kli-lid-body {
    width: 76px;
    height: 10px;
    border-radius: 40px 40px 0 0;
    background: linear-gradient(135deg, #6b7b8d, #4a5568);
}

.kli-ingredients {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    display: flex;
    justify-content: space-between;
}

.kli-ing {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0;
}

.kli-i1 { background: #ff6b6b; animation: kli-ing-pop 1.8s ease-in-out infinite 0s; }
.kli-i2 { background: #ffd93d; animation: kli-ing-pop 1.8s ease-in-out infinite 0.25s; }
.kli-i3 { background: #6bcb77; animation: kli-ing-pop 1.8s ease-in-out infinite 0.5s; }

.kli-steam {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    display: flex;
    justify-content: space-between;
}

.kli-steam-line {
    width: 3px;
    height: 18px;
    background: #ccc;
    border-radius: 3px;
    opacity: 0;
}

.kli-s1 { animation: kli-steam-rise 2s ease-out infinite 0.2s; }
.kli-s2 { animation: kli-steam-rise 2s ease-out infinite 0.6s; }
.kli-s3 { animation: kli-steam-rise 2s ease-out infinite 1s; }

.kli-shadow {
    width: 70px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    opacity: 0.3;
    animation: kli-shadow-pulse 1.8s ease-in-out infinite;
    margin-top: 6px;
}

.kli-progress {
    width: 100px;
    height: 4px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 14px;
}

.kli-progress-bar {
    width: 40%;
    height: 100%;
    border-radius: 4px;
    background: #6b7b8d;
    animation: kli-progress-slide 1.5s ease-in-out infinite;
}

.kli-text {
    margin-top: 14px;
    font-family: 'Plus Jakarta Sans', 'Gill Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
}

.kli-dots span {
    animation: kli-dot-fade 1.4s ease-in-out infinite;
    opacity: 0;
}

.kli-dots span:nth-child(1) { animation-delay: 0s; }
.kli-dots span:nth-child(2) { animation-delay: 0.2s; }
.kli-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes kli-lid-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    15% { transform: translateX(-50%) translateY(-14px) rotate(-4deg); }
    30% { transform: translateX(-50%) translateY(-2px) rotate(0deg); }
    45% { transform: translateX(-50%) translateY(-10px) rotate(3deg); }
    60% { transform: translateX(-50%) translateY(-1px) rotate(0deg); }
}

@keyframes kli-ing-pop {
    0%, 100% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    25% { transform: translateY(-30px); opacity: 1; }
    50% { transform: translateY(0); opacity: 0; }
}

@keyframes kli-steam-rise {
    0% { transform: translateY(0) scaleY(0.5); opacity: 0; }
    20% { opacity: 0.4; }
    60% { transform: translateY(-25px) scaleY(1); opacity: 0.2; }
    100% { transform: translateY(-40px) scaleY(1.2); opacity: 0; }
}

@keyframes kli-shadow-pulse {
    0%, 100% { transform: scaleX(1); opacity: 0.3; }
    15% { transform: scaleX(0.75); opacity: 0.15; }
    45% { transform: scaleX(0.85); opacity: 0.2; }
}

@keyframes kli-progress-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}

@keyframes kli-dot-fade {
    0%, 100% { opacity: 0; }
    30%, 70% { opacity: 1; }
}
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/*Espacio para colores personalizados*/

.btn-outline-info {
    color: #378CE7;
    border-color: #378CE7;
}
.btn-info {
    color: rgb(255, 255, 255);
    background-color: #378CE7;
    border-color: #378CE7;
}

.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ─── Google Places Autocomplete Dropdown ─── */

.pac-container {
    z-index: 10050 !important;
    border-radius: 12px;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 4px;
    padding: 4px 0;
}

.pac-item {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    border-top: none !important;
    transition: background 0.12s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pac-item:hover {
    background: #f5f7fa;
}

.pac-item:active {
    background: #eef1f5;
}

.pac-icon {
    background-image: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    background: #f0f2f5 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.pac-icon::after {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #888;
}

.pac-item-query {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.pac-item-query + span {
    font-size: 13px;
    color: #888;
}

.pac-matched {
    font-weight: 700;
}

/* Hide Google logo in dropdown */
.pac-container::after {
    display: none !important;
}

/* ─── Google Places PlaceAutocompleteElement ─── */

.addr-ac-autocomplete-container {
    flex: 1;
    min-width: 0;
}

.addr-ac-autocomplete-container gmp-place-autocomplete {
    width: 100%;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    --gmpx-color-surface: transparent;
    --gmpx-color-on-surface: #333;
    --gmpx-color-on-surface-variant: #9aa0a6;
    --gmpx-color-outline: transparent;
    --gmpx-color-primary: transparent;
    --gmpx-font-family-base: 'Plus Jakarta Sans', sans-serif;
    --gmpx-font-size-base: 14px;
}

.addr-ac-autocomplete-container gmp-place-autocomplete div {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.addr-ac-autocomplete-container gmp-place-autocomplete input {
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
}

/* ─── Address Autocomplete Component ─── */

.addr-ac-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addr-ac-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    padding: 0 14px;
    transition: all 0.2s ease;
    gap: 10px;
}

.addr-ac-input-group:focus-within {
    border-color: #4285f4;
    background: white;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.addr-ac-input-group.has-value {
    border-color: #34a853;
    background: #f0faf3;
}

.addr-ac-input-group.has-value:focus-within {
    border-color: #34a853;
    box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.1);
}

.addr-ac-icon {
    color: #9aa0a6;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.addr-ac-input-group:focus-within .addr-ac-icon {
    color: #4285f4;
}

.addr-ac-input-group.has-value .addr-ac-icon {
    color: #34a853;
}

.addr-ac-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
    height: auto !important;
}

.addr-ac-input::placeholder {
    color: #9aa0a6;
}

.addr-ac-clear {
    background: #e8eaed;
    border: none;
    color: #666;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
}

.addr-ac-clear:hover {
    background: #d2d5d9;
    color: #333;
}

.addr-ac-confirmed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 13px;
    color: #2e7d32;
    animation: addr-ac-fade-in 0.2s ease;
}

.addr-ac-confirmed i {
    color: #34a853;
    flex-shrink: 0;
}

.addr-ac-confirmed span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.addr-ac-manual-link {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
    text-align: left;
}

.addr-ac-manual-link:hover {
    color: #1a73e8;
}

.addr-ac-manual-link i {
    font-size: 12px;
}

@keyframes addr-ac-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Map Pin Selector ─── */

.map-pin-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-pin-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

.map-pin-header i {
    color: #ea4335;
    font-size: 14px;
}

.map-pin-container {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e8eaed;
    position: relative;
}

.map-pin-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-pin-dot {
    width: 18px;
    height: 18px;
    background: #ea4335;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.4);
    position: relative;
    z-index: 2;
}

.map-pin-pulse {
    width: 40px;
    height: 40px;
    background: rgba(234, 67, 53, 0.15);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: map-pin-pulse-anim 2s ease-out infinite;
    z-index: 1;
}

@keyframes map-pin-pulse-anim {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.map-pin-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    min-height: 42px;
    animation: addr-ac-fade-in 0.2s ease;
}

.map-pin-address i {
    color: #ea4335;
    margin-top: 2px;
    flex-shrink: 0;
}

.map-pin-confirm {
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 13px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-pin-confirm:hover {
    background: #1557b0;
}

.map-pin-confirm:disabled {
    background: #dadce0;
    color: #9aa0a6;
    cursor: not-allowed;
}
