/* |--------------------------------------------------------------------------
| Custom Font Definitions (@font-face)
|--------------------------------------------------------------------------
| 
| These rules tell the browser how to load your font files from your server.
| (Assuming the CSS file is located in a folder adjacent to 'cassets').
|
*/
body{
  overflow-x: hidden !important;
}
.dropdown-menu {
  --bs-dropdown-font-size: var(--font-size-medium);
}
.card {
  --bs-card-title-color: var(--font-size-large);
}
.table {
  --bs-table-color: var(--text-light-color);
  --bs-table-hover-bg: var(--primary-color);
  --bs-table-hover-color: #fff;
}
.navbar {
  --bs-navbar-color: var(--bs-nav-link-color);
}
.card-title {
  color: var(--bs-card-title-color);
}
.form-control {
color:var(--text-light-color);
}
.form-control:focus {
  color: var(--text-light-color);
}
select option {
  background-color: var(--tr-nth-even-background);
  color: var(--text-light-color);
}
.dropdown-menu{
  --bs-dropdown-link-hover-bg:var(--tr-nth-even-background-hover  );
  --bs-dropdown-link-hover-color:var(--text-light-color-inv);
}
.alert{
  border-bottom-right-radius:var(--border-radius-object) !important;
    border-bottom-left-radius:var(--border-radius-object) !important; 
    border-top-right-radius:0px !imporTotal Balance
    tant; 
  border-top-left-radius:0px !important; 
 }
 .ql-snow svg .ql-stroke {
  stroke: var(--text-light-color);
}
.ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected{
  color:var(--primary-color);
}
body {
  overflow-x: hidden;
  font-size: var(--font-size-medium);
  font-family: var(--font-family-cms);
}
body,
p,
div,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-cms);
}
h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
  font-size: var(--font-size-large);
  font-weight: 100;
}
.message-body a.nav-link.nav-icon-hover {
  font-size: var(--font-size-medium) !important;
}
.content-wrapper {
  padding-top: 75px;
}
@media only screen and (max-width: 600px) {
  .content-wrapper {
    padding-top: 20px;
  }
}
.app-header {
  top: 0px !important;
}
.container {
  max-width: 800px;
  margin: 0 auto;
}
h1,
h5 {
  margin-bottom: 20px;
}
.slider-container {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
}
.slider-content {
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 10px;
}
.slider-content::-webkit-scrollbar {
  display: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
:dir(rtl).input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){
  border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--border-radius-object);
    border-bottom-left-radius: var(--border-radius-object);
}
:dir(ltr).input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){
  border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--border-radius-object);
    border-bottom-right-radius: var(--border-radius-object);
}
:dir(rtl) .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),:dir(rtl) .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,:dir(rtl) .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,:dir(rtl) .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){
  border-top-right-radius:var(--border-radius-object);
  border-bottom-right-radius: var(--border-radius-object);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
:dir(ltr) .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),:dir(ltr) .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,:dir(ltr) .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,:dir(ltr) .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){
  border-top-left-radius: var(--border-radius-object);
    border-bottom-left-radius:var(--border-radius-object);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
:dir(ltr) table td,
.table>:not(caption)>*>* {
  min-width: 150px;
  padding: 8px;
  text-align: left;
}
:dir(rtl) table td,
:dir(rtl) .table>:not(caption)>*>* {
  min-width: 150px;
  padding: 8px;
  text-align: right;
}
table td, .table>*>*:not(:first-of-type)
{
  border: 1px solid var(--border-color);
}
table th {
  background-color: var(--primary-color) !important;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}
:dir(rtl) table thead tr th:first-child {
  border-top-right-radius: var(--border-radius-object) !important;
}
:dir(ltr) table thead tr th:first-child {
  border-top-left-radius: var(--border-radius-object) !important;
}
:dir(ltr) table thead tr th:last-child {
  border-top-right-radius: var(--border-radius-object) !important;
}
:dir(rtl) table thead tr th:last-child {
  border-top-left-radius: var(--border-radius-object) !important;
}
table tr:nth-child(even) {
  background-color: var(--tr-nth-even-background);
}
table tr:hover {
  background-color: var(--tr-nth-even-background-hover) !important;
  color:#fff;
}
.nav-button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  font-size: var(--font-size-medium);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  margin: 0 10px;
}
.nav-button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}
.button-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
button,
.btn {
  margin: 3px !important;
}
@media screen and (max-width: 768px) {
  table th,
  table td {
    min-width: 120px;
  }
}
/* Dropdown menu CSS */
.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}
.responsive-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.responsive-table .dropdown-view {
  display: none;
}
.responsive-table .row {
  border-radius: var(--border-radius-object);
  margin: 10px 0;
  border: 1px solid #ddd;
  padding: 10px;
}
@media screen and (max-width: 768px) {
  .responsive-table table {
    display: none;
  }
  .responsive-table .dropdown-view {
    display: block;
  }
}
/* Comment widget dashboard section */
.card {
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 20px;
}
.card-header {
  background: var(--primary-color) !important;
  direction: var(--dir);       /* 'ltr' or 'rtl' */
  text-align: start;           /* aligns left in ltr, right in rtl */
  font-weight: bold;
  padding: 10px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}
.card-header h2,
.card-header h3,
.card-header h4 {
  color: white !important;
  font-size: var(--font-size-large);
}
.list-group-item {
  border: 1px solid;
  padding: 5px;
  transition: all 0.3s ease-in-out;
  border-color: var(--list-group-item-border-color);
}
.list-group-item:hover {
  background: var(--primary-color);
  color:white !important;
}
.list-group-item:hover * {
  background: var(--primary-color);
  color:white !important;
}
.list-group-item h6 {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
}
.list-group-item p {
  font-size: 12px;
  margin-bottom: 5px;
  line-height: 1.5;
}
.text-muted {
  font-size: 12px;
}
.alert-warning {
  font-size: 14px;
  padding: 15px;
  border-radius: 5px;
}
a.text-decoration-none {
  font-weight: 600;
  color: var(--accent-color);
}
a.text-decoration-none:hover {
  text-decoration: underline;
}
/* Media manager modal CSS */
.media-modal {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}
.hidden {
  display: none;
}
/*Select image and put this image in input image media manager*/
:dir(ltr) .media-modal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  /* Limit height */
  overflow-y: auto;
  /* Enable vertical scroll */
  border-radius: 8px;
  padding: 20px;
  z-index: 25;
  background: var(--bs-card-bg);;
}
:dir(rtl) .media-modal {
  position: fixed;
  top: 10%;
  right: -30%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  /* Limit height */
  overflow-y: auto;
  /* Enable vertical scroll */
  border-radius: 8px;
  padding: 20px;
  z-index: 25;
  background: var(--bs-card-bg);;
}
.media-modal .card-body {
  overflow-y: auto;
  max-height: 70vh;
  /* Scroll inside card body */
}
.media-modal .row {
  flex-wrap: wrap;
  margin-right: 0;
  margin-left: 0;
}
.media-modal .col-md-4,
.media-modal .col-sm-6 {
  padding-left: 10px;
  padding-right: 10px;
}
div.card-header > h5{
  font-size:var(--font-medium-size);
  color:var(--text-light-color-inv);
}
.card-header{
   border-radius: var( --border-radius-object) var( --border-radius-object) 0 0;
 }
 [dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-right: 0;
  padding-left: var(--bs-breadcrumb-divider-padding-x, 0.5rem);
}
