:root {
  --text-color-7: #ffffff;
  --text-color-8: #cecece;
  --text-color-9: #ebebeb;

  --gradient-1: linear-gradient(180deg, var(--color-1) 0%, var(--color-2) 100%);
  --gradient-2: linear-gradient(135deg, var(--color-3) 0%, var(--color-4) 100%);

  --gradient-1-reverted: linear-gradient(
    -180deg,
    var(--color-2) 0%,
    var(--color-1) 100%
  );
  --gradient-2-reverted: linear-gradient(
    -135deg,
    var(--color-3) 0%,
    var(--color-4) 100%
  );

  --gradient-1-vertical: linear-gradient(
    90deg,
    var(--color-1) 0%,
    var(--color-2) 100%
  );
  --gradient-2-vertical: linear-gradient(
    180deg,
    var(--color-3) 0%,
    var(--color-4) 100%
  );

  --text-size-sm: 13px;
  --text-size-md: 15px;
  --text-size-lg: 20px;
  --text-size-xl: 25px;
  --text-size-xxl: 35px;

  --sidebar-expand-width: 250px;
  --sidebar-width: 90px;
  --sidebar-start-img-width: 40px;

  --button-text-size: var(--text-size-md);
  --mini-button-text-size: var(--text-size-sm);
  --title-text-size: var(--text-size-lg);
  --mini-title-text-size: var(--text-size-md);
  --paragraphe-text-size: var(--text-size-sm);
  --content-padding: 40px;

  --button-padding: 15px 20px;
}
::-webkit-scrollbar {
  height: 12px;
  width: 7px;
  background: rgba(255, 255, 255, 0.178);
}

::-webkit-scrollbar-thumb {
  background: var(--text-color-3);
}
*::selection {
  background: #b3b3b386;
}
.table {
  --bs-table-bg: transparent !important;
}
body {
  overflow: hidden;
}
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  color: var(--text-color-1);
  font-family: "Exo 2", "Nunito", sans-serif;
}
#content {
  background: var(--gradient-2);
  margin-left: var(--sidebar-width);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-attachment: fixed;
  background-size: cover;
}
#content .content-wrapper {
  min-height: 100vh;
  padding: calc(var(--content-padding) / 2) var(--content-padding);
  background: linear-gradient(
      0deg,
      var(--color-3) 0%,
      var(--color-3) 30%,
      var(--color-3) 40%,
      var(--color-5) 100%
    ),
    var(--settings-background);
  background-attachment: fixed;
  background-size: cover;
}
#socialLinks {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}
#socialLinks .social-item {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  background: var(--color-4);
  border-radius: 50px;
  font-size: 20px;
  transition: all ease 0.3s;
}
#socialLinks .social-item:hover {
  transform: scale(1.15);
  transition: all ease 0.3s;
}
#socialLinks .social-item i {
  line-height: 0;
}
#bigfooter {
  min-height: 200px;
  border-radius: 0 !important;
}
#bigfooter .bigfooter-image {
  width: 70%;
  align-self: center;
  transition: all ease 0.3s;
}
#bigfooter .bigfooter-image:hover {
  transform: scale(1.1);
  transition: all ease 0.3s;
}
#bigfooter .bigfooter-link {
  color: var(--text-color-1);
  transition: all ease 0.3s;
}
#bigfooter .bigfooter-link:hover {
  color: var(--text-color-2);
  font-weight: bold;
  transition: all ease 0.3s;
  text-decoration: none;
}
#bigfooter .bigfooter-link i {
  display: inline-block;
  color: var(--text-color-2);
  transform: scale(1.2);
  transition: all ease 0.3s;
}
#footer {
  border-top: 2px dashed rgba(255, 255, 255, 0.089);
  position: relative;
  font-weight: bold;
  color: var(--text-color-1);
}
.btn-outline-primary {
  color: var(--text-color-1);
  border-color: var(--color-1);
}
.btn-outline-primary:hover {
  color: var(--text-color-1);
  background-color: var(--color-1);
  border-color: var(--color-1);
}
.badge {
  white-space: normal !important;
}


/* ===================================================
   VARNOK — Modern Interface Overrides
   Copyright © 2026 Varnok - Tous droits réservés
   =================================================== */

/* ── Typography ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

#app {
  font-family: 'Exo 2', 'Nunito', sans-serif;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Sidebar — glassmorphism + accent bar ────────── */
#sidebar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.055);
  box-shadow: 4px 0 32px rgba(0,0,0,0.4);
}

#sidebar .sidebar-link {
  position: relative;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

/* Left accent bar on hover/active */
#sidebar .sidebar-link::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--gradient-1-vertical);
  transform: scaleY(0);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  border-radius: 0 3px 3px 0;
}
#sidebar .sidebar-link:hover::before,
#sidebar .sidebar-link.active::before { transform: scaleY(1); }

#sidebar .sidebar-link:hover,
#sidebar .sidebar-link.active {
  background: rgba(255,255,255,0.05);
  color: var(--text-color-4);
}

/* Icon subtle scale on hover */
#sidebar .sidebar-link .icon {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}
#sidebar .sidebar-link:hover .icon { transform: scale(1.12); }

/* Sidebar login / register buttons */
.sidebar-btn, .sidebar-btn-2 {
  border-radius: 10px !important;
  margin: 4px 10px !important;
  width: calc(100% - 20px) !important;
  padding: 11px 16px !important;
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: all 0.22s cubic-bezier(.4,0,.2,1) !important;
}

/* Sidebar dropdown panel */
#sidebar .sidebar-dropdown-body {
  border-radius: 0 12px 12px 0;
  box-shadow: 8px 0 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: none;
}

/* Avatar ring */
#sidebar .sidebar-link .profile img {
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.07);
}

/* ── Cards ───────────────────────────────────────── */
.card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover:not(#footer):not(#bigfooter) {
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 10px 36px rgba(0,0,0,0.3) !important;
}

/* ── Section titles ──────────────────────────────── */
.section-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--text-color-2) !important;
  margin-bottom: 1.1rem !important;
  padding-bottom: 0.6rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.section-title i {
  opacity: 0.8;
  font-size: 1rem !important;
}

/* ── Buttons ─────────────────────────────────────── */
.btn.btn-gradient,
.btn.btn-primary {
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  transition: all 0.22s cubic-bezier(.4,0,.2,1) !important;
}
.btn.btn-gradient:hover,
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.38);
}
.btn.btn-gradient:active,
.btn.btn-primary:active { transform: translateY(0); }

/* ── Forms ───────────────────────────────────────── */
.form-control,
.dselect-wrapper .form-select {
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background-color: rgba(255,255,255,0.05) !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-control:focus,
.dselect-wrapper .form-select:focus {
  border-color: rgba(255,255,255,0.18) !important;
  background-color: rgba(255,255,255,0.08) !important;
}

/* Labels */
.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
}

/* ── Nav tabs — pill container style ─────────────── */
.nav-tabs {
  border: none !important;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px !important;
  display: inline-flex;
  margin-bottom: 1.2rem;
}
.nav-tabs .nav-item .nav-link {
  border: none !important;
  border-radius: 9px !important;
  padding: 7px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-color-1) !important;
  background: transparent;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-tabs .nav-item .nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-color-2) !important;
}
.nav-tabs .nav-item .nav-link.active {
  background: var(--gradient-1-vertical) !important;
  color: var(--text-color-4) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
}

/* Nav pills */
.nav-pills {
  gap: 4px;
}
.nav-pills .nav-link {
  border-radius: 9px !important;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-pills .nav-link.active {
  background: var(--gradient-1-vertical) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
}

/* ── Tables ──────────────────────────────────────── */
.table {
  border-collapse: separate !important;
  border-spacing: 0 3px !important;
}
.table thead th {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.6;
  border: none !important;
  padding: 10px 14px;
}
.table tbody tr { transition: all 0.18s ease; }
.table tbody tr:hover td { background-color: rgba(255,255,255,0.04); }
.table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  border: none !important;
}
.table tbody tr td:first-child { border-radius: 9px 0 0 9px; }
.table tbody tr td:last-child  { border-radius: 0 9px 9px 0; }

/* ── Badges ──────────────────────────────────────── */
.badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
}

/* Notification pulse */
.badge.bg-danger {
  animation: pulse-badge 2.2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45); }
  50%       { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

/* ── Modals ──────────────────────────────────────── */
.modal-content {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55) !important;
  border-radius: 16px !important;
}
.modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  padding: 1.1rem 1.4rem;
}
.modal-title {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.modal-footer { border-top: 1px solid rgba(255,255,255,0.07) !important; }

/* Notification item hover */
.notification-item:hover {
  background: rgba(255,255,255,0.04) !important;
}

/* ── Dropdown menus ──────────────────────────────── */
.dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.42) !important;
}
.dropdown-item {
  border-radius: 8px !important;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-item:hover { background: rgba(255,255,255,0.07) !important; }
.dropdown-item i { width: 18px; text-align: center; opacity: 0.75; }

/* Dropdown divider */
.dropdown-divider { border-color: rgba(255,255,255,0.07) !important; margin: 4px 6px !important; }

/* ── Alerts ──────────────────────────────────────── */
.alert {
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
}
.alert-success { border-left: 3px solid #28c76f !important; }
.alert-danger  { border-left: 3px solid #ea5455 !important; }
.alert-warning { border-left: 3px solid #ff9f43 !important; }
.alert-info    { border-left: 3px solid #00cfe8 !important; }
.alert i:first-child { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }

/* ── List groups ─────────────────────────────────── */
.list-group-item {
  border-radius: 10px !important;
  margin-bottom: 3px;
  padding: 11px 14px;
  font-weight: 600;
  border: none !important;
  background: rgba(255,255,255,0.04) !important;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-group-item:hover {
  background: rgba(255,255,255,0.08) !important;
  transform: translateX(3px);
}
.list-group-item.active {
  background: var(--gradient-1-vertical) !important;
  transform: translateX(3px);
}

/* ── Pagination ──────────────────────────────────── */
.pagination { gap: 3px; }
.pagination .page-link {
  border-radius: 8px !important;
  border: none !important;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-color-1) !important;
  transition: all 0.18s ease;
  padding: 7px 12px;
}
.pagination .page-link:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: translateY(-1px);
}
.pagination .page-item.active .page-link {
  background: var(--gradient-1-vertical) !important;
  color: var(--text-color-4) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ── Progress bars ───────────────────────────────── */
.progress {
  border-radius: 10px !important;
  background: rgba(255,255,255,0.06) !important;
  height: 7px !important;
}
.progress-bar {
  border-radius: 10px !important;
  background: var(--gradient-1-vertical) !important;
}

/* ── Accordion ───────────────────────────────────── */
.accordion-button {
  border-radius: 10px !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.83rem;
}

/* ── Input groups ────────────────────────────────── */
.input-group-text {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  color: var(--text-color-1) !important;
  border-radius: 10px 0 0 10px !important;
}

/* ── Footer ──────────────────────────────────────── */
#footer {
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 0 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
#footer .card-body { border-radius: 0 !important; padding: 11px 28px !important; }

/* ── Page entry animation ────────────────────────── */
.content-wrapper > .row,
.content-wrapper > .card,
.content-wrapper > section {
  animation: varnok-fade-up 0.3s ease both;
}
@keyframes varnok-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile sidebar ──────────────────────────────── */
#sidebar-mobile {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* ── Topbar mobile ───────────────────────────────── */
#topbar-mobile {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Tooltips ────────────────────────────────────── */
.tooltip-inner {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 10px;
}

/* ── Tables — zebra fix ──────────────────────────── */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  border-radius: 0 !important;
}

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before { opacity: 0.4; }

/* ── Spinner ─────────────────────────────────────── */
.spinner-border { border-width: 0.15em; }


/* ── Section title icon injection (Varnok auto-icons) ── */
/* Icons injected by JS below */
.section-title .varnok-section-icon {
  font-size: 1rem;
  opacity: 0.85;
  flex-shrink: 0;
  line-height: 1;
}
