/* Estilos para el panel de administración */
:root {
  --admin-sidebar-width: 250px;
  --admin-header-height: 60px;
  --admin-primary-color: #28a745;
  --admin-sidebar-bg: #343a40;
  --admin-sidebar-hover: #2c3136;
  --admin-sidebar-active: #28a745;
}

/* Reset de estilos para evitar conflictos */
.admin-container * {
  box-sizing: border-box;
}

/* Layout principal */
.admin-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background-color: var(--admin-sidebar-bg);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header a {
  color: white;
}

.sidebar-header a span {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-heading {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 0;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-nav .nav-link:hover {
  color: white;
  background-color: var(--admin-sidebar-hover);
}

.sidebar-nav .nav-link.active {
  color: white;
  background-color: var(--admin-sidebar-active);
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

/* Contenido principal */
.admin-content {
  flex: 1;
  margin-left: var(--admin-sidebar-width);
  display: flex;
  flex-direction: column;
}

/* Header */
.admin-header {
  height: var(--admin-header-height);
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-header h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}

.admin-header .dropdown-toggle {
  display: flex;
  align-items: center;
}

.admin-header .dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 0.5em;
}

.admin-header .dropdown-toggle span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-header .dropdown-menu {
  max-width: 250px;
  overflow: hidden;
}

.admin-header .dropdown-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Área principal de contenido */
.admin-main {
  flex: 1;
  background-color: #f8f9fa;
  min-height: calc(100vh - var(--admin-header-height));
  padding: 1.5rem;
  overflow-x: hidden;
}

/* Tarjetas de estadísticas */
.stat-card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Gráficos */
.chart-container {
  position: relative;
  height: 300px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

/* Tablas */
.admin-table {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-table thead {
  background-color: #f8f9fa;
}

/* Formularios */
.admin-form {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  
  .admin-sidebar.show {
    transform: translateX(0);
  }
  
  .admin-content {
    margin-left: 0;
  }
  
  .admin-header {
    padding-left: 1rem;
  }
}

/* Badges y etiquetas */
.badge-primary {
  background-color: var(--admin-primary-color);
  color: white;
}

/* Botones de acción */
.btn-action {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Indicadores y notificaciones */
.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.indicator-success {
  background-color: #28a745;
}

.indicator-warning {
  background-color: #ffc107;
}

.indicator-danger {
  background-color: #dc3545;
} 