@import url("https://cdnjs.cloudflare.com/ajax/libs/select2/4.1.0-rc.0/css/select2.min.css");
@import "select2.tailwind.css";
@import "pagy.tailwind.css";
@import "poppers.tailwind.css";
@tailwind base;
@tailwind components;
@tailwind utilities;


/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@layer components {
    .title {
        @apply text-center text-5xl font-bold mb-4 dark:text-gray-300;
    }
    .text-title {
        @apply text-center text-2xl lg:text-4xl font-bold mb-6 dark:text-gray-300;
    }
    .text-title-tiny {
        @apply text-center text-xl font-bold mb-6 dark:text-gray-400;
    }
    .text-tiny {
        @apply sm:text-xl font-semibold text-gray-800 dark:text-gray-400;
    }
    .title-modal {
        @apply text-center text-2xl lg:text-3xl font-bold text-gray-800 dark:text-gray-400;
    }
    .text-indigo {
        @apply text-lg font-bold text-indigo-700 mb-2;
    }
    .card-small {
        @apply p-6 rounded-xl shadow-2xl shadow-black dark:border dark:border-gray-500 max-w-screen-sm mx-auto;
    }
    .card-tiny {
        @apply border p-6 bg-white dark:bg-gray-950 rounded-lg transition-transform transform duration-700 hover:scale-105 hover:shadow-xl;
    }
    .card-tiny-space {
        @apply bg-white shadow-lg rounded-lg p-6 space-y-4 dark:bg-gray-950 dark:border dark:border-gray-400 dark:text-gray-400;
    }
    .card-line {
        @apply w-full md:w-3/5 mx-auto border border-gray-700 font-semibold text-xl rounded-lg py-1 text-center text-sm my-10 dark:text-gray-400;
    }
    .card-modal {
        @apply bg-gray-50 dark:bg-gray-950 shadow-lg dark:shadow-gray-800 rounded-lg p-3 border-l-4 border-amber-500 text-xs sm:text-sm;
    }
    .container-title {
        @apply flex flex-wrap justify-center items-center gap-x-4 my-4;
    }
    .overlay {
        @apply fixed inset-0 z-30 flex items-center justify-center bg-black/30 backdrop-blur transition-opacity duration-300 ease-in-out;
    }
    .overlay-right {
        @apply fixed z-10 w-full h-full top-0 left-0 bg-black/30 backdrop-blur;
    }
    .modal-small {
        @apply p-6 relative w-full max-w-screen-xl mx-4 bg-gray-100 rounded-lg shadow transition-transform duration-300 ease-in-out
        h-dvh max-h-dvh overflow-y-auto lg:h-auto lg:max-h-full;
    }
    .modal-tiny {
        @apply p-6 relative w-full max-w-screen-sm mx-4 bg-gray-100 rounded-lg shadow transition-transform duration-300 ease-in-out
        h-dvh max-h-dvh overflow-y-auto lg:h-auto lg:max-h-full;
    }
    .modal-right {
        @apply fixed z-20 bottom-0 rounded-t-xl sm:rounded-none sm:top-0 right-0 w-full sm:w-2/3 lg:w-3/6 xl:w-2/6 h-[90dvh] sm:h-full bg-white dark:bg-gray-950 overflow-y-scroll shadow dark:border-l dark:border-gray-500 flex flex-col ease-in-out duration-300 p-5 transform translate-y-full sm:translate-x-full;
    }
    .label {
        @apply block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400;
    }
    .label-green {
        @apply text-center border border-gray-900 rounded-xl bg-green-400 dark:bg-green-900 dark:text-gray-200 font-bold text-sm px-5 py-2.5;
    }
    .label-red {
        @apply block w-full inline-flex items-center justify-center bg-red-100 dark:bg-red-700 text-red-600 dark:text-red-200 rounded-lg text-sm border border-gray-500 font-bold px-5 py-2;
    }
    .label-blue {
        @apply block w-full inline-flex items-center justify-center bg-blue-100 text-blue-600 rounded-lg text-sm border border-gray-500 font-bold px-5 py-2;
    }
    .label-yellow {
        @apply block w-full inline-flex items-center justify-center bg-yellow-100 text-yellow-600 rounded-lg text-sm border border-gray-500 font-bold px-5 py-2;
    }
    .label-gray {
        @apply block w-full inline-flex items-center justify-center bg-gray-200 text-gray-600 rounded-lg text-sm border border-gray-500 font-bold px-5 py-2;
    }
    .input {
        @apply bg-transparent border border-gray-700 text-gray-900 dark:text-gray-400 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5;
    }
    .input::file-selector-button {
        @apply bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-300 border-0 rounded-md cursor-pointer;
    }
    .input::file-selector-button:hover {
        @apply bg-gray-300 dark:bg-gray-600;
    }
    .input:disabled {
        @apply bg-gray-300 dark:bg-gray-600 text-gray-600 border-gray-600 cursor-not-allowed;
    }
    .button-primary {
        @apply cursor-pointer text-white bg-gray-800 hover:bg-gray-900 focus:ring-4 focus:outline-none focus:ring-gray-400 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center transition duration-300 ease-in-out shadow-md hover:shadow-lg hover:scale-105;
    }
    .button-secondary {
        @apply cursor-pointer text-gray-950 dark:text-gray-400 hover:text-gray-50 bg-gray-50 dark:bg-gray-950 hover:bg-gray-900 focus:ring-4 focus:outline-none focus:ring-stone-300 font-medium border border-gray-900 dark:border-gray-400 rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center;
    }
    .button-secondary-tiny {
        @apply block w-full sm:w-auto inline-flex items-center justify-center text-gray-900 dark:text-gray-400 hover:text-white border border-gray-700 dark:border-gray-400 hover:bg-gray-800 dark:hover:bg-gray-500 focus:ring-2 focus:outline-none focus:ring-gray-500 font-medium rounded-lg text-xs px-5 py-1 text-center;
    }
    .button-dark {
        @apply block inline-flex items-center text-gray-900 hover:text-white border border-gray-800 bg-white hover:bg-gray-900 focus:ring-4 focus:outline-none focus:ring-stone-300 font-medium rounded-lg text-xs px-5 py-1 text-center;
    }
    .button-red-tiny {
        @apply block w-full sm:w-auto inline-flex justify-center items-center text-red-900 dark:text-red-700 hover:text-white border border-red-800 dark:border-red-600 bg-white dark:bg-transparent hover:bg-red-700 focus:ring-2 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-xs px-5 py-1 text-center;
    }
    .button-orange {
        @apply block w-full sm:w-auto inline-flex items-center justify-center text-orange-800 hover:text-gray-900 border border-orange-800 hover:bg-orange-400 focus:ring-2 focus:outline-none focus:ring-orange-300 font-medium rounded-lg text-xs px-5 py-1 text-center;
    }
    .button-green-large {
        @apply text-white bg-green-600 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center;
    }
    .button-green {
        @apply block w-full sm:w-auto inline-flex items-center justify-center bg-transparent text-green-900 dark:text-green-700 hover:bg-green-600 border border-green-700 hover:text-white font-medium rounded-lg text-xs px-5 py-1;
    }
    .button-alert {
        @apply block w-full sm:w-auto bg-red-500 hover:bg-white dark:hover:bg-red-800 border-2 hover:border-red-600 hover:text-red-500 dark:hover:text-gray-100 text-white font-semibold py-2 px-4 rounded-lg shadow;
    }
    .button-select-hour {
        @apply block w-full inline-flex items-center justify-center text-gray-900 hover:text-white border border-gray-700 hover:bg-gray-800 font-medium rounded-lg text-sm px-5 py-2;
    }
    .button-tiny-blue {
        @apply block w-full sm:w-auto inline-flex items-center justify-center bg-transparent hover:bg-blue-700 border border-blue-800 hover:text-white text-blue-900 text-xs font-medium py-1 px-2 rounded-lg;
    }
    .button-menu-link {
        @apply block px-4 py-2 hover:bg-gray-900 dark:hover:bg-stone-800 hover:text-white rounded;
    }
    .button-tiny {
        @apply flex text-sm px-4 py-1 font-semibold w-full border border-gray-500 rounded hover:bg-gray-950 hover:text-gray-50;
    }
    .button-close-right {
        @apply absolute top-3 right-3 text-stone-400 bg-transparent hover:bg-stone-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center;
    }
    .button-close-left {
        @apply absolute top-3 left-3 text-stone-400 bg-transparent hover:bg-stone-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center;
    }
    .table {
        @apply min-w-full w-full rounded-xl shadow-md dark:border;
    }
    .table-tiny {
        @apply min-w-full w-full overflow-x-auto;
    }
    .tr-body {
        @apply bg-slate-950 text-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:border-b;
    }
    .table-tr {
        @apply border-b border-gray-800 hover:bg-gray-100 dark:hover:bg-stone-900 dark:bg-gray-950 dark:text-gray-400;
    }
    .table-tr-large {
        @apply border-b border-gray-300 dark:bg-gray-950 hover:bg-white dark:hover:bg-stone-900 text-sm dark:text-gray-400;
    }
    .line {
        @apply divide-x divide-black border-b dark:border-gray-600 mx-2;
    }
    .checkbox {
        @apply h-5 w-5 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500 dark:bg-gray-950;
    }
    .flex-tr-div {
        @apply flex justify-between border-b border-gray-800 hover:bg-gray-100 dark:hover:bg-stone-900;
    }
    .tr-div {
        @apply border-b border-gray-800 hover:bg-gray-100 dark:hover:bg-stone-900;
    }

    .input-shear {
        @apply block w-full sm:w-96 p-2 pl-10 text-sm text-gray-900 dark:text-gray-400 border border-gray-700 rounded-lg bg-transparent focus:ring-1 focus:ring-gray-500 focus:border-gray-500 placeholder:text-gray-400;
    }
    .icon-search {
        @apply absolute top-1/2 left-3 transform -translate-y-1/2 w-4 h-4 text-gray-700;
    }
    .container-title {
        @apply flex flex-wrap justify-center items-center gap-2;
    }

    .card-archive {
        @apply flex items-center justify-between gap-4 p-3 bg-gray-100 border border-gray-700 dark:border-gray-500 dark:bg-gray-800 rounded-lg;
    }

    .available {
        @apply border rounded w-full list-none w-full text-xs sm:text-sm text-center;
    }
}
.pagy {
    @apply flex space-x-1 font-semibold text-sm text-gray-500;
    a:not(.gap) {
        @apply block rounded-lg px-3 py-1 bg-gray-200;
        &:hover {
            @apply bg-gray-300;
        }
        &:not([href]) {
            @apply text-gray-300 bg-gray-100 cursor-default;
        }
        &.current {
            @apply text-white bg-gray-400;
        }
    }
    label {
        @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
        input {
            @apply bg-gray-100 border-none rounded-md;
        }
    }
}
@layer components {
    [data-popper-arrow] {
        @apply absolute w-0 h-0 border-solid;
        content: "";
    }

    /* TOOLTIP */
    .arrow-tooltip[data-popper-placement^="top"] {
        @apply bottom-[-6px] border-x-[6px] border-x-transparent border-t-[6px] border-t-gray-800;
    }
    .arrow-tooltip[data-popper-placement^="bottom"] {
        @apply top-[-6px] border-x-[6px] border-x-transparent border-b-[6px] border-b-gray-800;
    }
    .arrow-tooltip[data-popper-placement^="left"] {
        @apply right-[-6px] border-y-[6px] border-y-transparent border-l-[6px] border-l-gray-800;
    }
    .arrow-tooltip[data-popper-placement^="right"] {
        @apply left-[-6px] border-y-[6px] border-y-transparent border-r-[6px] border-r-gray-800;
    }

    /* POPOVER */
    
    .arrow-popover[data-popper-placement^="top"] {
        @apply bottom-[-6px] border-x-[6px] border-x-transparent border-t-[6px] border-t-white drop-shadow-md;
    }

    .arrow-popover[data-popper-placement^="bottom"] {
        @apply top-[-6px] border-x-[6px] border-x-transparent border-b-[6px] border-b-white drop-shadow;
    }

    .arrow-popover[data-popper-placement^="left"] {
        @apply right-[-6px] border-y-[6px] border-y-transparent border-l-[6px] border-l-white drop-shadow;
    }

    .arrow-popover[data-popper-placement^="right"] {
        @apply left-[-6px] border-y-[6px] border-y-transparent border-r-[6px] border-r-white drop-shadow;
    }

    /* DROPDOWN */
    .arrow-dropdown[data-popper-placement^="top"] {
        @apply bottom-[-6px] border-x-[6px] border-x-transparent border-t-[6px] border-t-gray-100;
    }
    .arrow-dropdown[data-popper-placement^="bottom"] {
        @apply top-[-6px] border-x-[6px] border-x-transparent border-b-[6px] border-b-gray-100;
    }
    .arrow-dropdown[data-popper-placement^="left"] {
        @apply right-[-6px] border-y-[6px] border-y-transparent border-l-[6px] border-l-gray-100;
    }
    .arrow-dropdown[data-popper-placement^="right"] {
        @apply left-[-6px] border-y-[6px] border-y-transparent border-r-[6px] border-r-gray-100;
    }
}
/* Contenedor general */
.select2-container {
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Caja de selección principal */
.select2-container .select2-selection {
    @apply w-full text-gray-900 dark:text-gray-400 text-sm border border-gray-400 rounded-lg p-2 bg-transparent !important;
    height: 2.5rem !important;
    line-height: 1.5rem !important;
}

.select2-container .select2-selection:hover {
    @apply border-black dark:border-gray-400 text-gray-900 dark:text-gray-400 !important;
}

/* Placeholder */
.select2-selection__placeholder {
    @apply text-gray-500 dark:text-gray-500 !important;
}

/* Texto seleccionado */
.select2-selection__rendered {
    @apply text-gray-900 dark:text-gray-300 !important;
}

/* Asegura que el contenedor del arrow tenga posición relativa */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 50% !important;
    right: 0.75rem !important; /* separa un poco del borde */
    transform: translateY(-50%) !important;
    width: 1rem !important;
    height: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Flecha normal (cerrada) */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #999 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    display: block !important;
}

/* Flecha cuando el select está abierto */
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #999 transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Dropdown (contenedor del menú) */
.select2-dropdown {
    @apply border border-gray-400 bg-gray-100 dark:bg-gray-950 rounded-b-lg rounded-t-none shadow-lg !important;
    margin-top: -1px !important;
}

/* Área de búsqueda dentro del dropdown */
.select2-search--dropdown {
    @apply p-2 bg-gray-100 dark:bg-gray-950 !important;
}

/* Input del buscador */
.select2-search__field {
    @apply w-full text-gray-800 dark:text-gray-400 bg-gray-100 dark:bg-gray-950 border border-gray-400 rounded-lg focus:outline-none focus:ring-0 focus:border-gray-500 !important;
}

/* Lista de resultados */
.select2-results__options {
    @apply text-gray-900 dark:text-gray-400 font-normal text-sm rounded-lg !important;
    max-height: 200px;
    overflow-y: auto;
}

/* Scroll personalizado */
.select2-results__options::-webkit-scrollbar {
    width: .4rem;
}

.select2-results__options::-webkit-scrollbar-track {
    @apply bg-gray-200 dark:bg-gray-800 rounded-xl !important;
}

.select2-results__options::-webkit-scrollbar-thumb {
    @apply bg-gray-400 rounded-lg !important;
}

/* Resultado destacado (hover o activo) */
.select2-results__option--highlighted {
    @apply bg-gray-700 hover:bg-gray-950 dark:hover:bg-gray-900 text-gray-50 rounded-md !important;
}

/* Mensaje "sin resultados" */
.select2-results__message {
    @apply bg-gray-100 dark:bg-gray-950 text-red-500 font-bold p-2 rounded-md !important;
}

/* Texto coincidente */
.select2-results__option strong {
    @apply bg-green-500 text-green-900 font-bold px-1 rounded !important;
}

/* Deshabilitado */
.select2-container--disabled .select2-selection {
    @apply bg-gray-300 dark:bg-gray-700 dark:text-gray-400 border-gray-600 cursor-not-allowed !important;
}

/* Estado abierto */
.select2-container--open .select2-selection {
    @apply rounded-t-lg rounded-b-none border-gray-400 border-b-0 !important;
}

/* Error visual */
.is-invalid-input .select2-selection {
    @apply border-red-500 w-full !important;
}

/* ✅ Opción seleccionada (no hover) */
.select2-container--default .select2-results__option--selected {
    @apply bg-gray-800 text-gray-100 dark:bg-gray-800 dark:text-gray-100 !important;
}

/* ✅ Opción seleccionada + hover (mantén contraste oscuro) */
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
    @apply bg-gray-700 dark:bg-gray-700 text-white !important;
}

.field_with_errors .select2-container .select2-selection {
    border: 1px solid #ef0e0e !important;
    width: 100% !important;
    background-color: #ffe6e6 !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


.turbo-progress-bar {
    visibility: hidden;
}


/* --------------------------------------------------
   Animaciones de los modales Inicio FADE + ZOOM (apertura)
   -------------------------------------------------- */
@keyframes modal-zoom-in {
    0%   { opacity: 0; transform: scale(0.8) translate(-50%, -50%); }
    100% { opacity: 1; transform: scale(1)   translate(-50%, -50%); }
}

/* FADE + ZOOM (cierre) */
@keyframes modal-zoom-out {
    0%   { opacity: 1; transform: scale(1)   translate(-50%, -50%); }
    100% { opacity: 0; transform: scale(0.8) translate(-50%, -50%); }
}

/* Para movimientos laterales (si usas position=“left” o “right”) */
@keyframes modal-slide-in-left {
    0%   { opacity: 0; transform: translateX(-30%) scale(0.85); }
    100% { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes modal-slide-out-left {
    0%   { opacity: 1; transform: translateX(0)    scale(1); }
    100% { opacity: 0; transform: translateX(-30%) scale(0.85); }
}

/* Shake y flash-pulse (tus originales) */
@keyframes shake-x {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-8px); }
    30%  { transform: translateX(6px); }
    45%  { transform: translateX(-4px); }
    60%  { transform: translateX(3px); }
    75%  { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@keyframes shake-x-center {
    0%   { transform: translate(-50%, -50%) scale(1) translateX(0); }
    15%  { transform: translate(-50%, -50%) scale(1) translateX(-8px); }
    30%  { transform: translate(-50%, -50%) scale(1) translateX(6px); }
    45%  { transform: translate(-50%, -50%) scale(1) translateX(-4px); }
    60%  { transform: translate(-50%, -50%) scale(1) translateX(3px); }
    75%  { transform: translate(-50%, -50%) scale(1) translateX(-2px); }
    100% { transform: translate(-50%, -50%) scale(1) translateX(0); }
}

.modal[data-modal-id]::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, white 10%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.5;
    animation: flash-pulse 0.6s ease-out;
    pointer-events: none;
    border-radius: 9999px;
}

@keyframes flash-pulse {
    0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0.8; }
    50%  { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(2);   opacity: 0;   }
}

.modal-animate-left {
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.modal-animate-left.show {
    transform: translateX(0);
    opacity: 1;
}

.modal-animate-right {
    transform: translateX(100%);
    transition: all 0.3s ease;
}
.modal-animate-right.show {
    transform: translateX(0);
    opacity: 1;
}

.modal-animate-top {
    transform: translateY(-100%);
    transition: all 0.3s ease;
}
.modal-animate-top.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-animate-bottom {
    transform: translateY(100%);
    transition: all 0.3s ease;
}
.modal-animate-bottom.show {
    transform: translateY(0);
    opacity: 1;
}

@keyframes fade {
    from { opacity: 0 }
    to   { opacity: 1 }
}

.animate-fade {
    animation: fade 0.3s ease-out;
}

.modal-inner {
    will-change: transform;
}


/* Appointments */
:root {
    --appointment-success: #10b981;
    --appointment-success-light: #d1fae5;
    --appointment-danger: #ef4444;
    --appointment-danger-light: #fee2e2;
    --appointment-warning: #f59e0b;
    --appointment-warning-light: #fef3c7;
    --appointment-info: #3b82f6;
    --appointment-info-light: #dbeafe;
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@keyframes slideInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.appointment-slot {
    animation: slideInUp 0.3s ease-out;

    &:nth-child(odd) {
        animation-delay: 0.1s;
    }

    &:nth-child(even) {
        animation-delay: 0.2s;
    }

/ / Estados hover mejorados & . available {
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
        border-radius: 0.5rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    &:hover::before {
        opacity: 1;
    }

    &:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }
}

    &.reserved {
        position: relative;

        &::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 1rem;
            width: 8px;
            height: 8px;
            background: var(--appointment-danger);
            border-radius: 50%;
            transform: translateY(-50%);
            animation: pulse 2s infinite;
        }
    }
}

.tooltip {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    .arrow-tooltip {
        &::before {
            content: '';
            position: absolute;
            border-style: solid;
        }

        &[data-placement^="right"] {
            left: -5px;

            &::before {
                border-width: 5px 5px 5px 0;
                border-color: transparent rgba(17, 24, 39, 0.9) transparent transparent;
            }
        }

        &[data-placement^="left"] {
            right: -5px;

            &::before {
                border-width: 5px 0 5px 5px;
                border-color: transparent transparent transparent rgba(17, 24, 39, 0.9);
            }
        }
    }
}

.appointment-details-panel {
    .empty-state {
        animation: fadeIn 0.5s ease-out;

        svg {
            animation: pulse 3s infinite;
        }
    }
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;

    &.available {
        background-color: var(--appointment-success-light);
        color: var(--appointment-success);
    }

    &.reserved {
        background-color: var(--appointment-danger-light);
        color: var(--appointment-danger);
    }

    &.break {
        background-color: var(--appointment-warning-light);
        color: var(--appointment-warning);
    }

    &.closed {
        background-color: #f3f4f6;
        color: #6b7280;
    }
}


@media (max-width: 768px) {
    .appointment-slot {
        margin-bottom: 0.5rem;
    }

    .appointment-details-panel {
        margin-top: 1rem;
    }
}


.appointment-loading {
    .appointment-slot {
        background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
        background-size: 200% 100%;
        animation: loading 2s infinite;
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


.appointment-header {
    .vet-info {
        transition: all 0.3s ease;

        &:hover {
            transform: scale(1.02);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
        }
    }
}


.appointment-slot:focus-within {
    outline: 2px solid var(--appointment-info);
    outline-offset: 2px;
}


@media (prefers-color-scheme: dark) {
    :root {
        --appointment-bg: #1f2937;
        --appointment-surface: #374151;
        --appointment-text: #f9fafb;
    }
}


/* Modal SelectPet Animations */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-entering {
    visibility: visible;
}

.modal-entering .modal-overlay {
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-entering .modal-content {
    animation: slideInFromBottom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Para pantallas grandes - deslizar desde la derecha */
@media (min-width: 640px) {
    .modal-entering .modal-content {
        animation: slideInFromRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
}

.modal-leaving .modal-overlay {
    animation: fadeOut 0.2s ease-in forwards;
}

.modal-leaving .modal-content {
    animation: slideOutToBottom 0.2s ease-in forwards;
}

@media (min-width: 640px) {
    .modal-leaving .modal-content {
        animation: slideOutToRight 0.2s ease-in forwards;
    }
}

/* Spinner de carga */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark mode skeleton */
.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Dark mode spinner */
.dark .spinner {
    border-color: #4b5563;
    border-top-color: #60a5fa;
}

/* Mejoras adicionales */
.modal-content {
    /* Asegurar que el modal sea visible por defecto para las animaciones */
    opacity: 1;
    /* Mejorar el shadow en dark mode */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Transiciones suaves para el contenido interno */
.modal-content-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Estados de carga para elementos internos */
.loading-placeholder {
    @apply skeleton h-4 mb-2;
}

.loading-placeholder.large {
    @apply h-8;
}

.loading-placeholder.small {
    @apply h-3;
}

/* Animación pulsante para botones importantes */
.pulse-important {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .7;
    }
}
