/* Estilos globales */
body {
    @apply bg-white;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.45) url('https://cambiosorion.cl/orionapp/assets/FondoOrion.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

/* Aplicar Inter globalmente */
body, html, input, textarea, button, select {
    font-family: 'Inter';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Degradado solo en la imagen de fondo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 60%, black 100%);
    pointer-events: none;
    z-index: -1;
}

html, body {
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

/* Clase para el contenido principal */
.main-content {
    flex: 1;
}

/* Sección principal del conversor */
.container {
    @apply max-w-lg mx-auto bg-white p-10 rounded-lg shadow-lg;
}

h2 {
    @apply text-2xl font-semibold text-white text-center mb-6;
}

/* Contenedor de selección personalizado */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    pointer-events: none
}

/* Caja de selección */
.select-box {
    @apply flex justify-center items-center cursor-pointer gap-8; 
    pointer-events: auto;
}

/* Chevron */
.select-box .w-4.h-4 {
    width: 16px;
    height: 16px;
}

.select-box span {
    flex-grow: 1;
    text-align: right; 
}

.relative {
    position: relative;
}

/* Estilando las filas del Skeleton Loader dentro de la tabla */
.skeleton-row {
    border-radius: 8px; 
    background: #e0e0e0;
    height: 40px;
    margin-bottom: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Contenedor con espaciado */
#loader-container {
    display: block;
    margin: 8px 0;
}

.animate-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Espaciado y estilo de pulso */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Contenedor de la tabla */
.content-table {
    justify-content: center;
    border-collapse: separate;
    border-spacing: 0 8px; /* Espacio entre filas */
    width: 100%;
}

section .max-w-xl {
    border-radius: 12px;
    overflow: hidden; /* Para ocultar cualquier borde sobresaliente */
}

/* Bordes redondeados para cada fila */
#currency-table-body tr {
    color: black;
    overflow: hidden;
}

#currency-table-body tr:first-child td {
    color: black;
}

#currency-table-body tr:nth-child(odd) {
    background-color: white;
    color: black;
}

#currency-table-body td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

#currency-table-body td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    overflow: hidden;
}

/* Alinear texto al centro en columnas que no son "Divisa" */
#currency-table-body td {
    text-align: center;
}

/* Ajustes en celdas: espaciado interno y tamaño de fuente */
#currency-table-body td {
    padding: 16px;
    font-size: 1rem;
}

#currency-table-body td:first-child img {
    border-radius: 8px;
}

#currency-table-body td {
    border: none;
}

#currency-table-body td:last-child:not(.hidden) {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

#last-updated {
    margin-top:1rem;
    justify-content: flex-end;
    color: black;
    font-size: 0.75rem;
}

p {
    transition: all 0.3s ease-in-out;
}

p.hidden {
    display: none;
}

button {
    padding: 12px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2563eb;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.forgot-password a {
    color: #3b82f6;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 15px;
}

.register-link a {
    color: #3b82f6;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}


a.fab {
    right: 3.5rem;
    bottom: 2rem;
    background: #21479e;
    z-index: 99999;
}

a.fab:hover {
    transform: scale(1.1);
    background: #3d63ba;
}

@media (max-width: 887px) {
    a.fab {
        right: 1.5rem;
        bottom: 1rem;
    }    

}
