/* ==============================================
   NOVINLIB SHARED STYLES
   Applied globally across all novinlib components
   via novinlib-layout.component.html
   ============================================== */

/* ==============================================
   SHARED PAGE FRAME
   ============================================== */
.novinlib-app-wrapper,
.novinlib-app-wrapper * {
  box-sizing: border-box;
}

.novinlib-app-wrapper {
  --novinlib-primary: #4274d9;
  --novinlib-primary-dark: #293681;
  --novinlib-page-bg: #f5f7ff;
  --novinlib-text: #1f2937;
  --novinlib-muted: #6b7280;
  direction: rtl;
  min-height: 100vh;
  color: var(--novinlib-text);
  background: var(--novinlib-page-bg);
  font-family: 'Vazir', 'Tahoma', sans-serif;
}

.novinlib-page-host {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: var(--novinlib-page-bg);
}

.novinlib-page-host > * {
  display: block;
  flex: 0 0 auto;
  width: 100%;
}

.novinlib-page {
  direction: rtl;
  color: var(--novinlib-text);
  font-family: 'Vazir', 'Tahoma', sans-serif;
}

.novinlib-page input,
.novinlib-page select,
.novinlib-page textarea,
.novinlib-page button {
  font-family: inherit;
}

.novinlib-page a:focus,
.novinlib-page button:focus,
.novinlib-page input:focus,
.novinlib-page select:focus,
.novinlib-page textarea:focus {
  outline: 0;
}

.novinlib-app-wrapper .btn-primary {
  background-color: var(--novinlib-primary);
  border-color: var(--novinlib-primary);
}

.novinlib-app-wrapper .btn-primary:hover,
.novinlib-app-wrapper .btn-primary:focus {
  background-color: var(--novinlib-primary-dark);
  border-color: var(--novinlib-primary-dark);
}

/* ==============================================
   DESIGN TOKENS
   ==============================================
   Primary Blue:     #4274D9
   Dark Blue:        #293681
   Light Blue:       #95CCDD
   Tint:             #D0E7E6
   Card bg:          white
   Text:             #1f2937, #6b7280, #9ca3af
   ============================================== */

/* ==============================================
   BASE
   ============================================== */
.novinlib-base {
  direction: rtl;
  font-family: 'Vazir', 'Tahoma', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

/* ==============================================
   HERO SECTION (shared component - legacy pages)
   ============================================== */
.hero-section {
  background: linear-gradient(135deg, #293681 0%, #4274D9 40%, #293681 75%, #1a2758 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(66, 116, 217, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(66, 116, 217, 0.1);
}

.hero-icon i {
  font-size: 32px;
  color: white;
}

.hero-content h1 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin: 0;
}

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: 60px;
}

/* ==============================================
   MAIN CONTENT
   ============================================== */
.main-content {
  padding: 30px 0 40px;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

/* ==============================================
   CARD BASE
   ============================================== */
.card-white {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.card-white:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-gradient:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.35);
}

.btn-gradient:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}

.btn-green:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.35);
}

.btn-green:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-outline:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

/* ==============================================
   INPUT FOCUS RING
   ============================================== */
.input-focus-ring {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 16px;
  transition: all 0.2s ease;
}

.input-focus-ring:focus-within {
  border-color: #4274D9;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

/* ==============================================
   SPINNER
   ============================================== */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #4274D9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================
   TRACK CARD (shared: book-request, link-doi, thesis)
   ============================================== */
.track-section {
  padding: 0 0 60px;
}

.track-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.track-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(66, 116, 217, 0.3);
}

.track-icon i {
  font-size: 24px;
  color: white;
}

.track-card h3 {
  font-size: 22px;
  color: #1f2937;
  margin: 0 0 8px;
}

.track-card>.track-header p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.track-header {
  margin-bottom: 28px;
}

/* Track Input */
.track-input-wrapper {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.track-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.2s ease;
}

.track-input-group:focus-within {
  border-color: #4274D9;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.track-input-group i {
  color: #9ca3af;
  font-size: 14px;
  margin-left: 10px;
}

.track-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
  direction: ltr;
  text-align: left;
}

.track-input::placeholder {
  color: #9ca3af;
}

/* Track Result */
.track-result {
  margin-top: 24px;
  text-align: right;
}

.track-result-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.track-status-header {
  text-align: center;
  margin-bottom: 20px;
}

.track-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.detail-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.track-action {
  text-align: center;
  margin-top: 20px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

.status-requested {
  background: #fef3cd;
  color: #92400e;
}

.status-success {
  background: #D0E7E6;
  color: #293681;
}

.status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.status-not-requested {
  background: #f3f4f6;
  color: #6b7280;
}

/* Track No Result */
.track-no-result {
  margin-top: 20px;
}

.no-result-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

.no-result-content i {
  font-size: 18px;
}

/* ==============================================
   STEP CARDS (shared: link-doi, thesis)
   ============================================== */
.how-it-works {
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-label {
  text-align: center;
  margin-bottom: 28px;
}

.section-label span {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  position: relative;
  padding-bottom: 10px;
}

.section-label span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #4274D9, #293681);
  border-radius: 2px;
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}

.step-card {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 28px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(66, 116, 217, 0.12);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4274D9, #293681);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(66, 116, 217, 0.3);
}

.step-icon {
  margin-bottom: 12px;
}

.step-icon i {
  font-size: 28px;
  color: #4274D9;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #d1d5db;
  font-size: 20px;
}

/* ==============================================
   MODE TOGGLE (shared: link-doi, thesis)
   ============================================== */
.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mode-btn:hover {
  border-color: #4274D9;
  color: #4274D9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 116, 217, 0.12);
}

.mode-btn.active {
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(66, 116, 217, 0.3);
}

.mode-btn i {
  font-size: 16px;
}

/* ==============================================
   INPUT CARD (shared: link-doi, thesis)
   ============================================== */
.input-card {
  max-width: 600px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.input-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.input-label i {
  font-size: 20px;
  color: #4274D9;
}

.input-label span {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.input-field-wrapper {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 16px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.input-field-wrapper:focus-within {
  border-color: #4274D9;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.input-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.input-field::placeholder {
  color: #9ca3af;
}

.input-hint {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
  padding-right: 4px;
}

.input-hint i {
  margin-left: 6px;
}

.input-hint strong {
  color: #6b7280;
  font-weight: 600;
}

.btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-full:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.4);
}

.btn-full:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==============================================
   HOME PAGE STYLES
   ============================================== */

/* Hero Search Card */
.hero-search-card {
  max-width: 680px;
  margin: 30px auto 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px 24px;
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 14px;
  padding: 4px 4px 4px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.field-icon {
  color: #9ca3af;
  font-size: 16px;
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.hero-search-input::placeholder {
  color: #9ca3af;
}

.search-btn {
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  flex-shrink: 0;
  width: auto !important;
  background: linear-gradient(135deg, #4274D9, #293681) !important;
}

.hero-search-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  direction: ltr;
}

/* Stats Section */
.stats-section {
  padding: 50px 0;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(66, 116, 217, 0.1);
}

.stat-icon {
  font-size: 28px;
  color: #4274D9;
  margin-bottom: 10px;
}

.stat-count {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Services Section */
.services-section {
  padding: 0 0 50px;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-pill:hover {
  border-color: #4274D9;
  color: #4274D9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 116, 217, 0.12);
}

.service-pill i {
  font-size: 16px;
  color: #4274D9;
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background: #f0f2f5;
  direction: rtl;
  text-align: right;
}

.feature-card {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(66, 116, 217, 0.1);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #D0E7E6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #4274D9;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, #4274D9, #293681);
  color: white;
  transform: scale(1.05);
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 50px 0;
  background: white;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(135deg, #293681, #4274D9);
  padding: 44px 50px;
  border-radius: 24px;
  color: white;
  box-shadow: 0 8px 30px rgba(41, 54, 129, 0.25);
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-text {
  font-size: 15px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

.btn-cta {
  background: white;
  color: #293681;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   BOOK REQUEST STYLES
   ============================================== */

/* Filters Card */
.search-filters-card {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
}

.search-filters-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-actions {
  flex: 0 0 auto;
  min-width: auto;
}

.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.filter-select:focus,
.filter-input:focus {
  border-color: #4274D9;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

/* Search Section */
.search-section {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 8px 30px rgba(66, 116, 217, 0.15);
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 12px;
  padding: 0 16px;
  transition: background 0.2s ease;
}

.search-input-wrapper:focus-within {
  background: white;
}

.search-icon {
  color: #9ca3af;
  font-size: 16px;
  margin-left: 10px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: #9ca3af;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.loader-text {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: #6b7280;
  font-size: 15px;
}

.loader-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4274D9;
  border-radius: 50%;
  margin: 0 2px;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0;
}

@keyframes dotBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Results Header */
.results-header {
  margin-bottom: 20px;
}

.results-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 15px;
}

.results-count i {
  color: #4274D9;
  font-size: 18px;
}

.results-count strong {
  color: #374151;
}

/* Book List */
.book-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card {
  animation: cardFadeIn 0.4s ease forwards;
  animation-delay: var(--card-delay, 0s);
  opacity: 0;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.book-card-inner {
  background: white;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  overflow: hidden;
}

.book-card-inner:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.book-card-content {
  display: flex;
  flex-direction: row;
  height: 120px;
  cursor: pointer;
}

.book-card-inner:hover .book-thumbnail img {
  transform: scale(1.1);
}

.book-thumbnail {
  position: relative;
  width: 85px;
  min-width: 85px;
  height: 120px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}

.book-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e5ec 0%, #c9d0da 50%, #b8c0cc 100%);
  position: absolute;
  top: 0;
  left: 0;
}

.book-thumbnail-placeholder i {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(66, 116, 217, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book-card-inner:hover .book-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  transform: translateY(5px);
  transition: transform 0.25s ease;
}

.book-card-inner:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 22px;
}

.overlay-content span {
  font-size: 11px;
  font-weight: 600;
}

.book-info {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.book-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6b7280;
  font-size: 12px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author i {
  font-size: 11px;
  color: #9ca3af;
}

.book-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #9ca3af;
  font-size: 11px;
}

.meta-item i {
  font-size: 10px;
}

.meta-divider {
  color: #d1d5db;
  font-size: 9px;
  margin: 0 2px;
}

.book-description {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.load-more {
  text-align: center;
  margin-top: 30px;
}

/* Button Styles for Book Request */
.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-reset:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-search:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.4);
}

.btn-search:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: white;
  color: #4274D9;
  border: 2px solid #4274D9;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-load-more:hover:not(:disabled) {
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.3);
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-track:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.35);
}

.btn-track:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 116, 217, 0.35);
}

/* Book Card Actions (request button) */
.book-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 14px 10px;
  background: #fafbfc;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #f3f4f6;
}

.btn-request-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-request-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(66, 116, 217, 0.35);
}

.btn-request-book i {
  font-size: 14px;
}

.no-results {
  padding: 60px 0;
}

.no-results-content {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.no-results-icon {
  width: 80px;
  height: 80px;
  background: #fef3cd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.no-results-icon i {
  font-size: 32px;
  color: #f59e0b;
}

.no-results-content h3 {
  font-size: 20px;
  color: #374151;
  margin: 0 0 10px;
}

.no-results-content p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.initial-state {
  padding: 40px 0;
}

.initial-state-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 50px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.initial-icon {
  width: 90px;
  height: 90px;
  background: #D0E7E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.initial-icon i {
  font-size: 40px;
  color: #4274D9;
}

.initial-state-card h3 {
  font-size: 22px;
  color: #1f2937;
  margin: 0 0 10px;
}

.initial-state-card>p {
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 30px;
}

.initial-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #f9fafb;
  border-radius: 14px;
  min-width: 120px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #f3f4f6;
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-icon i {
  font-size: 18px;
  color: #4274D9;
}

.feature-item span {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* ==============================================
   LINK DOI - Unique Styles
   ============================================== */
.doi-prefix {
  color: #9ca3af;
  font-size: 14px;
  margin-right: 8px;
}

/* ==============================================
   THESIS - Unique Styles
   ============================================== */
.input-icon-suffix {
  color: #9ca3af;
  font-size: 14px;
  margin-right: 8px;
}

/* ==============================================
   PLAGIARISM - Unique Styles
   ============================================== */
.novinlib-plagiarism {
  direction: rtl;
  font-family: 'Vazir', 'Tahoma', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

.submit-result {
  max-width: 800px;
  margin: 0 auto 24px;
}

.alert-custom {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #D0E7E6;
  border: 1px solid #95CCDD;
  color: #293681;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-icon i {
  font-size: 20px;
}

.alert-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.tracking-code-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-label {
  font-size: 13px;
  font-weight: 600;
}

.tracking-code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  direction: ltr;
  display: inline-block;
}

.content-row {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
  align-items: flex-start;
}

.form-column {
  flex: 1;
  min-width: 0;
}

.sidebar-column {
  width: 280px;
  min-width: 280px;
}

.form-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.form-card-header i {
  font-size: 20px;
  color: #4274D9;
}

.form-card-header span {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.required-label::after {
  content: ' *';
  color: #ef4444;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 14px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #4274D9;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.input-icon {
  color: #9ca3af;
  font-size: 14px;
  margin-left: 10px;
}

.custom-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  color: #374151;
  outline: none;
  font-family: inherit;
  text-align: right;
}

.custom-input::placeholder {
  color: #9ca3af;
}

.textarea-wrapper {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 14px;
  transition: all 0.2s ease;
}

.textarea-wrapper:focus-within {
  border-color: #4274D9;
  background: white;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.custom-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  color: #374151;
  outline: none;
  resize: vertical;
  font-family: inherit;
  min-height: 100px;
  text-align: right;
  direction: rtl;
}

.custom-textarea::placeholder {
  color: #9ca3af;
}

.file-upload-zone {
  position: relative;
}

.file-input-hidden {
  display: none;
}

.file-drop-area {
  display: block;
  padding: 24px;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.file-drop-area:hover {
  border-color: #4274D9;
  background: #D0E7E6;
}

.file-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.file-drop-content i {
  font-size: 32px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.file-drop-content span {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.file-drop-content small {
  font-size: 12px;
  color: #9ca3af;
}

.file-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.file-selected i {
  font-size: 20px;
  color: #4274D9;
}

.file-name {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.btn-remove-file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 14px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-remove-file:hover {
  background: #fecaca;
}

.form-actions {
  margin-top: 24px;
}

.rules-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.rules-header i {
  font-size: 20px;
  color: #f59e0b;
}

.rules-header span {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li i {
  color: #4274D9;
  font-size: 14px;
  margin-top: 2px;
}

.requests-section {
  max-width: 1000px;
  margin: 0 auto 40px;
}

.section-header {
  margin-bottom: 20px;
}

.section-line {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 16px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrapper i {
  font-size: 20px;
  color: #4274D9;
}

.section-title-wrapper h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: white;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.custom-select-sm {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 120px;
}

.custom-select-sm:focus {
  border-color: #4274D9;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.filter-search-item {
  flex: 1;
  min-width: 200px;
}

.search-inline {
  display: flex;
  gap: 4px;
}

.custom-input-sm {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  direction: ltr;
}

.custom-input-sm:focus {
  border-color: #4274D9;
  box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.btn-search-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-sm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 116, 217, 0.3);
}

.btn-search-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loading-state-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
  color: #6b7280;
  font-size: 14px;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #4274D9;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.table-empty {
  text-align: center;
  padding: 60px 0;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.empty-icon i {
  font-size: 24px;
  color: #9ca3af;
}

.table-empty p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.table-wrapper {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table thead {
  background: #f9fafb;
}

.custom-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  border-bottom: 2px solid #e5e7eb;
}

.custom-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: background 0.2s ease;
}

.custom-table tbody tr:hover {
  background: #f9fafb;
}

.custom-table tbody tr:last-child td {
  border-bottom: none;
}

.cell-id {
  font-family: monospace;
  font-size: 12px !important;
  color: #4274D9 !important;
  direction: ltr;
}

.cell-title {
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-date {
  font-size: 12px !important;
  color: #6b7280 !important;
  direction: ltr;
}

.cell-comment {
  font-size: 12px !important;
  color: #6b7280 !important;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge-sm.status-requested {
  background: #fef3cd;
  color: #92400e;
}

.status-badge-sm.status-success {
  background: #D0E7E6;
  color: #293681;
}

.status-badge-sm.status-fail {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge-sm.status-not-requested {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-download-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-download-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 116, 217, 0.3);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
  border-color: #4274D9;
  color: #4274D9;
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.guest-notice {
  max-width: 600px;
  margin: 0 auto 24px;
}

.alert-info-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: #D0E7E6;
  border: 1px solid #95CCDD;
  border-radius: 12px;
  color: #293681;
  font-size: 14px;
}

.alert-info-custom i {
  font-size: 18px;
}

.alert-info-custom a {
  color: #293681;
  font-weight: 700;
  text-decoration: underline;
}

.track-result-section {
  max-width: 600px;
  margin: 0 auto 24px;
}

.track-card-compact {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  animation: slideUp 0.3s ease;
}

.track-card-compact .track-status-header {
  text-align: center;
  margin-bottom: 16px;
}

.track-card-compact .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

.track-card-compact .track-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-card-compact .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.track-card-compact .detail-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.track-card-compact .detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.track-card-compact .track-action {
  text-align: center;
  margin-top: 16px;
}

/* ==============================================
   RESPONSIVE (shared)
   ============================================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-shape svg {
    height: 40px;
  }

  .track-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .track-input-wrapper {
    flex-direction: column;
  }

  .btn-green {
    justify-content: center;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-card {
    max-width: 280px;
    width: 100%;
  }

  .step-arrow {
    padding: 8px 0;
    transform: rotate(90deg);
  }

  .input-card {
    padding: 24px 20px;
    margin: 0 16px 40px;
  }

  /* Home page responsive */
  .hero-search-card {
    margin: 20px 16px 0;
    padding: 16px;
  }

  .hero-search-field {
    flex-direction: column;
    padding: 12px;
  }

  .search-btn {
    width: 100% !important;
    justify-content: center;
  }

  .stat-count {
    font-size: 24px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }

  .services-row {
    padding: 0 16px;
  }

  .service-pill {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-icon {
    width: 60px;
    height: 60px;
  }

  .hero-icon i {
    font-size: 24px;
  }

  .input-card {
    padding: 20px 16px;
  }

  .stat-count {
    font-size: 20px;
  }

  .cta-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cta-title {
    font-size: 22px;
  }
}

/* ==============================================
   REDESIGNED HERO SECTION (Service-based landing)
   ============================================== */

/* Hero Container */
.novinlib-hero-new {
  position: relative;
  background: linear-gradient(135deg, #293681 0%, #4274D9 30%, #293681 70%, #1a2758 100%);
  padding: 50px 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-bg-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(66, 116, 217, 0.15) 0%, rgba(66, 116, 217, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Announcement Badge */
.hero-announcement-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(66, 116, 217, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #95CCDD;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(149, 204, 221, 0.6);
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

.badge-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-subtitle {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

/* Services Row */
.hero-services-row {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.services-scroll-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  direction: rtl;
}

.service-card-wrapper {
  flex: 0 0 auto;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  min-width: 110px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.service-card-wrapper:hover .service-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background: #D0E7E6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card-icon i {
  font-size: 20px;
  color: #4274D9;
  transition: all 0.3s ease;
}

.service-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  text-align: center;
}

/* Highlighted (Active) Service Card */
.service-card-wrapper.active-card {
  transform: translateY(-8px);
}

.service-card-wrapper.active-card .service-card-inner {
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  box-shadow: 0 8px 30px rgba(66, 116, 217, 0.3);
  min-width: 125px;
  padding: 22px 20px;
}

.service-card-wrapper.active-card .service-card-icon {
  background: rgba(255, 255, 255, 0.25);
  width: 50px;
  height: 50px;
}

.service-card-wrapper.active-card .service-card-icon i {
  color: white;
  font-size: 24px;
}

.service-card-wrapper.active-card .service-card-label {
  color: white;
  font-size: 13px;
}

/* Chrome Extension Hint */
.chrome-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.chrome-hint:hover {
  opacity: 1;
}

.chrome-hint i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.chrome-hint span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* Search Section */
.hero-search-new {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.search-input-wrapper-new {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 60px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  direction: rtl;
}

.search-input-wrapper-new:focus-within {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(66, 116, 217, 0.2);
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.input-icon-right {
  color: #9ca3af;
  font-size: 16px;
  flex-shrink: 0;
}

.search-input-new {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: #374151;
  outline: none;
  font-family: inherit;
  text-align: right;
}

.search-input-new::placeholder {
  color: #9ca3af;
}

.btn-search-help {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-search-help:hover {
  background: #e5e7eb;
  color: #6b7280;
}

.btn-search-help i {
  font-size: 16px;
}

.btn-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  background: linear-gradient(135deg, #4274D9 0%, #293681 100%);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(66, 116, 217, 0.3);
}

.btn-search-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(66, 116, 217, 0.4);
}

.btn-search-submit:active {
  transform: scale(0.95);
}

.btn-search-submit i {
  font-size: 20px;
}

/* Wave Divider */
.hero-wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave-divider svg {
  width: 100%;
  height: 60px;
}

/* ==============================================
   REDESIGNED HERO - RESPONSIVE
   ============================================== */
.user-guide-content {}

@media (max-width: 992px) {
  .novinlib-hero-new {
    padding: 40px 0 70px;
    min-height: auto;
  }

  .service-card-inner {
    min-width: 100px;
    padding: 14px 12px;
  }

  .service-card-wrapper.active-card .service-card-inner {
    min-width: 115px;
    padding: 18px 16px;
  }
}

@media (max-width: 768px) {
  .novinlib-hero-new {
    padding: 35px 0 60px;
  }

  .hero-inner {
    gap: 22px;
  }

  .badge-pill {
    padding: 8px 20px;
  }

  .badge-text {
    font-size: 13px;
  }

  .services-scroll-wrapper {
    gap: 10px;
    justify-content: center;
  }

  .service-card-wrapper {
    flex: 0 0 auto;
  }

  .service-card-inner {
    min-width: 88px;
    padding: 12px 10px;
    border-radius: 12px;
    gap: 6px;
  }

  .service-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .service-card-icon i {
    font-size: 16px;
  }

  .service-card-label {
    font-size: 11px;
  }

  .service-card-wrapper.active-card .service-card-inner {
    min-width: 100px;
    padding: 16px 14px;
  }

  .service-card-wrapper.active-card .service-card-icon {
    width: 42px;
    height: 42px;
  }

  .service-card-wrapper.active-card .service-card-icon i {
    font-size: 20px;
  }

  .service-card-wrapper.active-card .service-card-label {
    font-size: 12px;
  }

  .search-input-wrapper-new {
    border-radius: 50px;
    padding: 5px 5px 5px 16px;
  }

  .search-input-new {
    font-size: 14px;
    padding: 10px 0;
  }

  .btn-search-submit {
    width: 46px;
    height: 46px;
  }

  .btn-search-submit i {
    font-size: 18px;
  }

  .chrome-hint {
    display: none;
  }

  .hero-wave-divider svg {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .novinlib-hero-new {
    padding: 28px 0 50px;
  }

  .hero-inner {
    gap: 18px;
  }

  .badge-pill {
    padding: 6px 16px;
    gap: 6px;
  }

  .badge-text {
    font-size: 12px;
  }

  .badge-subtitle {
    font-size: 13px;
  }

  .services-scroll-wrapper {
    gap: 8px;
  }

  .service-card-inner {
    min-width: 76px;
    padding: 10px 8px;
  }

  .service-card-icon {
    width: 32px;
    height: 32px;
  }

  .service-card-icon i {
    font-size: 14px;
  }

  .service-card-label {
    font-size: 10px;
  }

  .service-card-wrapper.active-card .service-card-inner {
    min-width: 90px;
    padding: 14px 12px;
  }

  .service-card-wrapper.active-card .service-card-icon {
    width: 38px;
    height: 38px;
  }

  .service-card-wrapper.active-card .service-card-icon i {
    font-size: 18px;
  }

  .service-card-wrapper.active-card .service-card-label {
    font-size: 11px;
  }

  .search-input-wrapper-new {
    padding: 4px 4px 4px 12px;
  }

  .search-input-new {
    font-size: 13px;
    padding: 8px 0;
  }

  .btn-search-submit {
    width: 42px;
    height: 42px;
  }

  .btn-search-submit i {
    font-size: 16px;
  }

  .input-icon-right {
    display: none;
  }
}

/* Shared compact spacing for every redesigned search page. */
.novinlib-hero-new {
  padding: 26px 0 28px;
  margin-bottom: 0;
}

.novinlib-hero-new .hero-inner {
  gap: 16px;
}

.novinlib-page > .main-content {
  padding-top: 0;
  margin-top: 0;
}

.novinlib-page > .article-search-results {
  margin-top: 0;
  padding-top: 20px;
}

@media (max-width: 768px) {
  .novinlib-hero-new {
    padding: 24px 0 26px;
  }
}

@media (max-width: 480px) {
  .novinlib-hero-new {
    padding: 22px 0 24px;
  }
}
/* Mobile header navigation: keep the primary links available without
   changing the desktop header layout. */
@media (max-width: 767.98px) {
  .novinlib-header .header-menu {
    order: 3;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2;
    flex: 0 0 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    overflow: visible;
  }

  .novinlib-header .header-menu app-top-menu,
  .novinlib-header .header-menu .menu-n-cn,
  .novinlib-header .header-menu .menu-n-cn > .navbar,
  .novinlib-header .header-menu .collapse.navbar-collapse {
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    transform: none !important;
    overflow: visible !important;
  }

  .novinlib-header .header-menu .bsnav-mobile {
    display: none !important;
  }

  .novinlib-header .header-menu .navbar-mobile {
    display: flex !important;
    width: 100%;
    height: auto !important;
    min-height: 28px;
    justify-content: center;
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: static !important;
    transform: none !important;
  }

  .novinlib-header .header-menu .navbar-mobile > .nav-item {
    flex: 0 0 auto;
  }

  .novinlib-header .header-menu .navbar-mobile > .nav-item > .nav-link {
    display: block;
    padding: 4px 7px;
    color: #1a237e;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .novinlib-header .header-menu .navbar-mobile > .nav-item > ul,
  .novinlib-header .header-menu .navbar-mobile > .nav-item > .navbar-nav {
    display: none !important;
  }

  .novinlib-header .header-menu .mobile-menu-open .navbar-mobile {
    position: absolute !important;
    top: 42px !important;
    right: 0 !important;
    left: auto !important;
    width: 210px !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    background: #fff;
    border: 1px solid #e5e8f2;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20, 35, 85, 0.18);
    z-index: 1100;
  }

  .novinlib-header.sticky .header-menu .mobile-menu-toggle {
    right: 8px !important;
  }

  .bsnav-sticky.bsnav-sticky-slide.sticked.in {
    box-shadow: none !important;
  }

  body > .bsnav-mobile,
  .bsnav-mobile {
    display: none !important;
  }
}
