/* Base Styles - Extracted and cleaned from template.html */
:root {
  --cl: #005af0;
  --fs: 18px;
  --fs-sm: 16px;
  --s1: 8px;
  --s2: 15px;
  --l1: rgba(0, 0, 0, 0.08) 0 5px 9px, rgba(0, 0, 0, 0.08) 0 1px 4px;
  --cg: #d6d3c9;
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}

body,
html {
  font-size: var(--fs);
  font-weight: 400;
}

body {
  overflow-x: hidden;
  background-color: #f3f0e6;
  padding-top: 55px;
  padding-bottom: 60px; /* Space for fixed bottom toolbar */
}

a {
  text-decoration: none;
  color: #111;
}

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

/* Typography */
body,
button,
input,
select,
textarea {
  color: #333;
  font: var(--fs) / 1.3 "Merriweather", serif;
  font-family: "Merriweather", serif;
  font-style: normal;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font: var(--fs) / 1.1 "Roboto Condensed", sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 2.2rem;
  margin: 0.5rem 0;
  line-height: 1.1;
}

h4 {
  font-size: 1.1rem;
  color: #000;
}

small {
  font-size: var(--fs-sm);
}

.d-none{
  display: none;
}

@media (min-width: 768px) {
  .d-md-block{
    display: block;
  }
}


/* Layout */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--s2);
}

.flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}

.flex-1{
  flex:1
}

.gap-1{
  gap: var(--s1);
}

.mb {
  margin-bottom: var(--s2);
}

.mbs {
  margin-bottom: 8px;
}

.mt {
  margin-top: var(--s2);
}

.p1 {
  padding: var(--s2);
}

/* Navbar */
.surah-details-bar {
  background-color: rgb(1 110 122);
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
  color: #cddc39;
}

.surah-details-bar .wrap {
  display: flex;
  padding: 2px var(--s2);
  justify-content: space-between;
}

.nb {
  background-color: #0097a7;
  padding: 0;
  height: 55px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Limit SVG size in header to prevent maximum size when CSS is missing */
.nb svg,
.sb svg {
  max-width: 40px;
  max-height: 40px;
}

.brand {
  font-size: 24px;
  color: #cddc39;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* Language Toggle Button */
.lang-tgl {
  float: right;
  padding: 0;
  margin: 6px 0;
  background: 0;
  line-height: 40px;
  color: #cddc39;
  font-size: 20px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  border: 2px solid;
  border-radius: 50%;
  width: 42px;
}

.lang-tgl svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.lang-tgl:hover {
  opacity: 0.8;
}

.lang-tgl:active,
#lang-chk:checked ~ .nb .lang-tgl {
  opacity: 0.6;
}

/* Menu Toggle Button */
.sb-tgl {
  float: right;
  padding: 0 10px 0;
  margin: 6px 0;
  background: 0;
  border: 2px solid #cddc39;
  border-radius: 6px;
  line-height: 40px;
  color: #cddc39;
  font-size: 12px;
  font-family: sans-serif;
  height: 42px;
  cursor: pointer;
}

.sb-tgl:before {
  display: inline-block;
  width: 22px;
  height: 22px;
  content: "=";
  color: #cddc39;
  font-size: 40px;
  line-height: 20px;
  vertical-align: -5px;
}

.sb-tgl div {
  margin-left: 12px;
  pointer-events: none;
}

.sb-tgl:active,
#sb-chk:checked ~ .sb-tgl {
  background-color: #00707b;
}


/* Sidebar */
.sb {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -300px;
  width: 300px;
  visibility: hidden;
  overflow-y: auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 1001;
  background: #0091a1;
  display: flex;
  flex-direction: column;
}

.sb-chk {
  display: none;
}

#sb-chk:checked ~ .sb {
  visibility: visible;
  right: 0;
  z-index: 1001;
}

.sb-hdr {
  height: 55px;
  background: #f3f0e6;
  display: flex;
  align-items: center;
  align-content: space-between;
  min-width: 280px;
}

a.logo {
  color: #000;
  font-size: 24px;
  padding: 12px;
  flex: 1;
}

.x {
  font-size: 34px;
  line-height: 40px;
  padding: 0 13px;
  outline: none;
  cursor: pointer;
  background: var(--cg);
  border-radius: 4px;
  margin: 0 17px 0 0;
  height: 42px;
  font-family: sans-serif;
}

/* Sidebar Settings Section */
.sb-settings {
  padding: var(--s2);
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.sb-settings-section {
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.sb-settings-section:last-child {
  margin-bottom: 0;
}

.sb-settings-section h3 {
  color: #cddc39;
  font-size: 0.9rem;
  margin: 0;
  min-width: 80px;
  font-weight: 400;
}

.sb-settings-section .toggle-switch {
  margin-right: var(--s1);
}

#theme-label {
  color: #cddc39;
  font-size: var(--fs-sm);
}

.surah-order-btn {
  padding: var(--s1);
  background: transparent;
  color: #cddc39;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.surah-order-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.surah-order-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.surah-order-btn:focus {
  outline: 2px solid #005af0;
  outline-offset: 2px;
}

/* Sidebar Language Switcher */
.sb-language {
  padding: var(--s2);
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.sb-language-select {
  width: 100%;
  padding: var(--s1) var(--s2);
  font-size: var(--fs-sm);
  font-family: "Merriweather", serif;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #cddc39;
  cursor: pointer;
}

.sb-language-select:focus {
  outline: 2px solid #005af0;
  outline-offset: 2px;
}

.sb-language-select option {
  background: #0097a7;
  color: #cddc39;
}

/* Sidebar Surahs Section */
.sb-surahs {
  padding: var(--s2);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sb-surahs-header {
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
}

.sb-surahs-header h3 {
  color: #cddc39;
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
  flex: 1;
}

.sb-surahs-search {
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-width: 0;
}

.sb-surah-search-input {
  flex: 1;
  min-width: 0;
  padding: var(--s1) var(--s2);
  font-size: var(--fs-sm);
  font-family: "Merriweather", serif;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #cddc39;
}

.sb-surah-search-input::placeholder {
  color: rgba(205, 220, 57, 0.6);
}

.sb-surah-search-input:focus {
  outline: 2px solid #005af0;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.sb-surah-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sb-surah-item {
  margin-bottom: var(--s1);
}

.sb-surah-item a {
  display: flex;
  align-items: flex-start;
  gap: var(--s1);
  padding: var(--s1) var(--s2);
  color: #cddc39;
  font-size: var(--fs-sm);
  border-radius: 4px;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.sb-surah-item a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sb-surah-item.active a {
  background: rgba(205, 220, 57, 0.2);
  font-weight: bold;
}

.sb-surah-number {
  flex-shrink: 0;
  font-weight: 600;
  opacity: 0.8;
  min-width: 1.5em;
}

.sb-surah-name-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.sb-surah-item a strong {
  display: block;
  margin-bottom: 2px;
}

.sb-surah-error {
  padding: var(--s2);
  color: #cddc39;
  text-align: center;
  font-style: italic;
}

/* Overlay */
.overlay {
  display: none;
}

#sb-chk:checked ~ .overlay {
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
}

label.overlay-close {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-overlay {
  display: none;
}

#lang-chk:checked ~ .lang-overlay {
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
}

label.lang-overlay-close {
  display: block;
  width: 100%;
  height: 100%;
}

/* Language Sidebar */
.lang-chk {
  display: none;
}

.lang-sb {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -280px;
  width: 280px;
  visibility: hidden;
  overflow-y: auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 1002;
  padding: 0;
  background: #0097a7;
  display: flex;
  flex-direction: column;
}

#lang-chk:checked ~ .lang-sb {
  visibility: visible;
  left: 0;
  z-index: 1002;
}

.lang-sb-hdr {
  height: 55px;
  background: #f3f0e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s2);
  min-width: 280px;
  flex-shrink: 0;
}

.lang-sb-hdr h2 {
  font-size: 20px;
  color: #000;
  margin: 0;
  font-weight: 400;
}

.lang-x {
  font-size: 34px;
  line-height: 40px;
  padding: 0 13px;
  outline: none;
  cursor: pointer;
  background: var(--cg);
  border-radius: 4px;
  height: 42px;
  font-family: sans-serif;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-sb-content {
  flex: 1;
  padding: var(--s2) 0;
  overflow-y: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  padding: var(--s2);
  color: #cddc39;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-item-active {
  background: rgba(205, 220, 57, 0.2);
  font-weight: bold;
}

.lang-code {
  display: inline-block;
  min-width: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.lang-separator {
  margin: 0 var(--s1);
  opacity: 0.6;
}

.lang-name {
  flex: 1;
}

.lang-translator {
  font-size: 0.9em;
  opacity: 0.8;
  font-weight: normal;
}

/* Language Group (for multiple translations per language) */
.lang-group {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-group-header {
  display: flex;
  align-items: center;
  padding: var(--s2);
  color: #cddc39;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.1);
}

.lang-group-items {
  background: rgba(0, 0, 0, 0.05);
}

.lang-item-sub {
  padding-left: calc(var(--s2) * 2);
  font-size: 0.95em;
}

.lang-item-sub .lang-code {
  min-width: auto;
  font-weight: normal;
}

/* Main Content */
main {
  min-height: calc(100vh - 115px); /* Account for navbar and toolbar */
}


/* Search Container */
.search-container {
  margin-top: var(--s2);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.surah-order-btn-main {
  padding: var(--s1);
  background: #fff;
  color: #333;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.surah-order-btn-main svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.surah-order-btn-main:hover {
  background: #f9f9f9;
  border-color: #0097a7;
}

.surah-order-btn-main:focus {
  outline: none;
  border-color: #0097a7;
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.1);
}

.search-container .surah-search-input {
  flex: 1;
}

.surah-search-input {
  width: 100%;
  padding: var(--s1) var(--s2);
  font-size: var(--fs);
  font-family: "Merriweather", serif;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
}

.surah-search-input:focus {
  outline: none;
  border-color: #0097a7;
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.1);
}

.surah-search-input::placeholder {
  color: #999;
}

/* Surah List Styles */
.surah-list {
  list-style: none;
  padding: 0;
}

.surah-list li {
  margin-bottom: var(--s2);
  position: relative;
}

.surah-list li.surah-item {
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  position: relative;
  gap: var(--s1);
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--l1);
}

.surah-list a {
  display: flex;
  align-items: center;
  padding: var(--s2);

  border: 0;
  flex: 1;
}

.surah-list a:hover {
  background: #f9f9f9;
}

.surah-number {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.4);
  font-weight: normal;
  width: 30px;
  text-align: left;
}

.surah-arabic-col {
  width: 50%;
  text-align: right;
  padding-right: var(--s1);
}

.surah-english-col {
  width: 50%;
  text-align: left;
  padding-left: var(--s1);
}

.surah-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: var(--s1);
}

.surah-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0097a7;
  flex-shrink: 0;
  margin: 0;
}

.surah-checkbox:hover {
  opacity: 0.8;
}

.arabic {
  font-size: 1.8rem;
  font-weight: normal;
}

.no-results {
  text-align: center;
  padding: var(--s2);
  color: #666;
  font-style: italic;
}

.no-results p {
  margin: 0;
}

/* Page Title with Inline Selector */
.page-title-with-selector {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-wrap: wrap;
}

.language-select-inline {
  padding: 4px 8px;
  font-size: 0.6em;
  font-family: "Merriweather", serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  -webkit-transition: border-color 0.3s ease;
  transition: border-color 0.3s ease;
  vertical-align: middle;
  margin-left: var(--s1);
}

.language-select-inline:focus {
  outline: none;
  border-color: #0097a7;
  box-shadow: 0 0 0 2px rgba(0, 151, 167, 0.1);
}

.language-select-inline:hover {
  border-color: #0097a7;
}

.theme-dark .language-select-inline {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-color);
}

.theme-dark .language-select-inline:focus {
  border-color: var(--link-hover);
  box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.2);
}

.theme-dark .language-select-inline:hover {
  border-color: var(--link-hover);
}

/* Ayah Container Styles */
.ayahs-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ayah {
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ayah-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s2);
  padding-top: 0px;
  padding-bottom: 8px;
  position: relative;
}

.ayah-number {
  position: absolute;
  left: 0px;
  top: -8px;
  background-color: unset;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: normal;
  line-height: 1;
  padding: 2px;
}

.ayah-text,
.ayah-arabic {
  line-height: 2;
  margin-top: var(--s1);
}

.ayah-transliteration {
  font-size: 0.90rem;
  line-height: 1.8;
  margin-top: var(--s1);
  color: var(--text-color);
  opacity: 0.85;
}

.ayah-transliteration b{
  font-weight: 400;
  opacity: 0.4;
}

.ayah-translation {
  font-size: 1rem;
  line-height: 1.8;
  margin-top: var(--s1);
  color: var(--text-color);
}

.ayah-anchor {
  scroll-margin-top: 50px;
}

/* Highlight target ayah when accessed via anchor link */
.ayah-anchor:target {
  background-color: rgba(255, 255, 240, 0.7);
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.theme-dark .ayah-anchor:target {
  background-color: rgba(255, 235, 59, 0.15);
}

/* Highlight ayah range when accessed via query parameter like ?4:5 */
.ayah-in-range {
  background-color: rgba(255, 248, 220, 0.8);
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.theme-dark .ayah-in-range {
  background-color: rgba(255, 235, 59, 0.25);
}

/* When both :target and range highlight apply, range takes precedence */
.ayah-anchor:target.ayah-in-range {
  background-color: rgba(255, 248, 220, 0.8);
}

.theme-dark .ayah-anchor:target.ayah-in-range {
  background-color: rgba(255, 235, 59, 0.25);
}

/* Hide Arabic text when hide-arabic class is on HTML */
.hide-arabic .ayah-container .arabic,
.hide-arabic .ayahs-container .arabic {
  display: none;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* Navigation Toolbar */
.navigation-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 0;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-button {
  width: 50px;
  height: 50px;
  padding: 0;
  background: #cddc39;
  color: #000;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.nav-button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button:hover {
  background: #b8c832;
}

.nav-button:disabled {
  background: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  opacity: 0.5;
}

.nav-button:disabled svg {
  stroke: rgba(255, 255, 255, 0.5);
}


.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: var(--s1);
  vertical-align: middle;
}

.toggle-switch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
  pointer-events: none;
}

.toggle-switch input:checked + .toggle-slider,
.toggle-switch input:checked::before {
  background-color: #0097a7;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #0097a7;
}

input:checked + .toggle-slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.toggle-slider-icon {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  pointer-events: none;
  z-index: 1;
}

.toggle-slider-icon svg {
  width: 18px;
  height: 18px;
  position: absolute;
  -webkit-transition: opacity 0.3s, transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  color: currentColor;
}

.toggle-slider-icon svg:first-child {
  opacity: 1;
  transform: scale(1);
}

.toggle-slider-icon svg.theme-icon,
.toggle-slider-icon svg.arabic-icon {
  opacity: 0;
  transform: scale(0);
}

.toggle-switch input:checked ~ .toggle-slider-icon {
  -webkit-transform: translateY(-50%) translateX(26px);
  -ms-transform: translateY(-50%) translateX(26px);
  transform: translateY(-50%) translateX(26px);
}

.toggle-switch input:checked ~ .toggle-slider-icon svg:first-child {
  opacity: 0;
  transform: scale(0);
}

.toggle-switch input:checked ~ .toggle-slider-icon svg.theme-icon {
  opacity: 1;
  transform: scale(1);
}

.toggle-switch input:checked ~ .toggle-slider-icon svg.arabic-icon {
  opacity: 1;
  transform: scale(1);
}

.toggle-switch input:not(:checked) ~ .toggle-slider-icon svg.arabic-icon {
  opacity: 0;
  transform: scale(0);
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.nav-button:focus,
.sb-tgl:focus {
  outline: 2px solid #005af0;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Build date */
.build-date {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: var(--s2);
  margin-bottom: var(--s2);
  padding-top: var(--s2);
  opacity: 0.2;
  transition: opacity 0.2s ease;
}

.build-date:hover {
  opacity: 0.7;
}

/* Responsive */
@media (min-width: 768px) {
  .d-md-inline {
    display: inline;
  }
}

/* Print styles */
@media print {
  .nb,
  .navigation-toolbar,
  .sb {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}

