/* GOG — Reusable Components */

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--sp-6);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.navbar__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold-md);
  color: var(--bg-primary);
}

.btn--outline {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

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

.btn--success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn--success:hover { filter: brightness(1.1); }

.btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
}

.btn--full { width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
}

.card--elevated {
  background: var(--bg-elevated);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-primary);
  box-shadow: 0 2px 0 var(--gold-primary);
  background: rgba(26, 26, 26, 0.9);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B7522' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Input group with icon */
.input-group {
  position: relative;
}

.input-group__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim);
  pointer-events: none;
}

.input-group .form-input {
  padding-left: 42px;
}

/* File upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-input);
  padding: var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.file-upload:hover {
  border-color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.04);
}

.file-upload input[type="file"] { display: none; }

.file-upload__icon {
  color: var(--gold-dim);
  margin-bottom: var(--sp-3);
}

.file-upload__text { color: var(--text-secondary); font-size: 0.9rem; }
.file-upload__hint { color: var(--gold-dim); font-size: 0.8rem; margin-top: var(--sp-1); }

/* ═══════════════════════════════════════
   BADGES
   ═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge--gk  { background: rgba(123, 45, 139, 0.2); color: #c084fc; border: 1px solid rgba(123, 45, 139, 0.4); }
.badge--def { background: rgba(26, 82, 118, 0.2);  color: #60a5fa; border: 1px solid rgba(26, 82, 118, 0.4); }
.badge--mid { background: rgba(30, 132, 73, 0.2);  color: #4ade80; border: 1px solid rgba(30, 132, 73, 0.4); }
.badge--fwd { background: rgba(212, 175, 55, 0.2); color: var(--gold-light); border: 1px solid rgba(212, 175, 55, 0.4); }

.badge--verified {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge--pending  { background: rgba(255,165,0,0.15); color: #ffa500; border: 1px solid rgba(255,165,0,0.3); }
.badge--rejected { background: rgba(192,57,43,0.15); color: #e74c3c; border: 1px solid rgba(192,57,43,0.3); }
.badge--success  { background: rgba(30,132,73,0.15);  color: #27ae60; border: 1px solid rgba(30,132,73,0.3); }

/* ═══════════════════════════════════════
   SKILL BARS
   ═══════════════════════════════════════ */
.skill-bar {
  margin-bottom: var(--sp-4);
}

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.skill-bar__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.skill-bar__value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.skill-bar__track {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-primary));
  border-radius: var(--radius-full);
  animation: barFill 1s ease both;
  transition: width var(--transition-slow);
}

/* ═══════════════════════════════════════
   PLAYER CARD
   ═══════════════════════════════════════ */
.player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  animation: fadeSlideUp 0.4s ease both;
}

.player-card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.player-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-elevated);
}

.player-card__photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-size: 3rem;
}

.player-card__body {
  padding: var(--sp-4);
}

.player-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.player-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.player-card__stat {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════
   STATS OVERVIEW (Admin/Dashboard)
   ═══════════════════════════════════════ */
.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   TABLE
   ═══════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  background: var(--bg-elevated);
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════
   TABS
   ═══════════════════════════════════════ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-card);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated), 0 0 40px rgba(212, 175, 55, 0.1);
  animation: fadeSlideUp 0.25s ease;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.modal__close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-btn);
  transition: color var(--transition-fast), background var(--transition-fast);
  font-size: 1.2rem;
  line-height: 1;
}

.modal__close:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.modal__body { padding: var(--sp-6); }

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--gold-primary);
  box-shadow: var(--shadow-elevated);
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: fadeSlideUp 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.toast--success { border-left-color: var(--success); }
.toast--error   { border-left-color: var(--danger); }
.toast--info    { border-left-color: var(--gold-primary); }

.toast__icon { font-size: 1.1rem; flex-shrink: 0; }
.toast__msg  { flex: 1; }

.toast.hide {
  animation: fadeIn 0.3s ease reverse;
  opacity: 0;
}

/* ═══════════════════════════════════════
   LOADER
   ═══════════════════════════════════════ */
.loader {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

/* ═══════════════════════════════════════
   AVATAR
   ═══════════════════════════════════════ */
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dim);
}

.avatar--lg { width: 96px; height: 96px; border-width: 3px; }
.avatar--xl { width: 140px; height: 140px; border-width: 3px; }

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--gold-dim);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════
   SIDEBAR LAYOUT
   ═══════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: var(--sp-8) var(--sp-4);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar__profile {
  text-align: center;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-6);
}

.sidebar__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: var(--sp-3);
}

.sidebar__role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}

.sidebar__nav { display: flex; flex-direction: column; gap: var(--sp-1); }

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-3);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar__link:hover,
.sidebar__link.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
}

.sidebar__link.active {
  border-left: 2px solid var(--gold-primary);
}

.dashboard-main {
  padding: var(--sp-8);
  overflow: auto;
}

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .dashboard-main { padding: var(--sp-4); }
}

/* ═══════════════════════════════════════
   PROGRESS RING
   ═══════════════════════════════════════ */
.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring__bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.progress-ring__fill {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

.progress-ring__label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-primary);
}

/* ═══════════════════════════════════════
   SEARCH / FILTER BAR
   ═══════════════════════════════════════ */
.filter-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: var(--sp-6);
}

.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ═══════════════════════════════════════
   REQUEST CARD
   ═══════════════════════════════════════ */
.request-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-6);
  transition: border-color var(--transition-fast);
}

.request-card:hover { border-color: var(--gold-dim); }

.request-card__logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-btn);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.request-card__info { flex: 1; min-width: 0; }
.request-card__name { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.request-card__date { font-size: 0.8rem; color: var(--text-secondary); }
.request-card__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* ═══════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
}

.empty-state__icon {
  font-size: 3rem;
  color: var(--gold-dim);
  margin-bottom: var(--sp-4);
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.empty-state__text {
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.pagination__btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.pagination__btn:hover,
.pagination__btn.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212,175,55,0.1);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-24);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   RTL OVERRIDES (Arabic)
   ═══════════════════════════════════════ */
[dir="rtl"] .form-select {
  background-position: left 12px center;
  padding-right: 16px;
  padding-left: 40px;
}

[dir="rtl"] .input-group__icon {
  left: auto;
  right: 14px;
}

[dir="rtl"] .input-group .form-input {
  padding-left: 16px;
  padding-right: 42px;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: var(--sp-6);
}

[dir="rtl"] .toast {
  border-left: none;
  border-right: 3px solid var(--gold-primary);
}

[dir="rtl"] .toast--success { border-right-color: var(--success); }
[dir="rtl"] .toast--error   { border-right-color: var(--danger); }
[dir="rtl"] .toast--info    { border-right-color: var(--gold-primary); }

[dir="rtl"] .sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
}

[dir="rtl"] .sidebar__link.active {
  border-left: none;
  border-right: 2px solid var(--gold-primary);
}

[dir="rtl"] .table th,
[dir="rtl"] .table td {
  text-align: right;
}

[dir="rtl"] .navbar__link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .modal__footer {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  [dir="rtl"] .sidebar {
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
}
