/* ===============================
   CLEANTRACK PRO - Custom Styles
   =============================== */

/* GLOBAL RESET & BASE */
body {
  background-color: #f8f9fc;
  font-family: "Poppins", Arial, sans-serif;
  color: #333;
}

h4, h5, h6 {
  font-weight: 600;
  color: #0d6efd;
}

.container-fluid {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* NAVBAR */
.navbar {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-link {
  color: #f8f9fa !important;
  margin-right: 8px;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255,255,255,0.2);
  border-radius: 6px;
}

/* CARD STYLES */
.card {
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3, 
.card h4 {
  color: #0d6efd;
}

/* TABLE STYLING */
.table {
  font-size: 0.95rem;
}

.table thead th {
  background: #0d6efd !important;
  color: #fff !important;
}

.table-hover tbody tr:hover {
  background-color: #eef4ff;
}

/* BUTTONS */
.btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-primary, .bg-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.btn-success {
  background-color: #198754 !important;
}

.btn-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.btn-danger {
  background-color: #dc3545 !important;
}

.btn-info {
  background-color: #0dcaf0 !important;
  color: #000 !important;
}

/* MODALS */
.modal-content {
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.modal-header {
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
}

/* FORMS */
.form-label {
  font-weight: 500;
}

.form-control, .form-select {
  border-radius: 6px;
  box-shadow: none !important;
}

.form-control:focus, .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.25) !important;
}

/* FOOTER */
footer {
  background-color: #fff;
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
  color: #666;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* BADGES */
.badge {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
}

/* DASHBOARD CARDS */
.card.text-center {
  background: #fff;
  border-left: 5px solid #0d6efd;
}

.card.text-center:hover {
  border-left: 5px solid #198754;
}

/* SETTINGS PAGE */
form .form-label {
  color: #555;
}

form input[type="file"] {
  border: 1px dashed #ccc;
  padding: 8px;
}

form img {
  border-radius: 8px;
  border: 2px solid #eee;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background-color: #0d6efd;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #0b5ed7;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
  }
  .card h3 {
    font-size: 1.25rem;
  }
  .table {
    font-size: 0.9rem;
  }
}
/* SIDEBAR COMPATIBILITY */
@media (min-width: 992px) {
  body {
    overflow-x: hidden;
  }
  .content-area {
    background-color: #f8f9fc;
    min-height: 100vh;
  }
}

#testResult {
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
/* Sidebar base styling */
.sidebar {
  width: 250px;
  height: 100vh;
  overflow: hidden; /* prevent double scroll */
  position: fixed;
  top: 0;
  left: 0;
  background: #0d1117;
  display: flex;
  flex-direction: column;
}

/* Scrollable menu area */
.sidebar-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex-grow: 1;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #0dcaf0 #1a1f25;
}

/* WebKit scroll styling */
.sidebar-scroll::-webkit-scrollbar {
  width: 7px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background-color: #0dcaf0;
  border-radius: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: #1a1f25;
}

/* Link hover styling */
.sidebar .nav-link {
  padding: 10px 15px;
  color: #adb5bd;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #0dcaf0;
  color: #fff;
  border-radius: 6px;
}
