@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

button {
    display: inline-flex;
    height: 38px;
    min-width: 160px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--Principal, #7800D7);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 2px 8px 0px rgba(8, 71, 165, 0.25);
}

button:hover {
    border-radius: 8px;
    background: var(--Violeta-Oscuro, #35005E);
    box-shadow: 0px 2px 8px 0px rgba(8, 71, 165, 0.25);
    color:white
}


/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.top-bar .top-bar-left,
.top-bar .top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-right button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    transition: opacity 0.3s ease;
}

.top-bar-right button:hover {
    opacity: 0.7;
}

/* Navbar (Sidebar) */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100% - 70px);
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px; 
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
}

.logo-icon {
    width: 30px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #6B7280;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 100%;
    border-radius: 10px;
}

.menu-item i {
    font-size: 20px;
    color: #6B7280;
    margin-left: 10px;
}

.menu-item span {
    margin-left: 10px;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(107, 75, 183, 0.2) !important;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar-footer {
    margin-top: auto;
    width: 100%;
    padding-bottom: 20px;
}

.sidebar-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Contenido Principal */
main {
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 270px;
    margin-right: 20px;
    margin-top: 70px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; 
}

.sidebar.collapsed ~ main {
    margin-left: 100px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Alinea el logo del cliente a la izquierda */
.top-bar-left {
    display: flex;
    align-items: center;
}

/* Alinea el usuario a la derecha */
.top-bar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Estilos del usuario */
.user-initials {
    background: #F4F4F4;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: background 0.3s ease;
}

.user-initials:hover {
    background: #E0E0E0;
}

main h1 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

body {
    background: linear-gradient(135deg, #F5FAFF, #FFFFFF);
}

.boton-cancelar {
    font-size: 16px;
    font-weight: 300;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #D32F2F;
    text-decoration: none;
    transition: 0.3s;
    width: fit-content;
    box-shadow: 0px 2px 8px rgba(211, 47, 47, 0.25);
    background: #FFF;
    color: #D32F2F;
}

.boton-cancelar:hover {
    background: #D32F2F;
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(211, 47, 47, 0.35);
}


.logo {
    height: 30px;
    max-width: 180px;
    object-fit: contain;
}


.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 20px;
    max-height: 20px;
    margin: 0 10px;
    color: #808080; 
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.icon-link img,
.icon-link i {
    width: 100%;
    height: 100%;
    color: inherit;
}

.icon-link:hover {
    opacity: 0.7;
}


h2 {
    color: #606060; 
    text-align: center;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
}

.filtro-container {
    display: flex;
    justify-content: flex-start; /* Alinea a la izquierda */
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
}



.filtro {
    display: inline-flex;
    align-items: center;
    background-color: #f5f3f7; /* Violeta más claro */
    color: #8745b7; /* Morado más suave */
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px; /* Menos bordeado */
    min-width: 160px;
    cursor: pointer;
    position: relative;
}

.filtro select {
    appearance: none;
    background: transparent;
    border: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    cursor: pointer;
    padding-right: 25px; /* Espacio para la flecha */
    outline: none;
    width: 100%;
}

.filtro::after {
    content: "▼";
    font-size: 14px;
    color: inherit;
    position: absolute;
    right: 12px;
    pointer-events: none;
}

.filtro-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
}


.menu-item.active {
    background-color: rgba(107, 75, 183, 0.2) !important;
    color: #6B7280;
}

.menu-item.active i {
    color: #6B7280;
}

.sidebar.collapsed .menu-item.active {
    background-color: rgba(107, 75, 183, 0.2) !important;
}

.sidebar.collapsed .menu-item.active i {
    color: #6B7280;
}
