/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family and fallback to the system font-family.
5. Use the user's configured `sans` font-feature-settings and fallback to the system font-feature-settings.
6. Use the user's configured `sans` font-variation-settings and fallback to the system font-variation-settings.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct font size in all browsers.
*/

abbr:where([title]) {
  text-decoration: underline dotted;
}

/*
Remove the default font styling in all browsers.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family and fallback to the system font-family.
2. Use the user's configured `mono` font-feature-settings and fallback to the system font-feature-settings.
3. Use the user's configured `mono` font-variation-settings and fallback to the system font-variation-settings.
4. Correct the font size inheritance in all browsers.
*/

pre,
code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all browsers. (https://github.com/tailwindcss/tailwindcss/pull/116)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9217/layout/style/res/forms.css#L7_L11)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for 'textarea' to be consistent with 'input'.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/pull/3300)
2. Set the default placeholder color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/16)
2. Add `vertical-align: middle` to align replaced elements more consistently by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by popular resets.
3. Ensure constrained proportions are the default behavior. (https://github.com/jensimmons/cssremedy/issues/16)
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
  max-width: 100%; /* 3 */
}

/*
Constrain videos to the parent width.
*/

video {
  max-width: 100%;
  height: auto;
}

/*
DEFAULT BORDER COLOR
Set the default border color for everything.
We use a neutral-200 border color by default and border-neutral-300 on dark mode.
*/

*,
::before,
::after {
  border-color: #e5e7eb;
}

.dark *,
.dark ::before,
.dark ::after {
  border-color: #d4d4d8;
}

/*
DEFAULT RING COLOR
1. Set the default ring color.
2. Add a default ring color in dark mode.
*/

:root {
  --tw-ring-color: rgb(59 130 246 / 0.5); /* 1 */
}

.dark {
  --tw-ring-color: rgb(96 165 250 / 0.5); /* 2 */
}

/*
PROSE STYLES
We add some default 'prose' styles for rendered markdown.
*/

.prose {
  color: #374151;
}

.prose :where(a) {
  color: #5850ec;
  text-decoration: underline;
  font-weight: 500;
}

.prose :where(strong) {
  color: #111827;
  font-weight: 600;
}

.prose :where(ol) {
  list-style-type: decimal;
}

.prose :where(ul) {
  list-style-type: disc;
}

.prose :where(ol, ul) {
  padding-left: 1.625em;
}

.prose :where(li) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose :where(li::marker) {
  color: #6b7280;
  font-weight: 400;
}

.prose :where(h1) {
  font-size: 2.25em;
  line-height: 2.5rem;
  margin-top: 0;
  margin-bottom: 0.8888889em;
  font-weight: 800;
}

.prose :where(h2) {
  font-size: 1.5em;
  line-height: 2rem;
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
}

.prose :where(h3) {
  font-size: 1.25em;
  line-height: 1.75rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 600;
}

.prose :where(h4) {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.prose :where(img) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(video) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(figure) {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose :where(figure > *) {
  margin-top: 0;
  margin-bottom: 0;
}

.prose :where(figcaption) {
  font-size: 0.875em;
  line-height: 1.25rem;
  color: #6b7280;
  margin-top: 0.8571429em;
}

.prose :where(code) {
  color: #111827;
  font-weight: 600;
  font-size: 0.875em;
}

.prose :where(code::before, code::after) {
  content: "`";
}

.prose :where(pre) {
  color: #e5e7eb;
  background-color: #1f2937;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 0.8571429em 1.1428571em;
}

.prose :where(pre code) {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: 400;
  color: inherit;
}

.prose :where(pre code::before, pre code::after) {
  content: "";
}

.prose :where(blockquote) {
  font-weight: 500;
  font-style: italic;
  color: #111827;
  border-left-width: 0.25rem;
  border-left-color: #e5e7eb;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

.prose :where(table) {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7142857;
}

.prose :where(thead) {
  border-bottom-width: 1px;
  border-bottom-color: #d1d5db;
}

.prose :where(thead th) {
  color: #111827;
  font-weight: 600;
  vertical-align: bottom;
  padding-right: 0.5714286em;
  padding-bottom: 0.5714286em;
  padding-left: 0.5714286em;
}

.prose :where(tbody tr) {
  border-bottom-width: 1px;
  border-bottom-color: #e5e7eb;
}

.prose :where(tbody tr:last-child) {
  border-bottom-width: 0;
}

.prose :where(tbody td) {
  vertical-align: top;
  padding: 0.5714286em;
}

.dark .prose {
  color: #d1d5db;
}

.dark .prose :where(a) {
  color: #a5b4fc;
}

.dark .prose :where(strong) {
  color: #f9fafb;
}

.dark .prose :where(li::marker) {
  color: #9ca3af;
}

.dark .prose :where(h1) {
  color: #f9fafb;
}

.dark .prose :where(h2) {
  color: #f9fafb;
}

.dark .prose :where(h3) {
  color: #f9fafb;
}

.dark .prose :where(h4) {
  color: #f9fafb;
}

.dark .prose :where(figcaption) {
  color: #9ca3af;
}

.dark .prose :where(code) {
  color: #f9fafb;
}

.dark .prose :where(pre) {
  color: #d1d5db;
  background-color: #374151;
}

.dark .prose :where(blockquote) {
  color: #f9fafb;
  border-left-color: #4b5563;
}

.dark .prose :where(thead) {
  border-bottom-color: #6b7280;
}

.dark .prose :where(thead th) {
  color: #f9fafb;
}

.dark .prose :where(tbody tr) {
  border-bottom-color: #4b5563;
}

/*
MULTI-SELECT STYLES
We add some default 'listbox' styles.
*/

[role="listbox"] {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

[role="listbox"]:focus {
  outline: none;
}

[role="listbox"][aria-expanded="true"] {
  border-color: #2563eb;
}

.dark [role="listbox"][aria-expanded="true"] {
  border-color: #3b82f6;
}

[role="listbox"] > [role="button"] {
  cursor: pointer;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border-width: 1px;
  border-color: #9ca3af;
  background-color: #ffffff;
  padding: 0.5rem 1rem;
}

.dark [role="listbox"] > [role="button"] {
  border-color: #6b7280;
  background-color: #374151;
}

[role="listbox"] > [role="button"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #2563eb;
}

.dark [role="listbox"] > [role="button"]:focus {
  border-color: #3b82f6;
}

[role="listbox"] > ul {
  position: absolute;
  width: 100%;
  background-color: #ffffff;
  margin-top: 0.25rem;
  max-height: 10rem;
  overflow: auto;
  border-width: 1px;
  border-color: #9ca3af;
  z-index: 10;
}

.dark [role="listbox"] > ul {
  background-color: #374151;
  border-color: #6b7280;
}

[role="listbox"] > ul > li {
  position: relative;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

[role="listbox"] > ul > li:hover {
  background-color: #dbeafe;
}

.dark [role="listbox"] > ul > li:hover {
  background-color: #4b5563;
}

[role="listbox"] > ul > li[data-headlessui-state="selected"] {
  font-weight: 500;
  background-color: #bfdbfe;
}

.dark [role="listbox"] > ul > li[data-headlessui-state="selected"] {
  background-color: #6b7280;
}

[role="listbox"] > ul > li[data-headlessui-state="selected"]::after {
  content: "✓";
  position: absolute;
  right: 0.75rem;
}

/*
DATEPICKER STYLES
We add some default 'datepicker' styles.
*/

.react-datepicker {
  display: flex;
  border-width: 1px;
  border-color: #9ca3af;
  background-color: #ffffff;
  padding: 1rem;
}

.dark .react-datepicker {
  border-color: #6b7280;
  background-color: #374151;
}

.react-datepicker__month-container {
  display: flex;
  flex-direction: column;
}

.react-datepicker__month-container:first-child {
  padding-right: 1rem;
}

.dark .react-datepicker__month-container:first-child {
  border-color: #6b7280;
}

.react-datepicker__month-container:last-child {
  padding-left: 1rem;
}

.dark .react-datepicker__month-container:last-child {
  border-color: #6b7280;
}

.react-datepicker__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.react-datepicker__header > div:first-child {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}

.react-datepicker__header > div:last-child {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0.5rem;
}

.react-datepicker__day-name {
  text-align: center;
}

.react-datepicker__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.react-datepicker__day {
  cursor: pointer;
  padding: 0.5rem;
  text-align: center;
}

.react-datepicker__day:hover {
  background-color: #dbeafe;
}

.dark .react-datepicker__day:hover {
  background-color: #4b5563;
}

.react-datepicker__day--selected {
  background-color: #bfdbfe;
  font-weight: 500;
}

.dark .react-datepicker__day--selected {
  background-color: #6b7280;
}

.react-datepicker__day--keyboard-selected {
  background-color: #dbeafe;
}

.dark .react-datepicker__day--keyboard-selected {
  background-color: #4b5563;
}

.react-datepicker__day--outside-month {
  color: #9ca3af;
}

.dark .react-datepicker__day--outside-month {
  color: #6b7280;
}

.react-datepicker__day--disabled {
  color: #9ca3af;
  cursor: default;
}

.dark .react-datepicker__day--disabled {
  color: #6b7280;
}

.react-datepicker__day--disabled:hover {
  background-color: transparent;
}

.dark .react-datepicker__day--disabled:hover {
  background-color: transparent;
}

.react-datepicker__navigation-button {
  cursor: pointer;
  padding: 0.5rem;
}

/*
1. Add backwards compatibility styles for components using `group`.
2. Add backwards compatibility styles for components using `peer`.
*/

.group:hover .group-hover\:text-gray-900 {
  color: #111827 !important;
}

.peer:focus ~ .peer-focus\:text-gray-900 {
  color: #111827 !important;
}

/*
MODIFIERS
Any modifiers like 'hover', 'focus', 'dark' etc that we want to support.
*/

/*
DARK MODE
This section is used to define the styles for dark mode.
*/

.dark {
  color-scheme: dark;
}

/*
BASE
This section is used to define the base styles for the project.
*/

/*
PAGE SETUP
This section is used to define the page setup for the project.
*/

/*
LAYOUT
This section is used to define the layout styles for the project.
*/

/*
DEFAULT FONT
Set the default font for the project.
*/

/*
HEADING STYLES
We add some default heading styles.
*/

h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

/*
BUTTON STYLES
We add some default button styles.
*/

.btn {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-primary:focus-visible {
  --tw-ring-color: #1d4ed8;
}

.dark .btn-primary {
  background-color: #3b82f6;
}

.dark .btn-primary:hover {
  background-color: #2563eb;
}

.dark .btn-primary:focus-visible {
  --tw-ring-color: #2563eb;
}

.btn-secondary {
  background-color: #ffffff;
  color: #374151;
  border-width: 1px;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
}

.btn-secondary:focus-visible {
  --tw-ring-color: #f3f4f6;
}

.dark .btn-secondary {
  background-color: #374151;
  color: #f9fafb;
}

.dark .btn-secondary:hover {
  background-color: #4b5563;
}

.dark .btn-secondary:focus-visible {
  --tw-ring-color: #4b5563;
}

.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-danger:focus-visible {
  --tw-ring-color: #b91c1c;
}

.dark .btn-danger {
  background-color: #ef4444;
}

.dark .btn-danger:hover {
  background-color: #dc2626;
}

.dark .btn-danger:focus-visible {
  --tw-ring-color: #dc2626;
}

/*
FORM STYLES
We add some default form styles.
*/

.form-input,
.form-textarea,
.form-select,
.form-multiselect {
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  border-width: 1px;
  border-color: #9ca3af;
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-multiselect:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #2563eb;
}

.dark .form-input,
.dark .form-textarea,
.dark .form-select,
.dark .form-multiselect {
  border-color: #6b7280;
  background-color: #374151;
}

.dark .form-input:focus,
.dark .form-textarea:focus,
.dark .form-select:focus,
.dark .form-multiselect:focus {
  border-color: #3b82f6;
}

.form-checkbox,
.form-radio {
  border-radius: 0.25rem;
  border-width: 1px;
  border-color: #9ca3af;
  color: #2563eb;
  padding: 0.375rem;
}

.form-checkbox:focus,
.form-radio:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  box-shadow: 0 0 #0000;
}

.dark .form-checkbox,
.dark .form-radio {
  border-color: #6b7280;
  background-color: #374151;
  color: #3b82f6;
}

.dark .form-checkbox:focus,
.dark .form-radio:focus {
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  box-shadow: 0 0 #0000;
}

/*
CARD STYLES
We add some default card styles.
*/

.card {
  border-radius: 0.5rem;
  border-width: 1px;
  background-color: #ffffff;
  padding: 1.5rem;
}

.dark .card {
  background-color: #374151;
}

/*
BADGE STYLES
We add some default badge styles.
*/

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: #fef2f2;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: #991b1b;
}

.dark .badge {
  background-color: #450a0a;
  color: #fecaca;
}

/*
COMPONENTS
This section is used to define the component styles for the project.
*/

/*
CUSTOM STYLES
This section is used to define any custom styles for the project.
*/

/*
 * assets/css/style.css
 * هذا الملف يحتوي على التنسيقات المخصصة الإضافية
 */

/* 1. إعدادات الخط
 * هذا يضمن أن خط "Cairo" هو الخط الافتراضي للمحتوى العربي
 * (يتم تحميل الخط نفسه من جوجل في header.php)
 */
body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* 2. فئات (Classes) مخصصة
 * لإخفاء شريط التمرير (Scrollbar)
 */

/* إخفاء سكرولبار لمتصفحات Webkit (Chrome, Safari) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* إخفاء سكرولبار لـ Firefox و IE/Edge */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}