/* === static/css/globals.css === */

/* ─── CSS Reset ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

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

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

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: 'GeistMono', ui-monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

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

sub { bottom: -0.25em; }
sup { top: -0.5em; }

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

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

:-moz-focusring {
  outline: auto;
}

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

progress {
  vertical-align: baseline;
}

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

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

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

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote, dl, dd, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

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

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

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

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --background: #ffffff;
  --foreground: #171717;

  --font-sans: 'Geist', Arial, Helvetica, sans-serif;
  --font-mono: 'GeistMono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

/* ─── Base Styles ───────────────────────────────── */
body {
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Custom Utilities (از globals.css اصلی) ────── */
.text-balance {
  text-wrap: balance;
}

.x {
  display: grid;
}

/* اسکرول‌بار برای سایدبار — جهت RTL */
.sidebar-scroll {
  direction: rtl;
}

.sidebar-scroll > * {
  direction: ltr;
}

/* ─── Antialiased (جایگزین کلاس Tailwind) ──────── */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === در globals.css اضافه کن === */

.logout-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.logout-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}

.logout-icon-wrapper {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  border-radius: 9999px;
}

.logout-icon {
  font-size: 1.75rem;
  color: #dc2626;
}

.logout-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.logout-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
}

/* Spinner */
.logout-spinner {
  margin-top: 0.5rem;
}

.spinner-ring {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top-color: #dc2626;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

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

/* در globals.css */
.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

/*!* === static/css/globals.css (نسخه تمیز) === *!*/
/*!* ❌ بخش CSS Reset کامل حذف شد — Bootstrap نورمالایز خودش رو داره *!*/

/*!* ─── فونت‌ها ────────────────────────────────────── *!*/
/*@font-face {*/
/*  font-family: 'Geist';*/
/*  src: url('../fonts/GeistVF.woff') format('woff');*/
/*  font-weight: 100 900;*/
/*  font-display: swap;*/
/*}*/
/*@font-face {*/
/*  font-family: 'GeistMono';*/
/*  src: url('../fonts/GeistMonoVF.woff') format('woff');*/
/*  font-weight: 100 900;*/
/*  font-display: swap;*/
/*}*/

/*!* ─── CSS Variables ─────────────────────────────── *!*/
/*:root {*/
/*  --pcb-font-sans: 'Geist', system-ui, Arial, sans-serif;*/
/*  --pcb-font-mono: 'GeistMono', monospace;*/
/*  --pcb-bg:        #ffffff;*/
/*  --pcb-fg:        #171717;*/
/*}*/

/*!* ─── Base ───────────────────────────────────────── *!*/
/*body {*/
/*  font-family: var(--pcb-font-sans);*/
/*}*/

/*!* ─── Utilities (prefix pcb- تا با Bootstrap تداخل نداشته باشه) *!*/
/*.pcb-text-balance { text-wrap: balance; }*/

/*.sidebar-scroll           { direction: rtl; }*/
/*.sidebar-scroll > *       { direction: ltr; }*/