﻿/* ============================================================
   Resurection TEAM â€” tema morado / azul / negro / blanco
   Override de la plantilla Color Admin. Cargar SIEMPRE al final.
   ============================================================ */

:root {
  --re-black:    #06060c;
  --re-bg:       #0a0a13;
  --re-surface:  #12121d;
  --re-surface2: #171724;
  --re-border:   #2a2a3e;
  --re-purple:   #7c3aed;
  --re-purple2:  #a855f7;
  --re-blue:     #2563eb;
  --re-blue2:    #3b82f6;
  --re-text:     #f2f2f8;
  --re-muted:    #a0a0b8;
}

html, body {
  background: var(--re-bg) !important;
  color: var(--re-text) !important;
}

body {
  font-family: 'Nunito', 'Open Sans', system-ui, -apple-system, sans-serif;
}

/* ---------------- Login ---------------- */
html, body, #app.app { min-height: 100vh; }

#app.app {
  background-color: var(--re-black) !important;
  background-blend-mode: multiply;
}

.login.login-with-news-feed {
  width: 100% !important;
  max-width: 100% !important;
}

.login .news-feed {
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(900px 700px at 85% 90%, rgba(37, 99, 235, .26), transparent 60%),
    linear-gradient(160deg, #150e2b 0%, #0a0a13 55%, #07142a 100%) !important;
}

.login .news-image {
  opacity: .18;
  filter: grayscale(.6) contrast(1.05);
}

.login .login-container {
  background: rgba(14, 14, 24, .90) !important;
}

.login .news-caption { color: var(--re-text); }

.login-container {
  background: rgba(16, 16, 26, .86) !important;
  border: 1px solid rgba(124, 58, 237, .30) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(59, 130, 246, .08) inset !important;
}

.login-content .form-control {
  background: #0b0b15 !important;
  border: 1px solid var(--re-border) !important;
  color: #fff !important;
}

.login-content .form-control:focus {
  border-color: var(--re-purple) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .22) !important;
}

.login-content .form-floating > label { color: var(--re-muted) !important; }

.login-content .btn-success {
  background: linear-gradient(135deg, var(--re-purple), var(--re-blue)) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
}

.login-content .btn-success:hover { filter: brightness(1.12); }
.login-content hr { opacity: .15; }
.login-content .text-dark { color: var(--re-muted) !important; }

/* ---------------- Shell de la app ---------------- */
.app-header {
  background: linear-gradient(90deg, #120d24 0%, #0d1526 100%) !important;
  border-bottom: 1px solid var(--re-border) !important;
}

.app-sidebar, #sidebar {
  background: #0b0b15 !important;
  border-right: 1px solid var(--re-border) !important;
}

#sidebar .menu-link { color: var(--re-muted) !important; }

#sidebar .menu-link:hover,
#sidebar .menu-link.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, .28), rgba(37, 99, 235, .10)) !important;
  color: #fff !important;
  border-left: 3px solid var(--re-purple);
}

.app-content { background: var(--re-bg) !important; }

/* ---------------- Tarjetas y paneles ---------------- */
.card, .panel, .modal-content, .dropdown-menu {
  background: var(--re-surface) !important;
  border-color: var(--re-border) !important;
  color: var(--re-text) !important;
}

.card-header, .panel-heading, .modal-header {
  background: var(--re-surface2) !important;
  border-color: var(--re-border) !important;
  color: #fff !important;
}

.list-group-item {
  background: var(--re-surface) !important;
  border-color: var(--re-border) !important;
  color: var(--re-text) !important;
}

/* ---------------- Formularios ---------------- */
.form-control, .form-select, select, textarea,
input[type=text], input[type=email], input[type=password], input[type=number] {
  background: #0c0c17 !important;
  border-color: var(--re-border) !important;
  color: #fff !important;
}

.form-control:focus, .form-select:focus {
  background: #0c0c17 !important;
  border-color: var(--re-purple) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .20) !important;
  color: #fff !important;
}

.form-control::placeholder { color: #5d5d75 !important; }
label, .form-label { color: var(--re-muted); }

/* ---------------- Botones ---------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--re-purple), var(--re-blue)) !important;
  border: 0 !important;
}

.btn-success {
  background: linear-gradient(135deg, #0ea472, var(--re-blue)) !important;
  border: 0 !important;
}

.btn-secondary, .btn-default {
  background: #1b1b2b !important;
  border-color: var(--re-border) !important;
  color: var(--re-text) !important;
}

/* ---------------- Tablas ---------------- */
.table { color: var(--re-text) !important; }

.table thead th {
  background: #15151f !important;
  color: var(--re-muted) !important;
  border-color: var(--re-border) !important;
}

.table tbody tr { background: var(--re-surface) !important; }
.table tbody tr:hover { background: #1a1a2a !important; }
.table td, .table th { border-color: var(--re-border) !important; }

/* ---------------- Utilidades que rompen el modo oscuro ---------------- */
.bg-white, .bg-light { background: var(--re-surface) !important; }
.text-dark { color: var(--re-text) !important; }
.text-gray-600, .text-gray-700, .text-muted { color: var(--re-muted) !important; }
.border { border-color: var(--re-border) !important; }

a { color: var(--re-blue2); }
a:hover { color: var(--re-purple2); }

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--re-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--re-purple), var(--re-blue));
  border-radius: 8px;
}

/* ---------------- Movil: barra de busqueda visible ---------------- */
@media (max-width: 767.98px) {
  .app-header {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 58px !important;
    padding: 8px 10px 6px !important;
    row-gap: 6px;
  }
  .app-header .navbar-header { flex: 1 1 auto; min-width: 0; }
  .app-header .navbar-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    width: 100% !important;
    order: 3;
  }
  .app-header .navbar-form {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1;
  }
  .app-header .navbar-form .input-group { width: 100% !important; display: flex; }
  .app-header .navbar-form .form-control {
    width: 100% !important;
    min-height: 38px;
  }
  .app-header .navbar-user { order: 2; margin-left: auto !important; }
  .app-content { padding-top: 10px !important; }
}

/* Ajustes finos movil: evitar desbordes horizontales */
@media (max-width: 767.98px) {
  html, body { overflow-x: hidden !important; }
  .app-content { padding: 12px !important; }
  .app-content .row { margin-left: 0 !important; margin-right: 0 !important; }
  .app-content [class*="col-"] { padding-left: 6px !important; padding-right: 6px !important; }
  .card { width: 100% !important; }
}

/* ---------------- Vendedores autorizados (login) ---------------- */
.rt-sellers {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 58, 237, .18);
}

.rt-sellers-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rt-sellers-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .45), transparent);
}

.rt-sellers-title {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #a0a0b8;
  white-space: nowrap;
}

.rt-sellers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.rt-seller-chip {
  width: 78px;
  text-align: center;
}

.rt-seller-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
  overflow: hidden;
  border: 2px solid rgba(168, 85, 247, .45);
}

.rt-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-seller-name {
  font-size: 11.5px;
  color: #e8e8f4;
  font-weight: 600;
  line-height: 1.2;
}

.rt-seller-type {
  font-size: 10px;
  color: #8b8ba7;
}

@media (max-width: 480px) {
  .rt-sellers-grid { gap: 10px; }
  .rt-seller-chip { width: 64px; }
  .rt-seller-avatar { width: 46px; height: 46px; font-size: 15px; }
  .rt-seller-name { font-size: 10.5px; }
}
