/* NOXAI Pro UI — professional look & feel overlay
   This stylesheet overrides legacy styles to achieve a cleaner, trustworthy, SaaS-grade interface.
   Scope: global typography, layout polish, sidebar/nav, headers, buttons, inputs, tables, modals, badges.
*/

:root{
  --bg: #0b1220;
  --surface: #0e1628;
  --surface-2: #121a2c;
  --border: rgba(255,255,255,0.08);
  --text: #e6edf7;
  --muted: #9fb0c3;
  --primary: #00e5a8;
  --primary-600: #00c896;
  --primary-700: #00ad84;
  --danger: #ff5c5c;
  --warning: #f8c24e;
  --success: #2ecc71;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Base */
html,body{
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: Inter, "Helvetica Neue", Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cards / Panels */
.auth-card, .panel, .vip-auth-modal, .modal-card, .referrals-modal-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12)) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

/* Sidebar */
.sidebar{
  background: var(--surface) !important;
  border-right: 1px solid var(--border) !important;
}
.sidebar .logo{ border-bottom: 1px solid var(--border) !important; }
.main-nav .nav-item{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); opacity: 0.85;
  transition: background .15s ease, opacity .15s ease;
}
.main-nav .nav-item i{ width: 18px; text-align: center; opacity: .9; }
.main-nav .nav-item:hover{ background: rgba(255,255,255,0.04); opacity: 1; }
.main-nav .nav-item.active{ background: rgba(0,229,168,0.12); opacity: 1; color: var(--text); }

/* Header */
.premium-header{ background: var(--surface) !important; border-bottom: 1px solid var(--border) !important; box-shadow: none !important; }
.brand-title{ letter-spacing: .5px; }
.brand-description{ color: var(--muted) !important; }
.solana-indicator .status-dot{ box-shadow: none !important; }

/* Hide top header brand logo (keep sidebar logo) */
.premium-header .brand-section{ display: none !important; }

/* Professional Solana network chip styling */
.solana-status{ display:flex; align-items:center; }
.solana-indicator{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px;
}
.solana-indicator .solana-icon{ width: 18px; height: 18px; opacity: .95; }
.solana-indicator .status-text{ font-weight: 800; letter-spacing: .2px; color: var(--text); }
.solana-indicator .status-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,229,168,0.14), 0 0 12px rgba(0,229,168,0.4) inset;
}

/* Buttons */
.btn-primary, .vip-auth-btn, .btn-google, .btn-secondary, .btn-danger, .btn-claim{
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  font-weight: 600 !important;
  letter-spacing: .2px;
}
.btn-primary, .vip-auth-btn, .btn-claim{
  background: var(--primary) !important;
  border-color: rgba(0,0,0,0.2) !important;
  color: #0b1220 !important;
}
.btn-primary:hover, .vip-auth-btn:hover, .btn-claim:hover{ background: var(--primary-600) !important; }
.btn-secondary{ background: rgba(255,255,255,0.06) !important; color: var(--text) !important; }
.btn-secondary:hover{ background: rgba(255,255,255,0.1) !important; }
.btn-danger{ background: rgba(255,92,92,0.1) !important; color: #ff8a8a !important; border-color: rgba(255,92,92,0.25) !important; }
.btn-danger:hover{ background: rgba(255,92,92,0.15) !important; }
.btn-google{ background: rgba(255,255,255,0.92) !important; color: #111 !important; }
.btn-google:hover{ background: #fff !important; }

/* Inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea{
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
}
input::placeholder, textarea::placeholder{ color: #8aa0b5 !important; }

/* Tables */
.table{ color: var(--text) !important; }
.table th{ background: rgba(255,255,255,0.03) !important; border-bottom: 1px solid var(--border) !important; }
.table td{ border-bottom: 1px solid var(--border) !important; }
.table tbody tr:hover{ background: rgba(255,255,255,0.04) !important; }

/* Badges */
.vip-badge{ padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,0.03); font-weight: 600; }
.vip-badge.active{ color: #09352d; background: rgba(0,229,168,0.22); border-color: rgba(0,229,168,0.35); }
.status-badge{ padding: 4px 8px; border-radius: 8px; }
.status-badge.approved{ background: rgba(46,204,113,0.15); color: #9be7bd; }
.status-badge.rejected{ background: rgba(255,92,92,0.12); color: #ffb0b0; }
.status-badge.pending{ background: rgba(248,194,78,0.15); color: #f6dfa3; }

/* Empty states */
.empty-state{ color: var(--muted) !important; }
.empty-icon{ opacity: .6; }

/* Modals */
#referrals-modal{
  background: rgba(2,6,23,0.72) !important;
}
#referrals-modal .modal-card, #referrals-modal .referrals-modal-card, #referrals-modal .panel{
  background: var(--surface-2) !important;
}

/* Admin v2 tweaks */
.tag{ border-radius: 8px !important; }
.tag.ok{ background: rgba(46,204,113,0.1); }
.tag.warn{ background: rgba(248,194,78,0.09); }

/* Auth pages */
.auth-container{ backdrop-filter: none !important; }
.auth-message{ border-radius: 10px !important; }

/* Referral claim row */
.claim-row{ gap: 8px; }
.wallet-input{ min-width: 240px; }

/* Scrollbars */
*{ scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
*::-webkit-scrollbar{ height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.2); border-radius: 8px; }
*::-webkit-scrollbar-track{ background: transparent; }
