:root {
    --header-height: 60px;
    --primary-color: #4a6bfd;
    --primary-hover: #3a58d6;
    --primary-light: rgba(74, 107, 253, 0.1);
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --light-bg: #f8f9fa;
    --dark-bg: #222831;
    --dark-bg-lighter: #30363d;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    --sidebar-width: 280px;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Estilos para el sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: black;
    background-image: linear-gradient(to bottom, var(--dark-bg), #1a1f25);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    overflow-y: auto;
    color: white;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

/* Solo ocultar en dispositivos móviles */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.brand-container {
    padding: 1.5rem 0 1rem;
    text-align: center;
}

.brand-title {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0.75rem auto;
    width: 50%;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* User profile summary */
.user-profile-summary {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin: 0 0.5rem 1.5rem;
    text-align: center;
}

/* Section titles */
.sidebar-section {
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 1rem;
}

/* Version info */
.version-info {
    opacity: 0.5;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.5rem;
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%;
    margin: 1rem 0;
}

.nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0;
    list-style-type: none;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    margin: 0 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.menu-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.nav-link.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-link.active .menu-icon-container {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-link:hover .menu-icon-container {
    background-color: rgba(255, 255, 255, 0.15);
}

.logout-link {
    color: var(--accent-color) !important;
    cursor: pointer;
    margin-top: auto;
}

.logout-link:hover {
    background-color: rgba(255, 105, 97, 0.15) !important;
}

.logout-link .menu-icon-container {
    background-color: rgba(255, 105, 97, 0.2);
}

/* Estilos para el contenedor principal */
.content-wrapper {
    flex: 1;
    background-color: var(--light-bg);
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed) ease-in-out;
}

@media (min-width: 768px) {
    .content-wrapper {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
}

/* Estilos para el header/navbar */
.navbar-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
    z-index: 10;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-left: 0.5rem;
}

.menu-toggle-btn {
    background: transparent;
    border: none;
    color: var(--dark-bg);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.menu-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.notification-icon {
    color: var(--secondary-color);
    font-size: 1.25rem;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.notification-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    text-decoration: none;
    color: var(--dark-bg);
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-dropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-name {
    font-weight: 500;
    color: var(--dark-bg);
    margin-right: 0.5rem;
}

/* Estilos para el contenido principal */
.main-content {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--light-bg);
    min-height: calc(100vh - var(--header-height));
}

/* Estilos para tarjetas y otros elementos */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Estilos para tablas */
.table-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Badges para estados */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 30px;
}

.badge-ingresado {
    background-color: #3498db;
    color: white;
}

.badge-proceso {
    background-color: #f39c12;
    color: white;
}

.badge-aceptado {
    background-color: #2ecc71;
    color: white;
}

.badge-cancelado {
    background-color: #e74c3c;
    color: white;
}

/* Formularios */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}