/*!
 * Skote theme overlay for BrightFrontend
 * Migrated from NewAngularDesign (Skote) reference styles — source left unchanged.
 * Complements Velzon base CSS + admin-skote-menu.css without replacing Bright app logic.
 */

:root {
  --skote-primary: #556ee6;
  --skote-primary-rgb: 85, 110, 230;
  --skote-header-item: #555b6d;
  --skote-gray-200: #eff2f7;
  --skote-gray-500: #adb5bd;
  --skote-gray-600: #74788d;
  --skote-gray-700: #495057;
  --skote-body-bg: #f8f8fb;
  --skote-card-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
  --skote-font: "Poppins", sans-serif;
}

/* Typography — match Skote Poppins (overrides layout sans-serif force) */
body,
.main-content,
.page-content,
.vertical-menu,
#page-topbar,
.card,
.btn,
.form-control,
.form-select,
.table,
.modal,
.dropdown-menu {
  font-family: var(--skote-font) !important;
}

body {
  background-color: var(--skote-body-bg);
}

/* Page title — Skote _page-head.scss, all admin pages */
.page-title-box {
  padding-bottom: 24px;
}

.page-title-box .breadcrumb {
  background-color: transparent;
  padding: 0;
}

.page-title-box h4 {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px !important;
  color: #495057;
}

.page-content .page-title-box {
  background-color: #ffffff !important;
  box-shadow: none !important;
  border-bottom: 1px solid #eff2f7 !important;
  margin: 0 0 24px 0 !important;
  padding: 0 0 24px 0 !important;
}

.page-content .page-title-box .breadcrumb-item a {
  color: #556ee6;
}

.page-content .page-title-box .breadcrumb-item.active {
  color: #74788d;
}

/* Cards — Skote _card.scss */
.card {
  margin-bottom: 24px;
  box-shadow: var(--skote-card-shadow);
}

.card-title {
  font-size: 15px;
  margin: 0 0 7px 0;
  font-weight: 600;
  color: #212529;
}

.card-title-desc {
  color: #74788d;
  margin-bottom: 24px;
}

/* Buttons — Skote _buttons.scss */
.btn-rounded {
  border-radius: 30px !important;
}

.btn-label {
  position: relative;
  padding-left: 44px;
}

.btn-label .label-icon {
  position: absolute;
  width: 32px;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-label.btn-light .label-icon {
  background-color: rgba(33, 37, 41, 0.1);
  border-right: 1px solid rgba(33, 37, 41, 0.2);
}

/* Soft buttons — Skote palette (used by notificationengine, auditlog, etc.) */
.btn-soft-primary {
  color: #556ee6 !important;
  background-color: rgba(85, 110, 230, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-primary:hover,
.btn-soft-primary:focus,
.btn-soft-primary:active {
  color: #fff !important;
  background-color: #556ee6 !important;
}

.btn-soft-secondary {
  color: #74788d !important;
  background-color: rgba(116, 120, 141, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-secondary:hover,
.btn-soft-secondary:focus,
.btn-soft-secondary:active {
  color: #fff !important;
  background-color: #74788d !important;
}

.btn-soft-success {
  color: #34c38f !important;
  background-color: rgba(52, 195, 143, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-success:hover,
.btn-soft-success:focus,
.btn-soft-success:active {
  color: #fff !important;
  background-color: #34c38f !important;
}

.btn-soft-info {
  color: #50a5f1 !important;
  background-color: rgba(80, 165, 241, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-info:hover,
.btn-soft-info:focus,
.btn-soft-info:active {
  color: #fff !important;
  background-color: #50a5f1 !important;
}

.btn-soft-warning {
  color: #f1b44c !important;
  background-color: rgba(241, 180, 76, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-warning:hover,
.btn-soft-warning:focus,
.btn-soft-warning:active {
  color: #fff !important;
  background-color: #f1b44c !important;
}

.btn-soft-danger {
  color: #f46a6a !important;
  background-color: rgba(244, 106, 106, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-danger:hover,
.btn-soft-danger:focus,
.btn-soft-danger:active {
  color: #fff !important;
  background-color: #f46a6a !important;
}

/* Prefer Skote primary on admin primary actions (keep Bright custom Select2 colors intact) */
.page-content .btn-primary,
#page-topbar .btn-primary,
.main-content .btn-primary {
  background-color: #556ee6;
  border-color: #556ee6;
}

.page-content .btn-primary:hover,
.page-content .btn-primary:focus,
.page-content .btn-primary:active,
.main-content .btn-primary:hover,
.main-content .btn-primary:focus,
.main-content .btn-primary:active {
  background-color: #485ec4;
  border-color: #485ec4;
}

.page-content .text-primary,
.main-content .text-primary {
  color: #556ee6 !important;
}

.page-content .bg-primary,
.main-content .bg-primary {
  background-color: #556ee6 !important;
}

.page-content .bg-primary-subtle,
.main-content .bg-primary-subtle {
  background-color: rgba(85, 110, 230, 0.18) !important;
}

/* Tables — Skote _table.scss */
.table th {
  font-weight: 600;
}

.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}

/* Forms — Skote switch sizes + cursor */
.form-check,
.form-check-input,
.form-check-label {
  cursor: pointer;
}

.form-switch-md {
  padding-left: 2.5rem;
  min-height: 24px;
  line-height: 24px;
}

.form-switch-md .form-check-input {
  width: 40px;
  height: 20px;
  left: -0.5rem;
  position: relative;
}

.form-switch-lg {
  padding-left: 2.75rem;
  min-height: 28px;
  line-height: 28px;
}

.form-switch-lg .form-check-input {
  width: 48px;
  height: 24px;
  left: -0.75rem;
  position: relative;
}

/* Avatars — Skote _avatar.scss */
.avatar-xs {
  height: 2rem;
  width: 2rem;
}

.avatar-sm {
  height: 3rem;
  width: 3rem !important;
}

.avatar-md {
  height: 4.5rem;
  width: 4.5rem;
}

.avatar-lg {
  height: 6rem;
  width: 6rem;
}

.avatar-xl {
  height: 7.5rem;
  width: 7.5rem;
}

.avatar-title {
  align-items: center;
  background-color: #556ee6;
  color: #fff;
  display: flex;
  font-weight: 500;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.avatar-group {
  padding-left: 12px;
  display: flex;
  flex-wrap: wrap;
}

.avatar-group .avatar-group-item {
  margin-left: -12px;
  border: 2px solid #fff;
  border-radius: 50%;
  transition: all 0.2s;
}

.avatar-group .avatar-group-item:hover {
  position: relative;
  transform: translateY(-2px);
}

/* Profile / welcome card offset — Skote contacts */
.profile-user-wid {
  margin-top: -26px;
}

/* Mini stats — Skote _widgets.scss */
.mini-stats-wid .mini-stat-icon {
  overflow: hidden;
  position: relative;
}

.mini-stats-wid .mini-stat-icon::before,
.mini-stats-wid .mini-stat-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 54px;
  background-color: rgba(255, 255, 255, 0.1);
  left: 16px;
  transform: rotate(32deg);
  top: -5px;
  transition: all 0.4s;
}

.mini-stats-wid .mini-stat-icon::after {
  left: -12px;
  width: 12px;
  transition: all 0.2s;
}

.mini-stats-wid:hover .mini-stat-icon::after {
  left: 60px;
}

/* Font size helpers — Skote _helper.scss */
.font-size-10 { font-size: 10px !important; }
.font-size-11 { font-size: 11px !important; }
.font-size-12 { font-size: 12px !important; }
.font-size-13 { font-size: 13px !important; }
.font-size-14 { font-size: 14px !important; }
.font-size-15 { font-size: 15px !important; }
.font-size-16 { font-size: 16px !important; }
.font-size-17 { font-size: 17px !important; }
.font-size-18 { font-size: 18px !important; }
.font-size-20 { font-size: 20px !important; }
.font-size-22 { font-size: 22px !important; }
.font-size-24 { font-size: 24px !important; }

.w-xs { min-width: 80px; }
.w-sm { min-width: 95px; }
.w-md { min-width: 110px; }
.w-lg { min-width: 140px; }
.w-xl { min-width: 160px; }

.social-list-item {
  height: 2rem;
  width: 2rem;
  line-height: calc(2rem - 4px);
  display: block;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  color: #adb5bd;
  text-align: center;
  transition: all 0.4s;
}

.social-list-item:hover {
  color: #74788d;
  background-color: #eff2f7;
}

.alert-dismissible .btn-close {
  font-size: 10px;
}

/* Auth helpers — Skote _authentication.scss (login already custom; keep compatible) */
.auth-logo .auth-logo-dark {
  display: block;
}

.auth-logo .auth-logo-light {
  display: none;
}

.auth-body-bg {
  background-color: #fff;
}

.home-btn {
  position: absolute;
  top: 15px;
  right: 25px;
}

/* Badge / text muted consistency */
.text-muted {
  color: #74788d !important;
}

/* Footer Skote-like tone inside admin */
.footer {
  color: #74788d;
  background-color: #f2f2f5;
}
