/* ==========================================================================
   LumeVero — LIVE FINANCIAL COMPUTE MARKET DASHBOARD STYLES
   ========================================================================== */

.live-market-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(0, 170, 85, 0.1);
  border: 1px solid rgba(0, 170, 85, 0.35);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseBeacon 1.5s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px var(--accent-green); }
  50% { transform: scale(1.4); opacity: 0.4; box-shadow: 0 0 14px var(--accent-green); }
}

/* Market Financial Ticker Ribbon */
.market-ticker-tape {
  background: rgba(9, 13, 20, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border-glow);
  border-radius: 12px;
  padding: 10px 20px;
  margin-bottom: 32px;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.ticker-symbol {
  color: var(--text-dim);
  font-weight: 700;
  margin-right: 6px;
}

.ticker-price {
  color: var(--text-main);
  font-weight: 700;
  margin-right: 6px;
  transition: color 0.3s ease;
}

.ticker-change.pos {
  color: var(--accent-green);
  font-weight: 700;
}

.ticker-change.neg {
  color: #ff3366;
  font-weight: 700;
}

/* Dashboard Metric Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px;
  margin-bottom: 32px;
  width: 100%;
}

.dash-widget {
  background: rgba(15, 19, 26, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 20px 16px;
  transition: all 0.25s ease;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-widget:hover {
  border-color: rgba(0, 170, 85, 0.35);
  box-shadow: 0 8px 24px rgba(0, 170, 85, 0.08);
  transform: translateY(-2px);
}

.dash-widget-title {
  font-size: clamp(0.7rem, 1vw, 0.8125rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.dash-widget-title span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-live-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0, 170, 85, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 170, 85, 0.3);
  flex-shrink: 0;
}

.badge-live-tag.neg {
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.3);
}

.dash-widget-val {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.85rem);
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-widget-val .val-unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-widget-sub {
  font-size: clamp(0.68rem, 0.9vw, 0.775rem);
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-widget-sub strong {
  color: var(--text-main);
}

/* Flash Animations for Real-Time Ticks */
.flash-green {
  animation: flashG 0.6s ease-out;
}

.flash-red {
  animation: flashR 0.6s ease-out;
}

@keyframes flashG {
  0% { color: #00aa55; text-shadow: 0 0 16px #00aa55; }
  100% { color: var(--accent-green); }
}

@keyframes flashR {
  0% { color: #ff3366; text-shadow: 0 0 16px #ff3366; }
  100% { color: var(--accent-green); }
}

/* Financial Chart Panel & Orderbook Log */
.chart-panel {
  background: rgba(15, 19, 26, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border-glow);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chart-header-row h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.chart-sub-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.chart-live-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 170, 85, 0.08);
  border: 1px solid rgba(0, 170, 85, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: pulseBeacon 1.2s infinite ease-in-out;
}

.canvas-wrap {
  width: 100%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #06090f;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Orderbook Live Trade Feed */
.live-trade-feed {
  background: rgba(9, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
}

.feed-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.feed-log-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  animation: fadeInRow 0.35s ease-out;
}

@keyframes fadeInRow {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.feed-time {
  color: var(--text-dim);
}

.feed-action {
  color: var(--accent-green);
  font-weight: 700;
}

.feed-price {
  color: var(--text-main);
  font-weight: 700;
}

@media (max-width: 768px) {
  .chart-header-row {
    flex-direction: column;
  }
  .ticker-track {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   LumeVero ADMIN PORTAL STYLES (.admin-layout, .admin-sidebar, .admin-table)
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative;
}

.admin-sidebar {
  width: 280px;
  background: rgba(9, 13, 20, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1.5px solid var(--surface-border-glow);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  text-decoration: none;
}

.admin-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.admin-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 170, 85, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 170, 85, 0.4);
  letter-spacing: 0.08em;
  margin-left: 2px;
}

.admin-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab-btn.active {
  color: var(--accent-green);
  background: rgba(0, 170, 85, 0.12);
  border-color: rgba(0, 170, 85, 0.35);
  box-shadow: 0 0 16px var(--accent-green-glow);
  font-weight: 700;
}

.admin-tab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.admin-main {
  flex-grow: 1;
  padding: 32px 40px;
  min-width: 0;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-page-title h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.admin-page-title p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.admin-user-profile-wrap {
  position: relative;
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 19, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.admin-user-profile:hover,
.admin-user-profile.active {
  border-color: rgba(0, 170, 85, 0.4);
  background: rgba(20, 26, 36, 0.95);
  box-shadow: 0 4px 20px rgba(0, 170, 85, 0.1);
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green) 0%, #009148 100%);
  color: #030507;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 12px var(--accent-green-glow);
  flex-shrink: 0;
}

.profile-dropdown-arrow {
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.2s ease;
  margin-left: 4px;
  flex-shrink: 0;
}

.admin-user-profile:hover .profile-dropdown-arrow {
  color: var(--accent-green);
}

.admin-user-profile.active .profile-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent-green);
}

/* User Profile Dropdown Menu Card */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: rgba(12, 16, 23, 0.96);
  backdrop-filter: blur(24px);
  border: 1.5px solid var(--surface-border-glow);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 170, 85, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 500;
}

.profile-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-dropdown-header {
  padding: 10px 12px 8px 12px;
}

.profile-dropdown-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.profile-dropdown-role {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 2px;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.profile-dropdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.profile-dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.profile-dropdown-item:hover {
  background: rgba(0, 170, 85, 0.1);
  color: #ffffff;
}

.profile-dropdown-item:hover svg {
  color: var(--accent-green);
}

.profile-dropdown-item.danger {
  color: #ff3366;
}

.profile-dropdown-item.danger svg {
  color: #ff3366;
}

.profile-dropdown-item.danger:hover {
  background: rgba(255, 51, 102, 0.12);
  color: #ff4d79;
}

/* Tab Content Transitions */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: adminFade 0.35s ease-out;
}

@keyframes adminFade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Styled Cyber Data Tables */
.admin-table-wrap {
  background: rgba(15, 19, 26, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border-glow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.admin-table-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(9, 13, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 18px 24px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table tr:hover td {
  background: rgba(0, 170, 85, 0.03);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.active {
  background: rgba(0, 170, 85, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 170, 85, 0.3);
}

.status-badge.pending {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-badge.danger {
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

/* Action Buttons inside Tables */
.btn-table-action {
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-table-approve {
  background: var(--accent-green);
  color: #030507;
}

.btn-table-approve:hover {
  background: var(--accent-green-hover);
}

.btn-table-reject {
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.btn-table-reject:hover {
  background: rgba(255, 51, 102, 0.3);
}

.btn-table-view {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

.btn-table-view:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Liste : barre de recherche + pagination */
.list-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.list-search-form input[type="text"] {
  flex: 1 1 240px;
  padding: 10px 14px;
  background: #090d14;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.list-search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0, 170, 85, 0.15);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
}

.pagination-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.page-link:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.page-link.active {
  background: var(--accent-green);
  color: #030507;
  border-color: var(--accent-green);
  cursor: default;
}

/* Admin Responsive & Mobile Drawer Styles */
.admin-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 7, 0.75);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.admin-sidebar-close:hover {
  color: #ffffff;
}

/* Mobile Toggle Styling */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(15, 19, 26, 0.9);
  border: 1px solid var(--surface-border-glow);
  color: var(--accent-green);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(0, 170, 85, 0.12);
  border-color: var(--accent-green);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* Breakpoint 1024px: Tablet & Mobile Drawer Sidebar */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1000;
    width: 290px;
    max-width: 85vw;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-close {
    display: block;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .admin-main {
    padding: 24px 20px;
    width: 100%;
  }

  .admin-topbar {
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
}

/* Breakpoint 768px: Mid Mobile & Small Tablets */
@media (max-width: 768px) {
  .admin-topbar {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .topbar-right-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-page-title h1 {
    font-size: 1.45rem;
  }

  .admin-page-title p {
    font-size: 0.8125rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 24px;
  }

  .dash-widget {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .dash-widget-val {
    font-size: clamp(0.95rem, 3.2vw, 1.35rem);
  }

  .badge-live-tag {
    font-size: 0.58rem;
    padding: 1px 5px;
  }

  .admin-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table th {
    padding: 12px 14px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .admin-table td {
    padding: 12px 14px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .btn-table-action {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* Breakpoint 540px: Small Mobile Devices */
@media (max-width: 540px) {
  .admin-main {
    padding: 16px 12px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .dash-widget {
    padding: 10px 5px;
  }

  .dash-widget-val {
    font-size: clamp(0.82rem, 3vw, 1.1rem);
  }

  .admin-user-profile {
    padding: 6px 10px;
  }

  .admin-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
  }

  .user-profile-info {
    font-size: 0.8125rem;
  }

  .admin-table-header h3 {
    font-size: 1.05rem;
  }
}

