:root {
    --bg-color: #11101d;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #fff;
    --primary-color: #6d28d9;
    --secondary-color: #1d1b31;
    --accent-color: #00d2d3;
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1d1b31;
}

::-webkit-scrollbar-thumb {
    background: #6d28d9;
    border-radius: 4px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 78px;
    background: var(--secondary-color);
    padding: 6px 14px;
    z-index: 99;
    transition: all var(--transition-speed);
}

.sidebar.open {
    width: var(--sidebar-width);
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-color);
}

.logo-details i {
    font-size: 30px;
    margin-right: 15px;
}

.logo-details .logo_name {
    font-size: 22px;
    font-weight: 600;
    opacity: 0;
    transition: all var(--transition-speed);
}

.sidebar.open .logo-details .logo_name {
    opacity: 1;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

/* Ocultar logo por defecto (cerrado) */
.sidebar.open .logo-details .icon {
    opacity: 1;
}

/* Mostrar logo al abrir */
.sidebar #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.sidebar.open #btn {
    text-align: right;
}

.sidebar ul.nav-list {
    margin-top: 20px;
    height: 100%;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li a {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-speed);
    background: transparent;
    color: var(--text-color);
}

.sidebar li a:hover,
.sidebar li a.active {
    background: var(--glass-bg);
}

.sidebar li a .links_name {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.sidebar.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar li i {
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: var(--glass-bg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
    backdrop-filter: blur(5px);
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.open li .tooltip {
    display: none;
}

.home-section {
    position: relative;
    background: var(--bg-color);
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all var(--transition-speed);
    padding: 20px;
}

.sidebar.open~.home-section {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.header-bar .text {
    font-size: 25px;
    font-weight: 600;
    color: var(--primary-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-strong {
    background: #1a1a2e;
    border: 1px solid var(--glass-border);
}

.card-icon {
    font-size: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin-right: 15px;
    color: var(--accent-color);
}

.card-info h3 {
    font-size: 14px;
    color: #aeaeae;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 24px;
    font-weight: 600;
}

.view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary,
.btn-sm {
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.6);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    padding: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mt-20 {
    margin-top: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.p-20 {
    padding: 20px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a2e;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--glass-border);
    width: 50%;
    border-radius: 15px;
    color: white;
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0 10px 0;
    color: var(--accent-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.full-width-select {
    background: rgba(0, 0, 0, 0.4);
    color: white;
}

option {
    background: #1a1a2e;
}