/* Dark mode override — same layout, dark colors */

body {
  background: #0d1117 !important;
  color: #e6edf3 !important;
}

/* Navbar */
.navbar-default {
  background: #161b22 !important;
  border-color: #21262d !important;
}
.navbar-default .navbar-brand { color: #f0f2f5 !important; }
.navbar-default .navbar-nav > li > a { color: #8b949e !important; }
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a { color: #f0f2f5 !important; background: transparent !important; }
.navbar-default .navbar-toggle { border-color: #30363d !important; }
.navbar-default .navbar-toggle .icon-bar { background: #8b949e !important; }
.navbar-default .navbar-collapse { border-color: #21262d !important; }
.navbar .badge { background: #229ED9 !important; color: #fff !important; }

/* Wells / Cards */
.well {
  background: #161b22 !important;
  border: 1px solid #21262d !important;
  color: #e6edf3 !important;
}

/* Forms */
.form-control {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #e6edf3 !important;
}
.form-control:focus {
  border-color: #229ED9 !important;
  box-shadow: none !important;
}
.form-control { caret-color: #e6edf3 !important; }
label, .control-label { color: #e6edf3 !important; }

/* Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0d1117 inset !important;
  -webkit-text-fill-color: #e6edf3 !important;
  border: 1px solid #30363d !important;
  caret-color: #e6edf3 !important;
  color: #e6edf3 !important;
  background-color: #0d1117 !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* Buttons */
.btn-primary { background: #229ED9 !important; border-color: #229ED9 !important; }
.btn-primary:hover, .btn-primary:focus { background: #1b7eb3 !important; border-color: #1b7eb3 !important; }
.btn-primary:active, .btn-primary:active:focus { background: #17689a !important; }
.btn-default { background: #21262d !important; border-color: #30363d !important; color: #e6edf3 !important; }
.btn-default:hover { background: #30363d !important; }
*:focus { outline: none !important; }
.btn:focus, .btn:active:focus { box-shadow: none !important; -webkit-box-shadow: none !important; }

/* Tables */
.table { color: #e6edf3 !important; }
.table > thead > tr > th { border-bottom-color: #21262d !important; color: #8b949e !important; }
.table > tbody > tr > td { border-top-color: #21262d !important; }
.table > tbody > tr:hover > td { background: rgba(34,158,217,0.06) !important; }
.table > tbody > tr > td[colspan] { background: #161b22 !important; border-left: 3px solid #229ED9; }

/* Dropdowns — force dark everywhere */
.dropdown-menu,
.dropdown-menu li,
.dropdown-menu ul,
.dropdown-max-height,
.dropdown-menu .dropdown-menu {
  background: #161b22 !important;
  background-color: #161b22 !important;
  border-color: #30363d !important;
}
.dropdown-menu > li > a { color: #e6edf3 !important; background: transparent !important; }
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > li.active > a,
.dropdown-menu > li.active > a:hover,
.dropdown-menu > li.active > a:focus { background: #21262d !important; color: #229ED9 !important; }
.open > .dropdown-toggle,
.open > .dropdown-toggle.btn-default,
.open > a.dropdown-toggle { background: #21262d !important; }
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus { background: #21262d !important; color: #f0f2f5 !important; }
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus { background: #21262d !important; color: #229ED9 !important; }

/* Alerts */
.alert-danger { background: rgba(248,81,73,0.1) !important; border-color: rgba(248,81,73,0.3) !important; color: #f85149 !important; }
.alert-success { background: rgba(46,160,67,0.1) !important; border-color: rgba(46,160,67,0.3) !important; color: #2ea043 !important; }

/* Pagination */
.pagination > li > a { background: #161b22 !important; border-color: #21262d !important; color: #e6edf3 !important; }
.pagination > li.active > a { background: #229ED9 !important; border-color: #229ED9 !important; }

/* Panels */
.panel { background: #161b22 !important; border-color: #21262d !important; }
.panel-heading { background: #1c2128 !important; border-color: #21262d !important; color: #e6edf3 !important; }

/* Links */
a { color: #229ED9; }
a:hover { color: #4db8e8; }

/* Forgot password */
.forgot-password { color: #8b949e !important; }
.forgot-password:hover { color: #229ED9 !important; }

/* Pull right middle */
.pull-right-middle { color: #8b949e; }

/* Nav pills */
.nav-pills > li > .dropdown > .btn { background: #21262d !important; border-color: #30363d !important; color: #e6edf3 !important; }

/* Search */
.search .form-control { background: #161b22 !important; }
.search .btn { background: #161b22 !important; border-color: #30363d !important; color: #8b949e !important; }

/* Service description */
.service-description { color: #8b949e !important; }

/* Checkbox */
.checkbox label { color: #8b949e !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }

/* Favorite */
.favorite-active .fas { color: #f0c000 !important; }
.far.fa-star { color: #8b949e; }

/* Container text */
h1, h2, h3, h4, h5, h6 { color: #e6edf3; }