/* ================== BASE GENERAL UICM ================== */
:root {
  --uicm-verde: #0F4229;
  --uicm-verde-oscuro: #0f5132;
  --uicm-verde-claro: #166534;
  --uicm-oro: #d4af37;
  --uicm-gris-fondo: #f5f6fa;
}

/* Fuente y fondo general */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--uicm-gris-fondo);
  color: #333;
  margin: 0;
  min-height: 100vh;
}

/* ================== SIDEBAR ================== */
.sidebar {
  background: var(--uicm-verde);
  color: #fff;
  min-height: 100vh;
  padding: 20px 0;
  position: fixed;
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 3px solid var(--uicm-oro);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

/* Encabezado del sidebar */
.sidebar-top {
  text-align: left;
}

.sidebar-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

.sidebar p {
  color: var(--uicm-oro);
  font-size: 0.9rem;
}

/* Enlaces del menú */
.sidebar a {
  display: block;
  color: #e8ffe9;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--uicm-oro);
  padding-left: 20px;
}

.sidebar a.text-danger:hover {
  background-color: #dc2626;
  color: #fff;
}

/* Parte inferior (usuario) */
.sidebar-bottom {
  padding: 15px;
}

.user-link {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--uicm-oro);
}

.user-info {
  line-height: 1.1;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-role {
  color: var(--uicm-oro);
  font-size: 0.75rem;
}

/* Dropdown */
.dropdown-menu-dark {
  background-color: var(--uicm-verde);
  border: 1px solid var(--uicm-oro);
}

.dropdown-menu-dark .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ================== CONTENIDO PRINCIPAL ================== */
.content {
  margin-left: 250px;
  padding: 2rem;
}

h2 {
  color: var(--uicm-verde-oscuro);
  font-weight: 700;
  font-size: 1.8rem;
  border-left: 6px solid var(--uicm-oro);
  padding-left: 10px;
  margin-bottom: 1.5rem;
}

/* ================== CARDS GENERALES ================== */
.card {
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 81, 50, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #ffffff;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(15, 81, 50, 0.25);
  border-color: var(--uicm-oro);
}

.card h5 {
  color: var(--uicm-verde-oscuro);
  font-weight: 600;
}

.card h3 {
  margin-top: 10px;
  font-size: 1.8rem;
  color: var(--uicm-verde-claro);
}

/* ================== BOTONES ================== */
.btn-primary {
  background: linear-gradient(90deg, var(--uicm-verde-oscuro), var(--uicm-verde-claro));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--uicm-verde-claro), #22c55e);
  box-shadow: 0 0 8px rgba(33, 197, 94, 0.4);
}

.btn-outline-primary {
  border-color: var(--uicm-verde-oscuro);
  color: var(--uicm-verde-oscuro);
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--uicm-verde-oscuro);
  color: #fff;
}

/* Botón dorado para acciones especiales */
.btn-gold {
  background-color: var(--uicm-oro);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-gold:hover {
  background-color: #b8902f;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ================== FOOTER (estilo Profesor) ================== */
footer {
  text-align: center;
  padding: 15px;
  background-color: #ffffff;
  color: #61666b;
  font-size: 0.9rem;
  border-top: 2px solid var(--uicm-oro);
  margin-top: 2rem;
}

/* Que el modal no rebase el alto de la pantalla en móviles */
.modal-dialog-centered .modal-content {
  max-height: calc(100vh - 3rem);
}

.modal-dialog-centered .modal-body {
  overflow-y: auto;
}

