/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */
/* ==========================================================================
   HostingMiles Brand Theme Overrides
   Fonts: Plus Jakarta Sans & JetBrains Mono
   Brand Primary: #0052cc | Brand Hover: #0043a8 | Surface Border: #e2e8f0
   ========================================================================== */

/* 1. Global Typography & Base Body */
body,
input,
button,
select,
textarea,
.popover,
.tooltip {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #0f172a; /* Slate 900 */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.panel-title {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 700 !important;
  color: #091f48;
}

code, kbd, pre, samp {
  font-family: "JetBrains Mono", monospace !important;
}

body {
  background-color: #f8fafc !important; /* surface-subtle */
}

a {
  color: #0052cc;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover, a:focus {
  color: #0043a8;
  text-decoration: none;
}

/* 2. Primary Buttons */
.btn-primary,
.btn-primary.active,
.btn-primary:active,
.open > .dropdown-toggle.btn-primary,
ul.top-nav > li.primary-action > a.btn {
  background-color: #0052cc !important;
  border-color: #0052cc !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active:hover,
.btn-primary:active:hover,
.open > .dropdown-toggle.btn-primary:hover {
  background-color: #0043a8 !important;
  border-color: #0043a8 !important;
  color: #ffffff !important;
}

.btn-default {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600;
  border-radius: 8px !important;
}

.btn-default:hover,
.btn-default:focus {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* 3. Form Controls & Input Groups */
.form-control {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: #0052cc !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15) !important;
  outline: 0 !important;
}

.input-group-addon {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  border-radius: 8px !important;
}

/* 4. Panels & Cards */
.panel {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  background-color: #ffffff !important;
  overflow: hidden;
}

.panel-default > .panel-heading {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 700;
}

.panel-footer {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* 5. Left Sidebar & Group Lists */
div.sidebar .list-group-item {
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 500;
  padding: 10px 14px;
}

div.sidebar .list-group-item:hover {
  background-color: #f0f5ff !important;
  color: #0052cc !important;
}

div.sidebar .list-group-item-selected,
div.sidebar .list-group-item.active,
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
  background-color: #0052cc !important;
  border-color: #0052cc !important;
  color: #ffffff !important;
  font-weight: 600;
}

div.sidebar .list-group-item-selected .badge,
div.sidebar .list-group-item.active .badge,
a.list-group-item.active .badge {
  background-color: #ffffff !important;
  color: #0052cc !important;
}

.badge {
  background-color: #e2e8f0;
  color: #334155;
  font-weight: 700;
  border-radius: 9999px;
  padding: 3px 8px;
}

/* 6. Breadcrumbs & Header Strip */
div.header-lined h1 {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #091f48 !important;
  font-weight: 800;
}

div.header-lined .breadcrumb {
  background: transparent !important;
  padding: 0;
  margin-top: -10px;
  margin-bottom: 15px;
}

div.header-lined .breadcrumb li a {
  color: #64748b !important;
}

div.header-lined .breadcrumb > .active {
  color: #0052cc !important;
  font-weight: 600;
}

/* 7. Tables & DataTables */
.table {
  border-collapse: separate !important;
  border-spacing: 0;
}

.table > thead > tr > th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
}

.table > tbody > tr > td {
  border-top: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  padding: 12px 14px;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f8fafc !important;
}

.dataTables_wrapper table.table-list thead th {
  border-bottom: 3px solid #0052cc !important;
}

.dataTables_wrapper table.table-list thead th:nth-child(even) {
  border-bottom: 3px solid #0052cc !important;
}

.dataTables_wrapper .dataTables_info {
  background-color: #091f48 !important;
  color: #ffffff !important;
}

/* 8. Pagination */
.pagination > li > a,
.pagination > li > span {
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  border-radius: 6px !important;
  margin: 0 2px;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  background-color: #0052cc !important;
  border-color: #0052cc !important;
  color: #ffffff !important;
}

/* 9. Status Badges & Lights */
.status-active,
.status-completed,
.status-paid {
  color: #10b981 !important; /* emerald-500 */
}

.status-pending,
.status-unpaid {
  color: #ef4444 !important; /* red-500 */
}

.status-suspended,
.status-cancelled {
  color: #f59e0b !important; /* amber-500 */
}

/* 10. Nav Tabs */
.nav-tabs {
  border-bottom: 1px solid #e2e8f0 !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border-color: #e2e8f0 #e2e8f0 transparent !important;
  border-top: 2px solid #0052cc !important;
  color: #0052cc !important;
  font-weight: 700;
}