@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=Montserrat:wght@100..900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    text-decoration: none;
}

body {
    height: 100vh;
    width: 100%;
    background-color: #f9fafb;
    flex-direction: column;
    min-height: 100vh; /* Esto garantiza que el contenido ocupe toda la pantalla */
}

h1 {
    font-size: 25px;
}

.sidebar {
    position: fixed;
    width: 250px;
    height: 100%;
    overflow: hidden;
    padding: 20px 15px;
    background-color: #feffff;
    transition: width 0.5s ease, background-color 0.3s ease;
    box-shadow: 5px 0 10px rgba(126, 126, 126, 0.2);
}

.mini-sidebar {
    width: 80px;
}

.sidebar span {
    white-space: nowrap;
    font-size: 20px;
    text-align: left;
    font-style: 25px;
    opacity: 1;
    transition: opacity 0.5s ease, width 0.5s ease;
}

.sidebar span.oculto {
    opacity: 0;
    width: 0;
}

.sidebar .name-page {
    width: 100%;
    height: 45px;
    color: black;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.logo {
    width: 10px;
}

/* Configuración del logo */
.sidebar .name-page img {
    min-width: 50px;
    font-size: 40px;
    cursor: pointer;
}

/* Distancia entre el texto del título y el logo */
.sidebar .name-page span {
    margin-left: 5px;
}

/* --------------------------------------------> Navegation Menu */
li {
    list-style: none;
    display: flex;
    margin-bottom: 5px;
}

a {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    color: #535d6a;
}

a:hover {
    background-color: #eff6ff;
    color: #2663eb;
}

ion-icon {
    min-width: 50px;
    font-size: 20px;
}

/* Estilo del botón que indica la página activa en la navegación */
#active-page {
    background-color: #eff6ff;
    color: #2663eb;
}

/* --------------------------------------------> Main */
main {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.5s ease;
}

/* Estilo cuando el menú está minimizado */
main.min-main {
    margin-left: 80px;
}

/* --------------------------------------------> Finder Box */

.header-finder {
    display: flex;
    justify-content: space-between; /* Distribuye los elementos en los extremos */
    align-items: center; /* Alinea verticalmente */
    padding: 10px 20px; /* Agrega espacio en los bordes */
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    color: #b3b8c2;
}

.search-box {
    width: 250px;
    padding: 10px 10px 10px 46px; /* Deja espacio para el icono */
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
}

::placeholder {
    color: #b3b8c2;
}

/* --------------------------------------------> Table */

/* Estilo general de la tabla */
.parts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* Estilo para las cabeceras de la tabla */
.parts-table th {
    background-color: #fdfdfd;
    color: #535d6a;
    padding: 14px;
    text-align: left;
    font-weight: 500;
    font-size: 15px;
}

.blue_text{
    color: #2663eb;
    font-weight: 500;
}

.header-left {
    border-top-left-radius: 10px;
}

.header-right {
    border-top-right-radius: 10px;
}

/* Estilo para las celdas de la tabla */
.parts-table td {
    padding: 10px;
    text-align: left;
    border-top: 1.5px solid #f1f0f0;
}

/* Cambio de color al pasar el ratón sobre las filas */
.parts-table tr:hover {
    background-color: #f6f6f6;
}

.parts-table a {
    color: #2663eb;
    text-decoration: none;
}

.parts-table a:hover {
    background-color: #f6f6f6;
    text-decoration: underline;
}

.no-results{
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    color: #6a5353;
    margin-top: 40px;
}

/* --------------------------------------------> Footer */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: margin-left 0.5s ease;
    margin-top: 360px;
}
.footer p {
    font-size: 14px;
    color: #535d6a;
    font-weight: 400;
}