@font-face {
  font-family: "saudi_riyal";
  src: url("../fonts/regular/saudi_riyal.eot?bdfc4l");
  src: url("../fonts/regular/saudi_riyal.eot?bdfc4l#iefix")
      format("embedded-opentype"),
    url("../fonts/regular/saudi_riyal.ttf?bdfc4l") format("truetype"),
    url("../fonts/regular/saudi_riyal.woff?bdfc4l") format("woff"),
    url("../fonts/saudi_riyal.svg?bdfc4l#saudi_riyal") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "saudi_riyal_bold";
  src: url("../fonts/bold/saudi_riyal.eot?bdfc4l");
  src: url("../fonts/bold/saudi_riyal.eot?bdfc4l#iefix")
      format("embedded-opentype"),
    url("../fonts/bold/saudi_riyal.ttf?bdfc4l") format("truetype"),
    url("../fonts/bold/saudi_riyal.woff?bdfc4l") format("woff"),
    url("../fonts/saudi_riyal.svg?bdfc4l#saudi_riyal") format("svg");
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "JannaLTRegular";
  src: url("fonts/regular/ArbFONTS-ArbFONTS-Janna-LT-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "JannaLTBold";
  src: url("fonts/regular/ArbFONTS-ArbFONTS-Janna-LT-Bold.ttf")
    format("truetype");
}

@font-face {
  font-family: "JannaLTSimple";
  src: url("fonts/regular/ArbFONTS-JannaLT-Regular.ttf") format("truetype");
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
strong,
b,
li,
ul,
button,
span {
  font-family: "JannaLTRegular", Arial, sans-serif !important;
}

/* Icon styling */
[class^="icon-"],
[class*=" icon-"] {
  font-family: "saudi_riyal" !important;
  font-style: normal;
  font-weight: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* [class^="icon-"],
[class*=" icon-"] {
  font-family: "saudi_riyal_bold" !important;
  font-style: normal;
  font-weight: bold;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} */

/* Dynamic color support */
/* .icon-saudi_riyal:before {
  content: "\e900";
  color: var(--riyals-color, #2f704a);
} */


.icon-saudi_riyal:after {
  content: "\20c1";
  color: var(--riyals-color, #2f704a);
}

/* Super and Subscript - Smaller icon */
.super-sub .icon-saudi_riyal {
  font-size: 0.7em;
}

/* Theme variables */
:root {
  --primary-color: #2f704a;
  --primary-dark: #235636;
  --primary-light: #e6f0eb;
  --accent-color: #ffc107;
  --text-on-primary: #ffffff;
  --card-bg: #ffffff;
  --riyals-color: #2f704a;
}

/* Gradient background for the body */
body {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Dynamic theme classes */
.theme-primary-bg {
  background-color: var(--primary-color);
}
.theme-primary-text {
  color: var(--primary-color);
}
.theme-primary-border {
  border-color: var(--primary-color);
}
.theme-primary-light-bg {
  background-color: var(--primary-light);
}
.theme-accent-bg {
  background-color: var(--accent-color);
}
.theme-card-bg {
  background-color: var(--card-bg);
}
.theme-btn {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  transition: all 0.3s ease;
}
.theme-btn:hover {
  background-color: var(--primary-dark);
}

/* Color picker panel */
.color-picker-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
  width: 280px;
  transition: transform 0.3s ease;
}
.color-picker-panel.collapsed {
  transform: translateX(-102%);
}
.color-picker-toggle {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.color-input-group {
  margin-bottom: 10px;
}
.color-input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
}
.preset-colors {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.preset-color {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #eee;
}
.preset-color:hover {
  transform: scale(1.1);
}

.colorPickerToggle svg {
  animation: spin 1s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
