/* ============================================================
   smm.fo – Custom Theme  |  style.css
   Dark navy + electric blue  |  Barlow Condensed headings
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@400;500;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --navy:        #0a1628;
  --navy-2:      #0f1e35;
  --navy-3:      #152340;
  --navy-4:      #1a2a4a;
  --navy-5:      #1e3254;
  --blue:        #1d6ff2;
  --blue-2:      #3b8eff;
  --blue-3:      #5ca8ff;
  --blue-dim:    rgba(29,111,242,0.12);
  --blue-border: rgba(29,111,242,0.30);
  --white-90:    rgba(255,255,255,0.90);
  --white-70:    rgba(255,255,255,0.70);
  --white-50:    rgba(255,255,255,0.50);
  --white-30:    rgba(255,255,255,0.30);
  --white-12:    rgba(255,255,255,0.12);
  --white-06:    rgba(255,255,255,0.06);
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --transition:  0.18s ease;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 14px; }

body {
  background: var(--navy) !important;
  color: var(--white-90) !important;
  font-family: 'Barlow', sans-serif !important;
  padding-bottom: 60px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Barlow Condensed', sans-serif !important;
  color: #fff !important;
  letter-spacing: 0.02em;
}

a { color: var(--blue-2); }
a:hover, a:focus { color: var(--blue-3); text-decoration: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-2); }
::-webkit-scrollbar-thumb { background: var(--navy-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--navy-2) !important;
  border: none !important;
  border-bottom: 1px solid var(--white-06) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4) !important;
  min-height: 56px !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

.navbar-brand {
  padding: 8px 20px !important;
  height: 56px !important;
  line-height: 40px !important;
}

.navbar-brand img {
  max-height: 38px !important;
  vertical-align: middle;
}

.navbar-default .navbar-nav > li > a {
  color: var(--white-70) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 17px 16px !important;
  transition: color var(--transition);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #fff !important;
  background: transparent !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--blue-2) !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* right block balance badge */
.navbar-right-block .badge {
  background: var(--blue) !important;
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover {
  background: var(--navy-3) !important;
  color: #fff !important;
}

.navbar-toggle {
  border-color: var(--white-12) !important;
  margin-top: 10px !important;
}
.navbar-default .navbar-toggle .icon-bar { background: var(--white-70) !important; }
.navbar-default .navbar-toggle:hover { background: var(--navy-3) !important; }

/* ── Dropdown menus ─────────────────────────────────────────── */
.dropdown-menu {
  background: var(--navy-3) !important;
  border: 1px solid var(--white-12) !important;
  box-shadow: var(--shadow) !important;
  border-radius: var(--radius-sm) !important;
}

.dropdown-menu > li > a {
  color: var(--white-70) !important;
  font-size: 13px;
  padding: 8px 16px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--blue-dim) !important;
  color: #fff !important;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover {
  background: var(--blue) !important;
  color: #fff !important;
}

/* ── Sidebar layout (authenticated) ────────────────────────── */
.smm-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.smm-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy-2);
  border-right: 1px solid var(--white-06);
  padding: 20px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.smm-main {
  flex: 1;
  min-width: 0;
  padding: 28px 28px 0;
}

/* sidebar nav */
.smm-sidebar .nav-sidebar { list-style: none; padding: 0; margin: 0; }
.smm-sidebar .nav-sidebar li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--white-50);
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.smm-sidebar .nav-sidebar li a i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--white-30);
  transition: color var(--transition);
}
.smm-sidebar .nav-sidebar li.active > a,
.smm-sidebar .nav-sidebar li a:hover {
  background: var(--blue-dim);
  color: #fff;
}
.smm-sidebar .nav-sidebar li.active > a i,
.smm-sidebar .nav-sidebar li a:hover i { color: var(--blue-2); }
.smm-sidebar .nav-sidebar li.active > a { border-right: 3px solid var(--blue); }
.smm-sidebar .nav-sidebar .divider {
  height: 1px;
  background: var(--white-06);
  margin: 10px 0;
}
.smm-sidebar .nav-sidebar .nav-label {
  padding: 12px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
}

/* ── Panel / Card ───────────────────────────────────────────── */
.panel {
  background: var(--navy-2) !important;
  border: 1px solid var(--white-06) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
  margin-bottom: 24px;
}

.panel-heading {
  background: var(--navy-3) !important;
  border-bottom: 1px solid var(--white-06) !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  padding: 14px 20px !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
}

.panel-body { padding: 20px !important; }

/* replace Bootstrap's white .well */
.well {
  background: var(--navy-2) !important;
  border: 1px solid var(--white-06) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  padding: 20px !important;
  margin-bottom: 20px;
}

/* ── Forms ──────────────────────────────────────────────────── */
.control-label {
  color: var(--white-70) !important;
  font-weight: 600 !important;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-control {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--white-12) !important;
  border-radius: var(--radius-sm) !important;
  color: #fff !important;
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: none !important;
}

.form-control::placeholder { color: var(--white-30) !important; }

.form-control:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(29,111,242,0.18) !important;
  background: rgba(255,255,255,0.07) !important;
  outline: none;
}

.form-control[readonly] {
  background: rgba(255,255,255,0.03) !important;
  color: var(--white-50) !important;
  cursor: default;
}

textarea.form-control {
  height: auto !important;
  resize: vertical;
  min-height: 100px;
}

select.form-control option {
  background: var(--navy-3);
  color: #fff;
}

.help-block { color: var(--white-30) !important; font-size: 12px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition) !important;
  border: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1557cc) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(29,111,242,0.35) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--blue-2), var(--blue)) !important;
  box-shadow: 0 4px 16px rgba(29,111,242,0.5) !important;
  color: #fff !important;
}

.btn-default {
  background: rgba(255,255,255,0.08) !important;
  color: var(--white-70) !important;
  border: 1px solid var(--white-12) !important;
}
.btn-default:hover, .btn-default.active {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
}

.btn-success {
  background: linear-gradient(135deg, #1db954, #159040) !important;
  color: #fff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
}

.btn-xs { padding: 3px 10px !important; font-size: 11px !important; }
.btn-sm { padding: 6px 14px !important; font-size: 12px !important; }
.btn-lg { padding: 12px 28px !important; font-size: 16px !important; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm) !important;
  border: none !important;
  font-size: 13px;
}

.alert-success {
  background: rgba(29,185,84,0.12) !important;
  color: #6cf19a !important;
  border: 1px solid rgba(29,185,84,0.25) !important;
}

.alert-danger {
  background: rgba(231,76,60,0.12) !important;
  color: #f17b72 !important;
  border: 1px solid rgba(231,76,60,0.25) !important;
}

.alert-info {
  background: rgba(29,111,242,0.12) !important;
  color: var(--blue-3) !important;
  border: 1px solid var(--blue-border) !important;
}

.alert-warning {
  background: rgba(243,156,18,0.12) !important;
  color: #f8c862 !important;
  border: 1px solid rgba(243,156,18,0.25) !important;
}

.close { color: var(--white-50) !important; opacity: 0.7 !important; }
.close:hover { opacity: 1 !important; }

/* ── Tables ─────────────────────────────────────────────────── */
.table {
  color: var(--white-90) !important;
}

.table > thead > tr > th {
  background: var(--navy-3) !important;
  border-bottom: 1px solid var(--white-12) !important;
  color: var(--white-50) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 12px;
  white-space: nowrap;
}

.table > tbody > tr > td {
  border-top: 1px solid var(--white-06) !important;
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
  color: var(--white-70);
}

.table > tbody > tr:hover > td {
  background: var(--blue-dim) !important;
  color: #fff;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(255,255,255,0.02) !important;
}

/* ── Nav pills (status tabs) ────────────────────────────────── */
.nav-pills { margin-bottom: 16px; flex-wrap: wrap; display: flex; gap: 4px; }

.nav-pills > li > a {
  background: rgba(255,255,255,0.05) !important;
  color: var(--white-50) !important;
  border-radius: var(--radius-sm) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  transition: all var(--transition);
}

.nav-pills > li > a:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: var(--blue) !important;
  color: #fff !important;
}

/* ── Search in nav ──────────────────────────────────────────── */
.nav-pills .search { width: 240px; }
.nav-pills .pull-right { margin-left: auto; }

.input-group .form-control { height: 36px; }

.input-group-btn .btn-default {
  height: 36px;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid var(--white-12) !important;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination > li > a,
.pagination > li > span {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--white-12) !important;
  color: var(--white-70) !important;
  margin: 0 1px;
}

.pagination > li > a:hover {
  background: var(--blue-dim) !important;
  color: #fff !important;
}

.pagination > .active > a,
.pagination > .active > a:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-content {
  background: var(--navy-3) !important;
  border: 1px solid var(--white-12) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 16px 64px rgba(0,0,0,0.6) !important;
  color: var(--white-90) !important;
}

.modal-header {
  border-bottom: 1px solid var(--white-06) !important;
  padding: 16px 20px;
}

.modal-footer {
  border-top: 1px solid var(--white-06) !important;
  padding: 16px 20px;
}

.modal-title { color: #fff !important; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; }
.modal-backdrop.in { opacity: 0.6 !important; }

/* ── Select2 / fancy selects ────────────────────────────────── */
.select2-container--bootstrap .select2-selection {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--white-12) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  min-height: 40px;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
  line-height: 38px;
}

.select2-container--bootstrap .select2-dropdown {
  background: var(--navy-3) !important;
  border: 1px solid var(--white-12) !important;
  border-radius: var(--radius-sm) !important;
}

.select2-container--bootstrap .select2-results__option {
  color: var(--white-70);
  padding: 8px 12px;
}

.select2-container--bootstrap .select2-results__option--highlighted {
  background: var(--blue-dim) !important;
  color: #fff !important;
}

.select2-container--bootstrap .select2-search__field {
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
  border: 1px solid var(--white-12) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 10px;
}

/* ── Charge field highlight ─────────────────────────────────── */
#charge {
  background: rgba(29,111,242,0.08) !important;
  border-color: var(--blue-border) !important;
  color: var(--blue-2) !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* ── Description box ────────────────────────────────────────── */
.border-solid { border: 1px solid var(--white-12) !important; }
.border-rounded {
  border-radius: var(--radius-sm) !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--white-70) !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding: 12px;
}

/* ── Dynamically injected PerfectPanel fields ───────────────── */
#fields .form-group label.control-label { color: var(--white-70) !important; }
#fields .form-control { background: rgba(255,255,255,0.05) !important; color: #fff !important; border-color: var(--white-12) !important; }
#fields .form-control:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(29,111,242,0.15) !important; }
#fields .help-block { color: var(--white-30) !important; font-size: 12px; }

/* ── Ticket messages ────────────────────────────────────────── */
.ticket-message-block { margin-bottom: 16px; }

.ticket-message {
  background: var(--navy-3) !important;
  border: 1px solid var(--white-06);
  border-radius: var(--radius) !important;
  padding: 14px 16px !important;
  color: var(--white-90);
  word-break: break-word;
}

.ticket-message p, .ticket-message blockquote, .ticket-message li { white-space: pre-wrap; }

.ticket-message blockquote {
  font-size: 13px;
  border-left: 3px solid var(--blue);
  padding: 2px 10px;
  margin-bottom: 10px;
  color: var(--white-50);
}

.ticket-meta {
  font-size: 11px;
  color: var(--white-30);
  margin-top: 6px;
}

.ticket-message-right .ticket-message { background: var(--blue-dim) !important; border-color: var(--blue-border); }

/* ── Ticket files ───────────────────────────────────────────── */
.ticket-file-link {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--white-12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--white-70);
  margin-top: 8px;
}
.ticket-file-link:hover { background: var(--blue-dim); color: #fff; }

/* ── Public landing wrapper ─────────────────────────────────── */
.public-wrapper {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
}

/* ── Misc utilities ─────────────────────────────────────────── */
.nowrap { white-space: nowrap; }
.width-40 { width: 40% !important; word-break: break-all; min-width: 250px; }
.width-service-name { min-width: 200px; }
.service-description { word-break: break-word; }
.service-description__th { width: 40% !important; word-break: break-all; }
.service-description table { width: auto !important; }
.link { word-break: break-all; min-width: 200px; }
.well-float { float: left; width: 100%; }
.titcket-title {
  font-size: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-12);
  margin-bottom: 16px;
  font-weight: 700;
}
.order-actions { width: 92px; }
.confirm-email { margin-top: 30px; }
.confirm-email__description { margin-bottom: 24px; }
.navbar-icon { margin: 0 3px; }
.form-group__password { position: relative; }
.forgot-password {
  position: absolute;
  right: 11px;
  bottom: 8px;
  font-size: 12px;
  color: var(--blue-2);
}
.forgot-password:hover { color: var(--blue-3); }
.modal-body-scroller { max-height: 500px; overflow: auto; border-radius: 6px; }
.dropdown-max-height { max-height: 300px; overflow-y: auto; }

/* ── RTL ────────────────────────────────────────────────────── */
.rtl-navbar { direction: rtl; }
.rtl-navbar .navbar-header { float: right; }
.rtl-navbar .navbar-right { float: left !important; }
.rtl-navbar .navbar-nav { float: right; }
.rtl-navbar .navbar-nav li { float: right; }
.rtl-navbar .navbar-toggle { float: left; }
.rtl-navbar .navbar-brand { float: right; padding-right: 15px; }
.rtl-form { direction: rtl; }
.rtl-form input { direction: rtl; text-align: right; }
.rtl-form .checkbox label { padding-right: 20px; padding-left: 0; }
.rtl-form .forgot-password { right: auto; left: 11px; }
.rtl-form .close { float: left; }
.rtl-form .pull-right { float: left !important; }
.rtl-content { direction: rtl; }
.rtl-table { direction: rtl; }
.rtl-table th, .rtl-table td { text-align: right; }
.rtl-h { direction: rtl; text-align: right; }
.rtl-btn { float: right; }
.rtl-content h1, .rtl-content h2, .rtl-content h3,
.rtl-content h4, .rtl-content h5, .rtl-content h6 { text-align: right; }
.rtl-content ul, .rtl-content ol { padding-right: 15px; }
.rtl-ul { text-align: right; direction: rtl; padding-right: 15px; }
.rtl-alert { text-align: right; direction: rtl; }
.rtl-alert .close { float: left; }
.rtl-pagination { float: right; }
.rtl-pagination li { float: right; }
.rtl-modal { direction: rtl; }
.rtl-modal .close { float: left; }
.rtl-modal .modal-footer { text-align: left; }
.rtl-nav { float: right; direction: rtl; width: 100%; padding-right: 0; }
.rtl-nav li { float: right; }
.rtl-nav .pull-right { float: left !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .smm-sidebar { display: none; }
  .smm-main { padding: 16px; }
  .well-float { width: auto; min-width: 100%; }
  .order-actions { width: auto; }
}

@media (max-width: 768px) {
  .smm-main { padding: 12px; }
  .nav-pills .search { width: 100%; margin-top: 8px; }
  .public-wrapper { margin-top: 30px; }
  .rtl-navbar .navbar-nav { float: right !important; width: 100%; margin-right: 0; }
  .rtl-navbar .navbar-nav li { width: 100%; }
  .rtl-navbar .navbar-header { float: none; }
}

@media (max-width: 1200px) {
  .order-actions { width: auto; }
  .order-actions .btn { margin-bottom: 2px; }
}

@media (min-width: 991px) {
  .service-name { max-width: 320px; word-break: break-word; }
  .text-md-right { text-align: right; }
}
