/* leapfrog_fit GUI — Custom styles */

/* ============================================================
   Login page
   ============================================================ */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 40%, #3498db 100%);
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 30px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.login-header {
  text-align: center;
}

.login-header h2 {
  color: #2c3e50;
  margin-top: 8px;
  margin-bottom: 2px;
  font-weight: 700;
}

.login-form .input-group-addon {
  background: #ecf0f1;
  border-color: #ddd;
  color: #7f8c8d;
  width: 42px;
  text-align: center;
}

.login-form .form-control {
  height: 42px;
  font-size: 15px;
}

.login-form .btn-lg {
  font-size: 16px;
  padding: 10px;
  margin-top: 6px;
}

.login-footer {
  text-align: center;
}

/* ============================================================
   User bar (top-right in navbar)
   ============================================================ */
#user-bar a:hover {
  opacity: 0.8;
}

/* ============================================================
   Admin panel
   ============================================================ */
.admin-table td, .admin-table th {
  vertical-align: middle !important;
}

/* ---- Navbar ---- */
.navbar-default {
  background-color: #2c3e50;
  border: none;
}
.navbar-default .navbar-brand {
  color: #ecf0f1 !important;
  font-weight: bold;
  font-size: 18px;
}
.navbar-default .navbar-nav > li > a {
  color: #bdc3c7 !important;
  transition: color 0.2s;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a {
  color: #fff !important;
  background-color: #34495e !important;
}

/* ---- Cards/panels ---- */
.well {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

/* ---- Config panel ---- */
.form-group {
  margin-bottom: 8px;
}
.form-control {
  border-radius: 4px;
}

/* ---- Tab panels ---- */
.nav-tabs > li > a {
  border-radius: 4px 4px 0 0;
}
.nav-tabs > li.active > a {
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: #3498db;
  border-color: #2980b9;
}
.btn-primary:hover {
  background-color: #2980b9;
}
.btn-danger {
  background-color: #e74c3c;
  border-color: #c0392b;
}

/* ---- Progress bar ---- */
.progress {
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar {
  transition: width 0.8s ease;
}

/* ---- Log terminal ---- */
#runner-log_container {
  scrollbar-width: thin;
  scrollbar-color: #555 #1e1e1e;
}
#runner-log_container::-webkit-scrollbar {
  width: 8px;
}
#runner-log_container::-webkit-scrollbar-track {
  background: #1e1e1e;
}
#runner-log_container::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}

/* ---- Diagnostic cards ---- */
.diag-card {
  border-radius: 8px;
  padding: 15px;
  margin: 5px;
  text-align: center;
  color: white;
}

/* ---- Comparison table ---- */
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}
.table-hover > tbody > tr:hover {
  background-color: #e9ecef;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
  .well {
    margin-bottom: 10px;
  }
}

/* ---- Badges ---- */
.badge {
  font-size: 11px;
  border-radius: 10px;
}

/* ---- Custom icons ---- */
.fa-spin {
  animation: fa-spin 1.5s infinite linear;
}

/* ---- Section headers ---- */
h4 .fa, h5 .fa {
  margin-right: 5px;
  color: #3498db;
}

/* ---- Status colors ---- */
.status-success { color: #28a745; }
.status-warning { color: #ffc107; }
.status-danger  { color: #dc3545; }
.status-info    { color: #17a2b8; }
