:root {
    /* Colores principales */
    --dr-primary: #5d4a9e;
    --dr-primary-dark: #45367a;
    --dr-primary-light: #7d6cb2;
    --dr-secondary: #4fb3a4;
    --dr-accent: #f5a623;
    --dr-danger: #e74c3c;
    --dr-success: #2ecc71;
    --dr-warning: #f39c12;
    --dr-info: #3498db;
    
    /* Textos */
    --dr-text-primary: #2c3e50;
    --dr-text-secondary: #7f8c8d;
    
    /* Fondos */
    --dr-bg-light: #f8f9fa;
    --dr-bg-dark: #2c3e50;
}

/* Estilos generales */
body.dr-theme {
    font-family: 'Roboto', sans-serif;
    color: var(--dr-text-primary);
    background-color: var(--dr-bg-light);
    overflow-x: hidden;
    padding-top: 0;
}

/* Pantalla de carga */
.dr-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dr-loading-content {
    text-align: center;
}

.dr-spinner {
    width: 4rem;
    height: 4rem;
    color: var(--dr-primary);
}

.dr-loading-title {
    font-family: 'Poppins', sans-serif;
    color: var(--dr-primary);
    margin-top: 1rem;
    font-weight: 700;
}

.dr-loading-subtitle {
    color: var(--dr-text-secondary);
    font-size: 1.1rem;
}

/* Barra de navegación */
.dr-navbar {
    background-color: var(--dr-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.dr-logo-icon {
    color: white;
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.dr-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.5rem;
}

/* Botón hamburguesa */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Contenedor principal */
.dr-main-container {
    display: flex;
    min-height: 100vh;
    margin-top: 60px; /* Compensar la navbar fija */
}

/* Sidebar */
.dr-sidebar {
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    z-index: 1020;
}

.dr-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dr-sidebar-item {
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.2rem;
}

.dr-sidebar-link {
    display: flex;
    align-items: center;
    color: var(--dr-text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.dr-sidebar-link:hover {
    background-color: rgba(93, 74, 158, 0.1);
    color: var(--dr-primary);
}

.dr-sidebar-link.active {
    background-color: var(--dr-primary);
    color: white;
}

.dr-sidebar-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.dr-user-nav {
    margin-top: auto;
    padding: 1rem;
}

/* Área de contenido */
.dr-content-area {
    flex: 1;
    padding: 2rem;
    background-color: #f5f7fa;
    margin-left: 250px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease;
}

/* Footer */
.dr-footer {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-left: 250px;
}

.dr-footer-text {
    color: var(--dr-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Modal */
.dr-modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.dr-modal-header {
    background-color: var(--dr-primary);
    color: white;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.dr-modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

/* Botones */
.dr-btn-primary {
    background-color: var(--dr-primary);
    border-color: var(--dr-primary);
    color: white;
}

.dr-btn-primary:hover {
    background-color: var(--dr-primary-dark);
    border-color: var(--dr-primary-dark);
}

.dr-btn-secondary {
    background-color: white;
    border-color: var(--dr-primary);
    color: var(--dr-primary);
}

.dr-btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--dr-primary-dark);
    color: var(--dr-primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .dr-sidebar {
        left: -250px;
    }
    
    .dr-sidebar.active {
        left: 0;
    }
    
    .dr-content-area {
        margin-left: 0;
    }
    
    .dr-footer {
        margin-left: 0;
    }
    
    /* Ajustar padding para móviles */
    body {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .dr-content-area {
        padding: 1rem;
    }
    
    .dr-logo-text {
        font-size: 1.2rem;
    }
    
    .dr-logo-icon {
        font-size: 1.4rem;
    }
}

/* Utilidades adicionales */
.dr-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    background-color: white;
}

.dr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dr-card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0 !important;
}

.dr-card-title {
    font-weight: 600;
    color: var(--dr-primary);
    margin-bottom: 0;
}

/* Tablas */
.dr-table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dr-table thead th {
    background-color: var(--dr-primary);
    color: white;
    border-bottom: none;
    padding: 1rem;
}

.dr-table tbody tr {
    transition: background-color 0.2s ease;
}

.dr-table tbody tr:hover {
    background-color: rgba(93, 74, 158, 0.05);
}