/*!
 * xGunZ — override.css
 * Bootstrap 3 overrides for dark cyberpunk theme
 */

/* Remove Bootstrap default table borders */
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
  border-top: none !important;
  color: var(--clr-text);
}

/* Dark theme table backgrounds — override Bootstrap defaults */
.table { background-color: transparent; color: var(--clr-text); }
.table > thead > tr > th { color: var(--clr-text-dim); border-bottom: 1px solid var(--clr-border) !important; background-color: var(--clr-surface); }
.table-striped > tbody > tr:nth-of-type(odd)  { background-color: rgba(255,255,255,0.03); }
.table-striped > tbody > tr:nth-of-type(even) { background-color: transparent; }
.table-hover  > tbody > tr:hover              { background-color: rgba(57,255,20,0.06); }
.table-bordered, .table-bordered > tbody > tr > td, .table-bordered > thead > tr > th { border-color: var(--clr-border) !important; }

/* Link focus/hover — inherit from style.css, no blue outline */
a:focus {
  outline: none;
}
a:focus, a:hover {
  text-decoration: none !important;
}

/* Form controls — dark glass style */
.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border-red);
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 2px;
  box-shadow: none;
  height: 36px;
}
.form-control:focus {
  background: rgba(255,255,255,0.06);
  border-color: var(--clr-red-bright);
  box-shadow: 0 0 8px var(--clr-red-glow);
  color: var(--clr-text-bright);
  outline: none;
}
.form-control::placeholder { color: var(--clr-text-dim); }

/* Select dropdowns */
select.form-control {
  background: var(--clr-panel);
  color: var(--clr-text);
}
select.form-control option { background: var(--clr-panel); color: var(--clr-text); }

/* Layout helpers */
.nopadding { padding: 0 !important; margin: 0 !important; }
.vcenter { display: inline-block; vertical-align: middle; float: none; }

/* Thumbnails */
.thumbnail {
  background-color: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active { border-color: var(--clr-red); box-shadow: var(--glow-red); }

/* =========================================================
   PRIMARY BUTTON — red clip-path style
   ========================================================= */
.btn-primary {
  color: var(--clr-red-bright);
  background-color: transparent;
  border-color: var(--clr-red);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: all .15s ease-in;
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
  color: #fff !important;
  background-color: var(--clr-red) !important;
  border-color: var(--clr-red) !important;
  box-shadow: var(--glow-red);
}

/* Default button */
.btn-default {
  color: var(--clr-text);
  background-color: var(--clr-surface);
  border-color: var(--clr-border);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
}
.btn-default:hover {
  color: var(--clr-text-bright);
  background-color: var(--clr-panel-edge);
  border-color: var(--clr-red);
}

/* =========================================================
   BOOTSTRAP PANEL — match new design
   ========================================================= */
.panel {
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-radius: 0;
  box-shadow: none;
  color: var(--clr-text);
}
.panel-heading {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  border-radius: 0;
  color: var(--clr-text-bright);
}
.panel-title { color: var(--clr-text-bright); font-family: var(--font-ui); font-size: 13px; letter-spacing: 1px; }
.panel-body { color: var(--clr-text); }
.panel-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text-dim);
}

/* Bootstrap table inside panel */
.panel .table { background: transparent; }
.panel .table > tbody > tr > td { border-bottom: 1px solid var(--clr-border) !important; color: var(--clr-text); }
.panel .table > thead > tr > th { border-bottom: 1px solid var(--clr-red) !important; color: var(--clr-text-dim); font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* Alerts */
.alert { border-radius: 0; border-left-width: 3px; font-family: var(--font-ui); }
.alert-danger { background: rgba(196,30,30,0.1); border-color: var(--clr-red); color: var(--clr-red-bright); }
.alert-success { background: rgba(0,180,100,0.1); border-color: #00b464; color: #00c87a; }
.alert-info { background: rgba(0,180,216,0.1); border-color: var(--clr-blue); color: var(--clr-blue); }
.alert-warning { background: rgba(255,215,0,0.1); border-color: var(--clr-gold); color: var(--clr-gold); }

/* Badges */
.badge { background: var(--clr-red); font-family: var(--font-mono); }

/* Well */
.well {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  box-shadow: none;
  color: var(--clr-text);
}

/* Main container — breathing room below the page banner */
#container {
  margin-top: 40px;
}

/* Page section titles — readable white with green accent border */
.page-title {
  color: var(--clr-text-bright);
  border-left: 3px solid var(--clr-red);
  padding-left: 10px;
  text-shadow: none;
}

/* Input groups */
.input-group-addon {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-red);
  color: var(--clr-text-dim);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
