/* Variables CSS */
:root {
    --primary-color: #1a252f;
    --secondary-color: #3498db;
    --accent-color: #f1c40f;
    --sidebar-width: 250px;
    --sidebar-mini-width: 70px;
    --top-navbar-height: 60px;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --border-color: #bdc3c7;
    --hover-color: #2c3e50;
}

/* Auth Pages Style Override */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: var(--primary-color);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Wrapper principal */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: var(--text-light);
    transition: all 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-header h3 i {
    color: #f39c12;
    margin-right: 10px;
}

.sidebar .components {
    padding: 20px 0;
}

.sidebar .components li {
    margin-bottom: 5px;
}

.sidebar .components li a {
    padding: 15px 20px;
    display: block;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar .components li a:hover,
.sidebar .components li.active a {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
}

.sidebar .components li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Contenido principal */
#content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
}

/* Barra de navegación superior */
.top-navbar {
    height: var(--top-navbar-height);
    background: white !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

.top-navbar .btn-info {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.top-navbar .btn-info:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.top-navbar .btn-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

.top-navbar .btn-link:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

/* Contenido principal */
.main-content {
    padding: 20px;
    min-height: calc(100vh - var(--top-navbar-height));
}

/* Cards y componentes */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

/* Botones */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -var(--sidebar-width);
    }

    .sidebar.active {
        margin-left: 0;
    }

    #content {
        width: 100%;
        margin-left: 0;
    }

    #content.active {
        margin-left: var(--sidebar-width);
    }
}

/* Sidebar colapsado (Mini Sidebar) */
.sidebar.collapsed {
    margin-left: 0;
    width: var(--sidebar-mini-width);
}

.sidebar.collapsed .sidebar-header h3 {
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
}

.sidebar.collapsed .sidebar-header h3 span {
    display: none;
}

.sidebar.collapsed .sidebar-header h3 i {
    margin-right: 0;
    font-size: 1.5rem;
}

.sidebar.collapsed .components li a {
    text-align: center;
    padding: 15px 10px;
}

.sidebar.collapsed .components li a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar.collapsed .components li a span {
    display: none;
}

#content.expanded {
    width: calc(100% - var(--sidebar-mini-width));
    margin-left: var(--sidebar-mini-width);
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para las páginas específicas */
.page-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.page-subtitle {
    color: #7f8c8d;
    margin: 5px 0 0 0;
}

/* Dashboard específico */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.7;
}