:root {
  --sportex-blue: #0EA5E9;
  --sportex-blue-dark: #0284C7;
  --sportex-blue-light: #38BDF8;
  --sportex-green: #7CB342;
  --sportex-green-light: #9CCC65;
  --sportex-bg-dark: #0A0E14;
  --sportex-surface: #131920;
  --sportex-surface-light: #1E293B;
  --sportex-text: #F8FAFC;
  --sportex-text-muted: #94A3B8;
  --sportex-border: #334155;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}



.sportex-404 {
  position: relative;
  margin: 2rem auto;
  padding: 3.5rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 60%),
    var(--sportex-bg-dark);
  color: var(--sportex-text);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.sportex-404__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(124, 179, 66, 0.2), transparent 35%);
  z-index: 0;
}

.sportex-404__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.sportex-404__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--sportex-blue-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
  margin-bottom: 1rem;
}

.sportex-404 h1 {
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.sportex-404 p {
  color: var(--sportex-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.sportex-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sportex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sportex-btn--primary {
  background: linear-gradient(135deg, var(--sportex-blue) 0%, var(--sportex-green) 100%);
  color: var(--sportex-text);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.35);
}

.sportex-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(14, 165, 233, 0.45);
}

.sportex-btn--ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--sportex-text);
  background: transparent;
  backdrop-filter: blur(8px);
}

.sportex-btn--ghost:hover {
  border-color: var(--sportex-blue);
  color: var(--sportex-blue-light);
}

.sportex-404__support a {
  color: var(--sportex-blue-light);
  font-weight: 600;
  text-decoration: none;
}

.sportex-404__support a:hover {
  text-decoration: underline;
}

.sportex-404__illustration {
  position: relative;
  z-index: 1;
  justify-self: center;
  background: var(--sportex-surface);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.sportex-404__badge {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--sportex-blue-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .sportex-404 {
    padding: 2.5rem;
  }

  .sportex-404__actions {
    flex-direction: column;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sportex-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--sportex-border);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sportex-text-muted);
}

[dir="rtl"] .text-start {
  text-align: right !important;
}

/* ============================================
   Page Title with Gradient
   ============================================ */
.page-title-gradient {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--sportex-blue) 0%, var(--sportex-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.page-title-gradient::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--sportex-blue) 0%, var(--sportex-green) 100%);
  border-radius: 2px;
  margin-top: 0.75rem;
}

[dir="rtl"] .page-title-gradient::after {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .bi-chevron-left::before {
  content: "\f285" !important;
}

[dir="rtl"] .bi-chevron-right::before {
  content: "\f284" !important;
}

.form-control:focus {
  color: #fff
}

* Document Cards Styling */ .documents-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--sportex-surface, #1a1f2e);
  border: 1px solid var(--sportex-border, #2d3748);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.document-card:hover {
  border-color: var(--sportex-blue, #0EA5E9);
  transform: translateY(-2px);
}

.document-card.expired {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}

.document-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sportex-surface-light, #2d3748);
  border-radius: 8px;
  color: var(--sportex-blue, #0EA5E9);
}

.document-card.expired .document-icon {
  color: #EF4444;
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sportex-text, #F8FAFC);
}

.document-filename {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: var(--sportex-text-muted, #94A3B8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-expiry,
.document-uploaded {
  margin: 0.25rem 0 0 0;
  font-size: 0.8125rem;
  color: var(--sportex-text-muted, #94A3B8);
}

.document-expiry .text-danger {
  color: #EF4444;
  font-weight: 500;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.document-actions .btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sportex-surface-light, #2d3748);
  border: 1px solid var(--sportex-border, #334155);
  border-radius: 8px;
  color: var(--sportex-text-muted, #94A3B8);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.document-actions .btn-icon:hover {
  background: var(--sportex-blue, #0EA5E9);
  border-color: var(--sportex-blue, #0EA5E9);
  color: white;
}

/* Document Item in Edit Form */
.document-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.document-item+.document-item {
  margin-top: 1rem;
}

/* Document Preview */
.document-preview {
  margin-top: 1rem;
}

.document-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--sportex-surface, #1a1f2e);
  border: 1px solid var(--sportex-border, #2d3748);
  border-radius: 8px;
}

.document-preview-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sportex-surface-light, #2d3748);
  border-radius: 8px;
  color: var(--sportex-blue, #0EA5E9);
}

.document-preview-info {
  flex: 1;
  min-width: 0;
}

.document-preview-name {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sportex-text, #F8FAFC);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-preview-size {
  margin: 0;
  font-size: 0.75rem;
  color: var(--sportex-text-muted, #94A3B8);
}

.remove-document-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--sportex-border, #334155);
  border-radius: 6px;
  color: var(--sportex-text-muted, #94A3B8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-document-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: white;
}

/* Document Cards Grid */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.document-card-compact {
  padding: 1.5rem;
  background: var(--sportex-surface, #1a1f2e);
  border: 1px solid var(--sportex-border, #2d3748);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.document-card-compact:hover {
  border-color: var(--sportex-blue, #0EA5E9);
}

.document-card-compact.expired {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}

.document-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sportex-border, #2d3748);
}

.document-card-header .document-icon {
  background: var(--sportex-surface-light, #2d3748);
}

.document-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sportex-text, #F8FAFC);
}

.document-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.document-actions-inline {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-link {
  font-size: 0.875rem;
  color: var(--sportex-blue, #0EA5E9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: var(--sportex-blue-light, #38BDF8);
  text-decoration: underline;
}

.empty-placeholder-small {
  margin: 0;
  font-size: 0.875rem;
  color: var(--sportex-text-muted, #94A3B8);
  font-style: italic;
}

/* Global Upload Area Styles */
.upload-area {
  position: relative;
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: var(--transition-all);
  cursor: pointer;
  background: var(--bg-input);
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--bg-input-focus);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.border-primary {
    --bs-border-opacity: 1;
    border-color: var(--sportex-blue-light) !important; 
}
.text-primary{
  color: var(--sportex-blue-light) !important;
}