/* ============================================
   DRAGON BALL X - Modern Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --primary: #f5a623;
  --primary-dark: #c47d0e;
  --secondary: #ff6b00;
  --bg-dark: #080c14;
  --bg-card: #0d1220;
  --bg-card2: #111827;
  --border: #1e2d45;
  --border-glow: rgba(245, 166, 35, 0.3);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-gold: #f5a623;
  --glow: 0 0 20px rgba(245, 166, 35, 0.15);
}

* { box-sizing: border-box; }

body {
  background-color: #080c14 !important;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 0, 0.04) 0%, transparent 60%);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  color: #e2e8f0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ============ CONTAINER ============ */
#container {
  width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ============ HEADER ============ */
.header {
  height: 120px;
  background: linear-gradient(135deg, #080c14 0%, #0d1220 50%, #080c14 100%);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.05), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============ NAVBAR ============ */
.navbar.navbar-inverse {
  background: linear-gradient(180deg, #0d1220 0%, #080c14 100%) !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-top: 1px solid rgba(245,166,35,0.2) !important;
  margin-bottom: 0 !important;
  min-height: 52px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar-inverse .navbar-nav > li > a {
  color: #94a3b8 !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 16px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-inverse .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: var(--primary) !important;
  background: transparent !important;
}

.navbar-inverse .navbar-nav > li > a:hover::after {
  left: 0; right: 0;
}

.navbar-inverse .navbar-nav > .dropdown > .dropdown-menu {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  border-top: 2px solid var(--primary) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
  padding: 8px 0 !important;
  min-width: 180px;
}

.navbar-inverse .navbar-nav > .dropdown > .dropdown-menu > li > a {
  color: #94a3b8 !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 10px 20px !important;
  transition: all 0.2s;
}

.navbar-inverse .navbar-nav > .dropdown > .dropdown-menu > li > a:hover {
  background: rgba(245,166,35,0.1) !important;
  color: var(--primary) !important;
  padding-left: 26px !important;
}

/* ============ LAYOUT ============ */
#main-layout {
  overflow: hidden;
  width: 100%;
}

.sidebar {
  float: right;
  width: 255px;
  margin: 0 0 12px 12px;
}

.content {
  overflow: hidden;
  min-height: 400px;
  margin: 0;
}

/* Slider dentro do content */
.content .slider-wrapper,
.content #slider,
.content .carousel {
  width: 100% !important;
}

/* Evitar espaço em branco antes do slider */
.content > * {
  margin-top: 0 !important;
}

/* ============ PANELS ============ */
.panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
  margin-bottom: 12px !important;
}

.panel-default > .panel-heading {
  background: linear-gradient(135deg, #111827, #0d1220) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 8px 8px 0 0 !important;
  color: var(--primary) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 16px !important;
}

.panel-body {
  padding: 16px !important;
  color: var(--text) !important;
}

/* ============ TABLES ============ */
.table {
  color: var(--text) !important;
  margin-bottom: 0 !important;
}

.table > thead > tr > th {
  background: linear-gradient(135deg, #111827, #0d1220) !important;
  color: var(--primary) !important;
  border-bottom: 2px solid var(--border) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 12px !important;
}

.table > tbody > tr > td {
  border-top: 1px solid var(--border) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  color: var(--text) !important;
}

.table > tbody > tr:hover > td {
  background: rgba(245,166,35,0.05) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background: rgba(255,255,255,0.02) !important;
}

/* ============ FORMS ============ */
.form-control {
  background: #0a0f1a !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  height: 40px;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15) !important;
  outline: none !important;
  background: #0d1220 !important;
}

.form-control::placeholder { color: #475569 !important; }

.form-group { margin-bottom: 14px !important; }

label {
  color: #94a3b8 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px !important;
}

/* ============ BUTTONS ============ */
.btn {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(245,166,35,0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffc107, var(--primary)) !important;
  box-shadow: 0 6px 20px rgba(245,166,35,0.5) !important;
  transform: translateY(-1px) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  color: #fff !important;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #fff !important;
}

.btn-default {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.btn-default:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* ============ SIDEBAR WIDGETS ============ */
.sidebar .panel {
  border-left: 2px solid var(--primary) !important;
}

.sidebar .panel-heading {
  font-size: 11px !important;
  letter-spacing: 2px !important;
}

.sidebar .panel-body {
  padding: 12px !important;
  font-size: 13px;
}

/* Server Status */
.server-online {
  color: #22c55e !important;
  font-weight: 700;
}

.server-offline {
  color: #ef4444 !important;
  font-weight: 700;
}

/* ============ ALERTS ============ */
.alert {
  border-radius: 8px !important;
  border: none !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.alert-success {
  background: rgba(34,197,94,0.1) !important;
  border-left: 3px solid #22c55e !important;
  color: #86efac !important;
}

.alert-danger {
  background: rgba(239,68,68,0.1) !important;
  border-left: 3px solid #ef4444 !important;
  color: #fca5a5 !important;
}

.alert-info {
  background: rgba(59,130,246,0.1) !important;
  border-left: 3px solid #3b82f6 !important;
  color: #93c5fd !important;
}

.alert-warning {
  background: rgba(245,166,35,0.1) !important;
  border-left: 3px solid var(--primary) !important;
  color: #fcd34d !important;
}

/* ============ BADGES & LABELS ============ */
.badge {
  background: var(--primary) !important;
  color: #000 !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.label-default { background: var(--bg-card2) !important; }
.label-primary { background: var(--primary) !important; color: #000 !important; }
.label-success { background: #16a34a !important; }
.label-danger  { background: #dc2626 !important; }

/* ============ LINKS ============ */
a {
  color: var(--primary) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

a:hover {
  color: #fcd34d !important;
  text-decoration: none !important;
}

/* ============ HEADINGS ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text) !important;
}

h3 {
  font-size: 18px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e2d45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ FOOTER ============ */
.panel-footer-custom {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border) !important;
  text-align: center;
  padding: 16px;
  color: var(--text-muted) !important;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============ PROFILE TABLE ============ */
.profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.profile-table tr {
  background-color: var(--bg-card);
  color: var(--text);
}

.profile-table tr:nth-child(even) {
  background-color: var(--bg-card2);
}

.profile-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.profile-table span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--primary);
}

.vocation-image {
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  padding: 4px;
  display: inline-block;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg-card2);
  box-shadow: 0 0 20px rgba(245,166,35,0.2);
}

.vocation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============ MISC ============ */
.dark-background {
  background-color: var(--bg-card2);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: #0a0f1a;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: var(--primary);
  outline: none;
}

.submit-button {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.submit-button:hover {
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
  transform: translateY(-1px);
}

.fixed-panel {
  min-height: 390px;
  max-height: 390px;
  overflow: auto;
}

.error-404 {
  margin: 0 auto;
  text-align: center;
}

.error-404 .error-code {
  color: var(--primary);
  font-size: 96px;
  line-height: 100px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

.error-404 .error-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ PAGINATION ============ */
.pagination > li > a,
.pagination > li > span {
  background: var(--bg-card2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #000 !important;
}

.pagination > li > a:hover {
  background: rgba(245,166,35,0.1) !important;
  color: var(--primary) !important;
}

/* ============ TABS ============ */
.nav-tabs {
  border-bottom: 1px solid var(--border) !important;
}

.nav-tabs > li > a {
  color: var(--text-muted) !important;
  border: 1px solid transparent !important;
  border-radius: 6px 6px 0 0 !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.nav-tabs > li > a:hover {
  background: rgba(245,166,35,0.05) !important;
  border-color: var(--border) !important;
  color: var(--primary) !important;
}

.nav-tabs > li.active > a {
  background: var(--bg-card) !important;
  border-color: var(--border) var(--border) transparent !important;
  border-top: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px;
  border-radius: 0 0 8px 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  #container { width: 100%; padding: 0 10px; }
  .content { width: calc(100% - 275px); }
}

@media (max-width: 768px) {
  .sidebar { float: none; width: 100%; }
  .content { float: none; width: 100%; }
  #container { width: 100%; }
}
.table-hover > tbody > tr:hover { background-color: rgba(245,166,35,0.08) !important; } .table-hover > tbody > tr:hover > td { color: #e2e8f0 !important; }

/* Fix table hover white background */
.table > thead > tr > th,
.table > thead > tr > td {
  background-color: rgba(245,166,35,0.08) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(245,166,35,0.2) !important;
}
.table > thead > tr:hover > th,
.table > thead > tr:hover > td {
  background-color: rgba(245,166,35,0.12) !important;
  color: #f5a623 !important;
}
.table > tbody > tr > td {
  background-color: transparent !important;
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(245,166,35,0.06) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(255,255,255,0.02) !important;
}
.table-hover > tbody > tr:hover,
.table-hover > tbody > tr:hover > td {
  background-color: rgba(245,166,35,0.08) !important;
  color: #f5a623 !important;
}

/* myaccount table fix */
#myaccountTable thead tr,
#myaccountTable thead tr th {
  background-color: rgba(245,166,35,0.1) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(245,166,35,0.25) !important;
  font-size: 0.78rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}
#myaccountTable tbody tr td {
  background-color: transparent !important;
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(245,166,35,0.06) !important;
}
#myaccountTable tbody tr:hover td {
  background-color: rgba(245,166,35,0.07) !important;
  color: #f5a623 !important;
}
#myaccountTable tbody tr:nth-of-type(odd) td {
  background-color: rgba(255,255,255,0.02) !important;
}

/* Nuclear fix - table thead white background */
table thead tr,
table thead tr th,
table thead tr td,
.table thead tr,
.table thead tr th,
.table thead tr td,
.table-striped thead tr,
.table-hover thead tr {
  background-color: #0d1525 !important;
  color: #94a3b8 !important;
}
table tbody tr td,
.table tbody tr td {
  background-color: transparent !important;
}
tr.yellow, tr.yellow th, tr.yellow td { background-color: rgba(245,166,35,0.1) !important; color: #94a3b8 !important; border-bottom: 1px solid rgba(245,166,35,0.25) !important; }

/* Fix tr.yellow white header */
tr.yellow,
tr.yellow th,
tr.yellow td {
  background-color: rgba(245,166,35,0.1) !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(245,166,35,0.25) !important;
}

/* ===== GLOBAL INPUT/BUTTON/TEXTAREA FIX ===== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea {
  background-color: #0a0f1a !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(245,166,35,0.25) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
  outline: none !important;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #f5a623 !important;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15) !important;
}
input[type="text"]::placeholder,
textarea::placeholder {
  color: #475569 !important;
}
input[type="submit"],
input[type="button"],
button[type="submit"] {
  background: linear-gradient(90deg, #f5a623, #ff6b00) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(245,166,35,0.3) !important;
}
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(245,166,35,0.5) !important;
}
input[type="file"] {
  color: #e2e8f0 !important;
}
select:not(.cc-select):not(.form-control):not(.input-field) {
  background-color: #0a0f1a !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(245,166,35,0.25) !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
}
