:root {
  --azul-francia: #007BFF;
  --sidebar-bg: #161b22;
  --main-bg: #0a0e14;
  --border-color: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #848d97;
}
body {
  background-color: var(--main-bg);
  color: var(--text-primary);
  margin: 0;
}
/* --- Layout Principal --- */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid var(--border-color);
  padding: 1rem;
}
.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
}
.sidebar-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}
.sidebar-header i { color: var(--azul-francia); }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--text-primary);
}
.sidebar-nav a i { font-size: 1.2rem; }
.navbar {
  background-color: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-color);
}

/* --- Estilos de Componentes --- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.header-tools { display: flex; gap: 1rem; }
/* CORRECCIÓN: Ajuste del tamaño del buscador */
.header-tools input[type="search"] {
    width: 250px;
}
/* --- Estilos Sobrios para Contadores --- */
.summary-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.summary-card .counter-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.summary-card .counter-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Variantes de color para diferentes tipos */
.summary-card.card-danger {
  border-color: #dc3545;
}

.summary-card.card-warning {
  border-color: #ffc107;
}

.summary-card.card-info {
  border-color: #17a2b8;
}

.summary-card.card-primary {
  border-color: #007bff;
}

.summary-card.card-secondary {
  border-color: #6c757d;
}

.summary-card.card-success {
  border-color: #28a745;
}
.entity-card {
  background-color: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.entity-card .card-body { flex-grow: 1; }
.entity-card .card-title {
  color: var(--text-primary);
  font-weight: bold;
}
.entity-card .card-footer {
  background-color: transparent;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
}
/* --- Styles for the Map Page --- */
#map {
    height: 500px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.map-dependency-item {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.map-dependency-item:hover {
    background-color: #212529;
    border-color: var(--azul-francia);
}

.map-dependency-item.selected {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: var(--azul-francia);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}
/* --- Ajustes para el Layout del Mapa --- */
#map {
    height: 75vh; /* Altura del mapa ajustada a la pantalla */
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#dependencies-map-list-container {
    max-height: 75vh; /* Misma altura que el mapa */
    overflow-y: auto; /* Añade scroll si la lista es muy larga */
}

/* ====== Estilos para filtro de dependencias ====== */
.dependency-filter-container {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background: #1e1e2f;
    border-radius: 32px;
    border: 1px solid #333;
    justify-content: center;
}

.dependency-filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dependency-filter-label {
    font-weight: bold;
    color: #e0e0e0;
    font-size: 14px;
    white-space: nowrap;
}

.dependency-filter-select {
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a3e;
    color: #e0e0e0;
    font-size: 14px;
    min-width: 200px;
    transition: all 0.3s;
    cursor: pointer;
}

.dependency-filter-select:focus {
    outline: none;
    border-color: #0033A0;
    box-shadow: 0 0 0 2px rgba(0, 51, 160, 0.2);
}

.dependency-filter-select option {
    background: #2a2a3e;
    color: #e0e0e0;
    padding: 8px;
}

.clear-filter-btn {
    padding: 10px 16px;
    background: #0033A0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.clear-filter-btn:hover {
    background: #0050c0;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}
.fc-daygrid-day-frame {
    cursor: pointer;
    transition: background-color 0.2s;
}
.fc-daygrid-day-frame:hover {
    background-color: rgba(255, 255, 255, 0.05);
}