@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cairo/Cairo-Regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cairo/Cairo-Regular-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cairo/Cairo-SemiBold-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cairo/Cairo-SemiBold-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cairo/Cairo-Bold-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/cairo/Cairo-Bold-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

body {
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.logo-topbar .logo-lg img {
  height: 200px;
  object-fit: contain;
}

.logo-topbar .logo-sm img {
  height: 160px;
  object-fit: contain;
}

.leftside-menu .logo {
  justify-content: center;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.leftside-menu .logo-lg img,
.leftside-menu .logo-sm img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s ease;
}

.leftside-menu .logo-lg img {
  height: 144px;
  max-height: 144px;
}

.leftside-menu .logo-sm img {
  height: 80px;
  max-height: 80px;
}

.leftside-menu .side-nav {
  padding-top: 0.75rem;
}

.leftside-menu .side-nav .side-nav-item {
  margin-bottom: 0.35rem;
}

.leftside-menu .side-nav .side-nav-link {
  border-radius: 0.75rem;
  padding: 0.7rem 1.4rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.leftside-menu .side-nav .side-nav-link i {
  margin-right: 0.45rem;
  font-size: 1rem;
}

.leftside-menu .side-nav .side-nav-link span {
  font-weight: 600;
}

.leftside-menu .side-nav-title {
  padding: 1rem 1.2rem 0.4rem;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.leftbar-user img {
  width: 56px;
  height: 56px;
}

.help-box {
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1.4;
}

:root {
  --templates-primary: #2f343d;
  --templates-primary-rgb: 47, 52, 61;
  --templates-primary-hover: #3c424d;
  --templates-accent: #585f6d;
  --templates-secondary: #e6e8ed;
  --templates-dark: #1c1f24;
  --templates-surface: #111318;
}

:root {
  --ct-primary: var(--templates-primary);
  --ct-primary-rgb: var(--templates-primary-rgb);
}

.navbar-custom,
.topbar,
.leftside-menu,
.side-nav-title,
.side-nav .side-nav-link {
  background: var(--templates-surface);
  color: #fff !important;
}

.leftside-menu .side-nav .side-nav-link:hover,
.leftside-menu .side-nav .side-nav-link:focus,
.leftside-menu .side-nav .side-nav-link:active {
  background: var(--templates-primary-hover);
  color: #fff !important;
}

.leftside-menu .side-nav .side-nav-link.active {
  background: var(--templates-primary);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.leftside-menu .button-toggle,
.button-sm-hover,
.button-close-fullsidebar {
  color: #fff;
}

.help-box {
  background: var(--templates-dark);
  color: var(--templates-secondary);
}

.leftside-menu {
  height: 100vh;
}

.btn-primary {
  background-color: var(--templates-primary);
  border-color: var(--templates-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--templates-primary-hover);
  border-color: var(--templates-primary-hover);
}

a {
  color: var(--templates-primary);
}

a:hover,
a:focus {
  color: var(--templates-primary-hover);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--templates-primary);
  box-shadow: 0 0 0 0.15rem rgba(var(--templates-primary-rgb), 0.25);
}

.content .container-fluid {
  padding: 28px 32px;
}

@media (max-width: 991.98px) {
  .content .container-fluid {
    padding: 20px 18px;
  }
}

.templates-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(47, 52, 61, 0.32);
  border-collapse: separate;
  border-spacing: 0;
}

.templates-table thead th {
  border-bottom: none;
  background: linear-gradient(90deg, rgba(47, 52, 61, 0.09), rgba(47, 52, 61, 0.02));
  color: #111318;
  font-weight: 700;
}

.templates-table tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  border-bottom: 1px solid rgba(47, 52, 61, 0.16);
}

.templates-table tbody tr:nth-child(odd) {
  background: rgba(47, 52, 61, 0.02);
}

.templates-table tbody tr:nth-child(even) {
  background: rgba(47, 52, 61, 0.04);
}

.templates-table tbody tr:hover {
  background: rgba(47, 52, 61, 0.05);
  box-shadow: inset 0 0 0 1px rgba(47, 52, 61, 0.08);
}

.templates-table .badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 52, 61, 0.1);
  color: #111318;
  font-weight: 600;
}

.templates-table .btn-group .btn {
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(47, 52, 61, 0.18);
}

.templates-table .btn-group .btn:hover,
.templates-table .btn-group .btn:focus {
  background: rgba(47, 52, 61, 0.08);
  color: #111318;
}

.dataTables_filter input {
  background-color: #fff;
}

.dataTables_paginate .page-link {
  border-radius: 8px;
}

.search-elevated {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47, 52, 61, 0.12);
}

.search-elevated .form-control,
.search-elevated .form-select,
.search-elevated .input-group-text {
  background: transparent;
}

.search-elevated .form-control:focus,
.search-elevated .form-select:focus {
  box-shadow: none;
}

.form-elevated {
  border-radius: 16px;
}

.form-elevated .card-body {
  background: linear-gradient(180deg, rgba(47, 52, 61, 0.04), rgba(47, 52, 61, 0.01));
  border-bottom: 1px solid rgba(47, 52, 61, 0.12);
}

.form-elevated .input-group {
  border: 1px solid rgba(47, 52, 61, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.form-elevated .input-group .input-group-text {
  border: none;
  background: transparent;
}

.form-elevated .form-control,
.form-elevated .form-select {
  border: none;
  box-shadow: none;
}

.form-elevated .form-control:focus,
.form-elevated .form-select:focus {
  box-shadow: none;
}

.form-elevated .card-footer {
  background: #fff;
  border-top: 1px solid rgba(47, 52, 61, 0.12);
}

.table-responsive {
  border: 1px solid rgba(47, 52, 61, 0.18);
  border-radius: 12px;
  padding: 0.35rem;
  background: #fff;
}

.leftside-menu #leftside-menu-container {
  height: calc(100vh - 140px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .leftside-menu {
    height: 100%;
  }
  .leftside-menu #leftside-menu-container {
    height: calc(100vh - 110px);
  }
}

.table-rich {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table-rich thead th {
  background: linear-gradient(90deg, rgba(47, 52, 61, 0.07), rgba(47, 52, 61, 0.02));
  font-weight: 700;
  color: #111318;
  border-bottom: 1px solid rgba(47, 52, 61, 0.14);
}

.table-rich tbody tr:nth-child(odd) {
  background: rgba(47, 52, 61, 0.015);
}

.table-rich tbody tr:nth-child(even) {
  background: rgba(47, 52, 61, 0.04);
}

.table-rich tbody tr:hover {
  background: rgba(47, 52, 61, 0.07);
}

.table-rich td,
.table-rich th {
  border-top: none;
}

.table-rich code {
  background: rgba(47, 52, 61, 0.08);
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
}
