/* ==== SIDEBAR VENDEDORES ==== */
.sidebar-vendedor {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 230px;
  background-color: #121212;
  border-right: 2px solid #444;
  z-index: 1000;
}

.sidebar-vendedor .nav-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar-vendedor .nav-link:hover {
  background-color: #1e1e1e;
  color: #ffc107;
}

.sidebar-vendedor .nav-link.active {
  background-color: #ffc107;
  color: #000;
  font-weight: bold;
}

.sidebar-vendedor h4 {
  font-size: 1.2rem;
}

/* ==== CONTENIDO PRINCIPAL ==== */
.main-content {
  margin-left: 250px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .sidebar-vendedor {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
  }

  .main-content {
    margin-left: 0;
    padding-top: 20px;
  }
}
.vendedor-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.vendedor-content {
  margin-left: 250px;
  padding: 2rem;
  background-color: #111;
  min-height: 100vh;
}

.vendedor-sidebar .sidebar-link:hover {
  background-color: #222;
  color: #FFD700;
  text-decoration: none;
}

body {
  background-color: #000; /* fondo negro */
  color: #fff; /* texto blanco */
}

.text-muted,
.text-secondary,
.text-black-50,
.text-white-50 {
  color: #ccc !important; /* mejora contraste */
}

p, h1, h2, h3, h4, h5, h6, span {
  color: #fff !important;
}

a, a:hover {
  color: #f7d354 !important; /* dorado del logo */
  text-decoration: none;
}

/* === CORRECCIÓN MODAL DETALLE DEL VENDEDOR === */
#detalleVendedorModal .modal-content {
  background-color: #f8f9fa !important; /* Fondo gris claro */
  color: #212529 !important; /* Texto oscuro */
  border-radius: 10px;
}

/* Texto interno en negro */
#detalleVendedorModal strong,
#detalleVendedorModal div,
#detalleVendedorModal td,
#detalleVendedorModal th,
#detalleVendedorModal p {
  color: #212529 !important;
}

/* Encabezado del modal con tono azul más suave */
#detalleVendedorModal .modal-header {
  background-color: #0056b3 !important; /* azul Bootstrap más oscuro */
  color: #fff !important;
  border-bottom: 1px solid #004085;
}

/* Botón cerrar visible sobre azul */
#detalleVendedorModal .btn-close {
  filter: invert(1); /* hace el ícono de cerrar blanco */
}

/* Botón inferior "Cerrar" */
#detalleVendedorModal .modal-footer .btn-secondary {
  background-color: #e0e0e0;
  color: #000 !important;
  border: none;
  font-weight: bold;
}

#detalleVendedorModal .modal-footer .btn-secondary:hover {
  background-color: #d6d6d6;
}

/* ========================================================= */
/* ==== ESTILOS ESPECÍFICOS PARA LA VISTA 'MI PERFIL' ==== */
/* ========================================================= */

/* Contenedor principal de la tarjeta (si usas la clase custom-card-style) */
.card.bg-dark {
    background-color: #121212 !important; /* Usar el color oscuro del sidebar para consistencia */
    border: 1px solid #444; /* Borde sutil del mismo color que el sidebar */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Campos de entrada: asegurar que se vean bien sobre fondo oscuro */
.form-control.bg-dark {
    background-color: #1e1e1e !important; /* Fondo ligeramente más claro que la tarjeta */
    color: #fff !important;
    border: 1px solid #444; /* Borde inicial */
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Estado de enfoque (focus) para los campos */
.form-control.bg-dark:focus {
    background-color: #1e1e1e !important;
    border-color: #f7d354 !important; /* Usar el color dorado/amarillo de tu tema */
    box-shadow: 0 0 0 0.25rem rgba(247, 211, 84, 0.25); /* Sombra suave dorada */
}

/* Etiquetas de formulario (para asegurar el color blanco) */
.form-label {
    color: #fff !important;
    font-weight: 500;
}

/* Botón de Guardar Cambios (Advertencia) */
.btn-warning {
    background-color: #f7d354 !important; /* Dorado */
    border-color: #f7d354 !important;
    color: #000 !important; /* Texto negro sobre dorado */
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #e5c051 !important; /* Dorado ligeramente más oscuro al pasar el ratón */
    border-color: #e5c051 !important;
}

/* Botón de Actualizar Contraseña (Peligro/Rojo) */
.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

/* Separador horizontal */
hr.border-secondary {
    border-top: 1px solid #444 !important; /* Usar el mismo color de borde del sidebar */
}

/* Mensaje de error de las contraseñas */
#passwordHelp.text-danger {
    color: #dc3545 !important; /* Rojo estándar */
}
