
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Royal blue palette based on logo */
  --primary-color: #283593;
  --primary-hover: #1a237e;
  --primary-light: #e8eaf6;
  --secondary-color: #0288d1;
  --accent-color: #ffc107;
  --green-color: #2e7d32;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --border-color: #ddd;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition-regular: all 0.3s ease;

  /* Light theme specific variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-gradient-start: #e8eaf6;
  --bg-gradient-end: #c5cae9;
  --card-bg: #ffffff;
  --card-border: #ddd;
  --input-bg: #ffffff;
  --input-border: #ddd;
  --table-bg: #ffffff;
  --table-stripe: #f8f9fa;
  --footer-bg: rgba(40, 53, 147, 0.95);
  --header-bg: linear-gradient(135deg, #ffffff 0%, #fafbff 50%, #e8eaf6 100%);
}

/* Dark theme variables */
[data-theme="dark"] {
  --primary-color: #5c6bc0;
  --primary-hover: #3f51b5;
  --primary-light: #1a1f3a;
  --secondary-color: #29b6f6;
  --accent-color: #ffca28;
  --green-color: #66bb6a;
  --text-color: #e0e0e0;
  --light-bg: #1e1e1e;
  --white: #2d2d2d;
  --border-color: #404040;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);

  /* Dark theme specific variables */
  --bg-primary: #1e1e1e;
  --bg-secondary: #2d2d2d;
  --bg-gradient-start: #1a1a1a;
  --bg-gradient-end: #2d2d2d;
  --card-bg: #2d2d2d;
  --card-border: #404040;
  --input-bg: #2d2d2d;
  --input-border: #404040;
  --table-bg: #2d2d2d;
  --table-stripe: #333333;
  --footer-bg: rgba(30, 30, 30, 0.95);
  --header-bg: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 50%, #1a1a1a 100%);
}

/* Force dark theme styles with higher specificity */
html[data-theme="dark"] body,
body[data-theme="dark"],
.dark-theme body {
  background: linear-gradient(to bottom, #1a1a1a, #2d2d2d) !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .search-card,
html[data-theme="dark"] .results-card,
body[data-theme="dark"] .search-card,
body[data-theme="dark"] .results-card,
.dark-theme .search-card,
.dark-theme .results-card {
  background: #2d2d2d !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .site-header,
body[data-theme="dark"] .site-header,
.dark-theme .site-header {
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 50%, #1a1a1a 100%) !important;
}

html[data-theme="dark"] .site-footer,
body[data-theme="dark"] .site-footer,
.dark-theme .site-footer {
  background: rgba(30, 30, 30, 0.95) !important;
}

html[data-theme="dark"] .card-content,
body[data-theme="dark"] .card-content,
.dark-theme .card-content {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .form-input,
body[data-theme="dark"] .form-input,
.dark-theme .form-input {
  background: #2d2d2d !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .btn,
body[data-theme="dark"] .btn,
.dark-theme .btn {
  background: #5c6bc0 !important;
  color: #ffffff !important;
  border-color: #5c6bc0 !important;
}

html[data-theme="dark"] .tabs-container,
body[data-theme="dark"] .tabs-container,
.dark-theme .tabs-container {
  background: #2d2d2d !important;
}

html[data-theme="dark"] .tab-btn,
body[data-theme="dark"] .tab-btn,
.dark-theme .tab-btn {
  background: #404040 !important;
  color: #e0e0e0 !important;
  border-color: #404040 !important;
}

html[data-theme="dark"] .tab-btn.active,
body[data-theme="dark"] .tab-btn.active,
.dark-theme .tab-btn.active {
  background: #5c6bc0 !important;
  color: #ffffff !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Noto Naskh Arabic', Arial, sans-serif;
  background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  overflow: visible;
}

.exam-results-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* This ensures the content takes at least the full viewport height */
}

.site-header {
  background: var(--header-bg);
  padding: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(40, 53, 147, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(40, 53, 147, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}



.logo {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(40, 53, 147, 0.15));
  border-radius: 12px;
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(135deg, rgba(40, 53, 147, 0.1) 0%, rgba(2, 136, 209, 0.1) 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.logo:hover {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(40, 53, 147, 0.25));
}

.logo:hover::before {
  opacity: 1;
}

/* Enhanced Header Content Styling */
.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 2;
}

.site-title {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 70%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(40, 53, 147, 0.15);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.1;
  text-align: center;
}

.site-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 70%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  border-radius: 8px;
  filter: blur(20px);
}

.site-title:hover::before {
  opacity: 0.1;
}

.site-title:hover {
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 4px 8px rgba(40, 53, 147, 0.25);
}

.site-subtitle {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 3px rgba(2, 136, 209, 0.15);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
  line-height: 1.3;
  text-align: center;
}

.site-subtitle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.site-subtitle:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
  opacity: 1;
  text-shadow: 0 2px 4px rgba(40, 53, 147, 0.2);
}

.site-subtitle:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.tabs-container {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.tabs-list {
  display: flex;
  list-style-type: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--primary-color);
}

.tabs-list::-webkit-scrollbar {
  height: 4px;
}

.tabs-list::-webkit-scrollbar-track {
  background: var(--primary-color);
}

.tabs-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
}

.tab-btn {
  background-color: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  transition: var(--transition-regular);
  position: relative;
  overflow: hidden;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background-color: var(--accent-color);
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn:hover::after {
  transform: translateX(-50%) scaleX(0.5);
}

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

.tab-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

.main-content {
  flex: 1;
  padding: 1.25rem 0;
  position: relative;
  overflow: visible;
}

.tab-content {
  display: none;
  position: relative;
  overflow: visible;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
  position: relative;
  overflow: visible;
}

.placeholder-content {
  background: var(--white);
  padding: 3rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: var(--text-color);
  font-size: 1.2rem;
}

.search-card,
.results-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
  overflow: visible;
  transition: var(--transition-regular);
  border: 1px solid var(--card-border);
}

.search-card:hover,
.results-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(to right, rgba(40, 53, 147, 0.1), rgba(40, 53, 147, 0.05));
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Professional Header with Year Filter */
.card-header-with-filter {
  background: linear-gradient(135deg, rgba(40, 53, 147, 0.08) 0%, rgba(40, 53, 147, 0.03) 100%);
  padding: 1rem 1.5rem;
  border-bottom: 2px solid rgba(40, 53, 147, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.card-header-with-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    rgba(40, 53, 147, 0.02) 0%,
    rgba(40, 53, 147, 0.01) 50%,
    rgba(40, 53, 147, 0.02) 100%);
  pointer-events: none;
}

.header-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.header-year-filter,
.header-exam-type-filter {
  position: relative;
  flex-shrink: 0;
}

.header-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 2;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(40, 53, 147, 0.1);
}

/* Header Year Select Styles */
.year-select-wrapper-header {
  position: relative;
  min-width: 140px;
}

.year-select-container-header {
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
  border: 1.5px solid rgba(40, 53, 147, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(40, 53, 147, 0.08);
  height: 38px;
}

.year-select-container-header:hover {
  border-color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(40, 53, 147, 0.15);
  transform: translateY(-1px);
}

.year-select-container-header:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.1), 0 4px 16px rgba(40, 53, 147, 0.2);
  transform: translateY(-1px);
}

.year-select-header {
  width: 100%;
  height: 100%;
  padding: 0 2.25rem 0 0.875rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 2;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.year-select-header:focus {
  outline: none;
}

.year-select-icon-header {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.year-select-header:focus + .year-select-icon-header {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-hover);
  opacity: 1;
}

.year-select-container-header:hover .year-select-icon-header {
  color: var(--primary-hover);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.year-select-header option {
  padding: 0.5rem 0.875rem;
  background-color: var(--white);
  color: var(--text-color);
  border: none;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
  min-height: 2rem;
  transition: all 0.2s ease;
}

.year-select-header option:hover,
.year-select-header option:focus {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.year-select-header option:checked {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  font-weight: 600;
}

/* Enhanced visual effects for header */
.year-select-container-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 53, 147, 0.02) 0%, rgba(40, 53, 147, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.year-select-container-header:hover::after {
  opacity: 1;
}

/* Exam Type Filter Styles - Matching Year Filter Design */
.exam-type-select-wrapper-header {
  position: relative;
  min-width: 160px;
}

.exam-type-select-container-header {
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
  border: 1.5px solid rgba(40, 53, 147, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(40, 53, 147, 0.08);
  height: 38px;
}

.exam-type-select-container-header:hover {
  border-color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(40, 53, 147, 0.15);
  transform: translateY(-1px);
}

.exam-type-select-container-header:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.1), 0 4px 16px rgba(40, 53, 147, 0.2);
  transform: translateY(-1px);
}

.exam-type-select-header {
  width: 100%;
  height: 100%;
  padding: 0 2.25rem 0 0.875rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-family: 'Noto Naskh Arabic', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: right;
  direction: rtl;
  letter-spacing: 0.025em;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.exam-type-select-header:focus {
  outline: none;
}

.exam-type-select-icon-header {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.exam-type-select-header:focus + .exam-type-select-icon-header {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-hover);
  opacity: 1;
}

.exam-type-select-container-header:hover .exam-type-select-icon-header {
  color: var(--primary-hover);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.exam-type-select-header option {
  padding: 0.5rem 0.875rem;
  background-color: var(--white);
  color: var(--text-color);
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 2rem;
  transition: all 0.2s ease;
}

.exam-type-select-header option:hover,
.exam-type-select-header option:focus {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.exam-type-select-header option:checked {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  font-weight: 600;
}

/* Enhanced visual effects for exam type header */
.exam-type-select-container-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 53, 147, 0.02) 0%, rgba(40, 53, 147, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.exam-type-select-container-header:hover::after {
  opacity: 1;
}

/* Theme Toggle Styles */
.footer-theme-toggle {
  position: relative;
  z-index: 15;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.25) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 6px;
  padding: 0.375rem 0.625rem;
  color: var(--white) !important;
  font-family: 'Noto Naskh Arabic', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  text-decoration: none;
  outline: none;
  position: relative;
  z-index: 1000 !important;
  pointer-events: auto !important;
  user-select: none;
  min-height: 32px;
  min-width: 90px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.theme-toggle-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon svg {
  position: absolute;
  transition: all 0.3s ease;
  color: currentColor;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.8);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.8);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle-text {
  white-space: nowrap;
  letter-spacing: 0.025em;
}

h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}

.card-content {
  padding: 1.5rem;
  position: relative;
  overflow: visible;
}

.search-options {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.option-label {
  font-weight: 500;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.radio-group {
  display: flex;
}

.radio-label {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-text {
  position: relative;
  padding-right: 1.8rem;
  transition: var(--transition-regular);
}

.radio-text::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transition: var(--transition-regular);
}

.radio-text::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: transform 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-text::after {
  transform: translateY(-50%) scale(1);
}

.radio-label:hover .radio-text {
  color: var(--primary-color);
}

.separator {
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}

.search-fields {
  animation: fadeIn 0.3s ease;
}

.search-fields.hidden {
  display: none;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #999;
}

.form-input {
  width: 100%;
  padding: 0.625rem;
  padding-right: 2.5rem;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: var(--transition-regular);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.15);
}

.form-input::placeholder {
  color: #999;
}

/* Year filter section styles - Compact Full-Width Design */
.year-filter-section.compact-row {
  margin: 1rem 0;
  position: relative;
  z-index: 1000;
  isolation: isolate;
}

.year-filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.year-label-compact {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  min-width: 80px;
  white-space: nowrap;
}

.year-select-wrapper-compact {
  position: relative;
  width: 100%;
  flex: 1;
}

.year-select-container-compact {
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(40, 53, 147, 0.06);
  height: 44px;
}

.year-select-container-compact:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(40, 53, 147, 0.12);
  transform: translateY(-1px);
}

.year-select-container-compact:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.08), 0 2px 12px rgba(40, 53, 147, 0.15);
  transform: translateY(-1px);
}

.year-select-compact {
  width: 100%;
  height: 100%;
  padding: 0 2.5rem 0 1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 2;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.year-select-compact:focus {
  outline: none;
}

.year-select-icon-compact {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-select-compact:focus + .year-select-icon-compact {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-hover);
}

.year-select-container-compact:hover .year-select-icon-compact {
  color: var(--primary-hover);
  transform: translateY(-50%) scale(1.05);
}

.year-select-compact option {
  padding: 0.6rem 1rem;
  background-color: var(--white);
  color: var(--text-color);
  border: none;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
  min-height: 2.2rem;
  transition: all 0.2s ease;
}

.year-select-compact option:hover,
.year-select-compact option:focus {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.year-select-compact option:checked {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  font-weight: 600;
}

/* Enhanced focus and interaction states */
.year-select-compact:focus,
.year-select-compact:active {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Additional visual enhancements */
.year-select-container-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 53, 147, 0.01) 0%, rgba(40, 53, 147, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.year-select-container-compact:hover::before {
  opacity: 1;
}

/* Responsive adjustments for compact year select */
@media (max-width: 768px) {
  .year-filter-row {
    gap: 0.75rem;
  }

  .year-label-compact {
    font-size: 0.9rem;
    min-width: 70px;
  }

  .year-select-compact {
    padding: 0 2.25rem 0 0.875rem;
    font-size: 0.9rem;
  }

  .year-select-container-compact {
    height: 40px;
    border-radius: 6px;
  }

  .year-select-icon-compact {
    left: 0.75rem;
  }
}

@media (max-width: 480px) {
  .year-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .year-label-compact {
    min-width: auto;
    font-size: 0.875rem;
  }

  .year-select-wrapper-compact {
    width: 100%;
  }

  .year-select-compact {
    padding: 0 2rem 0 0.75rem;
    font-size: 0.875rem;
  }

  .year-select-container-compact {
    height: 38px;
    border-radius: 6px;
  }

  .year-select-icon-compact {
    left: 0.625rem;
  }
}

.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-regular);
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(40, 53, 147, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(40, 53, 147, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--light-bg);
  border-color: #ccc;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  margin: 0 0.25rem;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(2, 136, 209, 0.25);
}

.btn-secondary:hover {
  background-color: #0277bd;
  box-shadow: 0 4px 8px rgba(2, 136, 209, 0.35);
}

.action-buttons {
  white-space: nowrap;
  text-align: center;
}

.action-buttons .btn {
  margin: 0.125rem;
}

.icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Results Container - Vertical Card Layout */
.results-container {
  width: 100%;
}

.results-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition-regular);
  box-shadow: var(--shadow-sm);
}

.result-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.result-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.result-card-id {
  background: var(--primary-light);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.result-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.result-field-value {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

.result-card-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.result-card-animated {
  animation: fadeInUp 0.4s ease forwards;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .result-card {
    padding: 1rem;
  }

  .result-card-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .result-card-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .result-card-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .result-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #777;
  font-size: 1.1rem;
}

.hidden {
  display: none;
}

/* Footer styles - Enhanced with Language Selector */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 1.25rem 0;
  margin-top: auto;
  box-shadow: 0 -4px 20px rgba(40, 53, 147, 0.15);
  position: relative;
  overflow: visible;
  transition: background 0.3s ease;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-left {
  flex: 1;
}

.copyright-text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.footer-right {
  flex-shrink: 0;
}

/* Attractive Footer Language Selector */
.footer-language-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: 0.025em;
}

.language-select-wrapper {
  position: relative;
  min-width: 100px;
}

.language-select-container {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  height: 32px;
}

.language-select-container:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-select-container:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.language-select {
  width: 100%;
  height: 100%;
  padding: 0 2rem 0 0.75rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

.language-select:focus {
  outline: none;
}

.language-select-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-select:focus + .language-select-icon {
  transform: translateY(-50%) rotate(180deg);
  color: var(--white);
}

.language-select-container:hover .language-select-icon {
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.language-select option {
  padding: 0.5rem 0.75rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
  min-height: 1.8rem;
}

.language-select option:hover,
.language-select option:focus {
  background-color: var(--primary-hover);
  color: var(--white);
}

.language-select option:checked {
  background-color: var(--primary-hover);
  color: var(--white);
  font-weight: 600;
}

/* Subtle glow effect */
.language-select-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.language-select-container:hover::after {
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease;
}

/* Header entrance animations */
.logo {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.site-title {
  animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.site-subtitle {
  animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* Responsive styles */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0;
  }

  .logo {
    max-width: 85px;
    margin-bottom: 0.75rem;
  }

  .site-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.015em;
  }

  .site-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }

  .main-content {
    padding: 1rem 0;
  }

  .card-content {
    padding: 1.25rem;
  }

  /* Footer responsive styles */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left {
    order: 2;
  }

  .footer-right {
    order: 1;
  }

  .footer-language-selector {
    justify-content: center;
    gap: 0.5rem;
  }

  .language-label {
    font-size: 0.8rem;
  }

  .language-select-wrapper {
    min-width: 90px;
  }

  .language-select-container {
    height: 30px;
  }

  .language-select {
    font-size: 0.75rem;
    padding: 0 1.75rem 0 0.625rem;
  }

  .language-select-icon {
    left: 0.5rem;
  }

  .search-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .option-label {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .card-content {
    padding: 1.5rem;
  }

  .button-group {
    justify-content: space-between;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Header responsive styles */
  .card-header-with-filter {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .header-title {
    font-size: 1.2rem;
  }

  .year-select-wrapper-header {
    min-width: 120px;
  }

  .year-select-container-header {
    height: 36px;
  }

  .year-select-header {
    font-size: 0.85rem;
    padding: 0 2rem 0 0.75rem;
  }

  .year-select-icon-header {
    left: 0.625rem;
  }

  /* Exam type filter responsive styles */
  .exam-type-select-wrapper-header {
    min-width: 140px;
  }

  .exam-type-select-container-header {
    height: 36px;
  }

  .exam-type-select-header {
    font-size: 0.85rem;
    padding: 0 2rem 0 0.75rem;
  }

  .exam-type-select-icon-header {
    left: 0.625rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.875rem 0;
  }

  .logo {
    max-width: 75px;
    margin-bottom: 0.625rem;
  }

  .site-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .site-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.015em;
  }

  .main-content {
    padding: 0.875rem 0;
  }

  .card-content {
    padding: 1rem;
  }

  .tabs-list {
    justify-content: center;
  }

  .tab-btn {
    padding: 1rem;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
  }

  .button-group {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  /* Mobile header styles */
  .card-header-with-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .header-title {
    order: 1;
    font-size: 1.1rem;
    width: 100%;
  }

  .header-filters {
    order: 2;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-year-filter,
  .header-exam-type-filter {
    width: 100%;
  }

  .year-select-wrapper-header,
  .exam-type-select-wrapper-header {
    width: 100%;
    min-width: auto;
  }

  .year-select-container-header,
  .exam-type-select-container-header {
    height: 34px;
  }

  .year-select-header,
  .exam-type-select-header {
    font-size: 0.8rem;
    padding: 0 1.75rem 0 0.625rem;
  }

  .year-select-icon-header,
  .exam-type-select-icon-header {
    left: 0.5rem;
  }

  /* Theme toggle responsive styles */
  .footer-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .theme-toggle-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    min-width: 70px;
    min-height: 28px;
  }

  .theme-toggle-text {
    display: none;
  }
}

/* DARK MODE OVERRIDE STYLES - HIGHEST PRIORITY */
html[data-theme="dark"],
html[data-theme="dark"] *,
body[data-theme="dark"],
body[data-theme="dark"] *,
.dark-theme,
.dark-theme * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

html[data-theme="dark"] body,
body[data-theme="dark"],
.dark-theme body {
  background: linear-gradient(to bottom, #1a1a1a, #2d2d2d) !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .exam-results-app,
body[data-theme="dark"] .exam-results-app,
.dark-theme .exam-results-app {
  background: transparent !important;
}

html[data-theme="dark"] .site-header,
body[data-theme="dark"] .site-header,
.dark-theme .site-header {
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 50%, #1a1a1a 100%) !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .site-title,
html[data-theme="dark"] .site-subtitle,
body[data-theme="dark"] .site-title,
body[data-theme="dark"] .site-subtitle,
.dark-theme .site-title,
.dark-theme .site-subtitle {
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .tabs-container,
body[data-theme="dark"] .tabs-container,
.dark-theme .tabs-container {
  background: #2d2d2d !important;
  border-bottom: 1px solid #404040 !important;
}

html[data-theme="dark"] .tab-btn,
body[data-theme="dark"] .tab-btn,
.dark-theme .tab-btn {
  background: #404040 !important;
  color: #e0e0e0 !important;
  border: 1px solid #404040 !important;
}

html[data-theme="dark"] .tab-btn.active,
body[data-theme="dark"] .tab-btn.active,
.dark-theme .tab-btn.active {
  background: #5c6bc0 !important;
  color: #ffffff !important;
  border-color: #5c6bc0 !important;
}

html[data-theme="dark"] .search-card,
html[data-theme="dark"] .results-card,
body[data-theme="dark"] .search-card,
body[data-theme="dark"] .results-card,
.dark-theme .search-card,
.dark-theme .results-card {
  background: #2d2d2d !important;
  border: 1px solid #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .card-content,
body[data-theme="dark"] .card-content,
.dark-theme .card-content {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] .year-select-header,
html[data-theme="dark"] .exam-type-select-header,
html[data-theme="dark"] .language-select,
body[data-theme="dark"] .form-input,
body[data-theme="dark"] .year-select-header,
body[data-theme="dark"] .exam-type-select-header,
body[data-theme="dark"] .language-select,
.dark-theme .form-input,
.dark-theme .year-select-header,
.dark-theme .exam-type-select-header,
.dark-theme .language-select {
  background: #2d2d2d !important;
  border: 1px solid #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .btn-primary,
.dark-theme .btn-primary {
  background: #5c6bc0 !important;
  color: #ffffff !important;
  border-color: #5c6bc0 !important;
}

html[data-theme="dark"] .btn-outline,
body[data-theme="dark"] .btn-outline,
.dark-theme .btn-outline {
  background: transparent !important;
  color: #e0e0e0 !important;
  border: 1px solid #404040 !important;
}

html[data-theme="dark"] .site-footer,
body[data-theme="dark"] .site-footer,
.dark-theme .site-footer {
  background: rgba(30, 30, 30, 0.95) !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .result-card,
body[data-theme="dark"] .result-card,
.dark-theme .result-card {
  background: #2d2d2d !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .result-card:hover,
body[data-theme="dark"] .result-card:hover,
.dark-theme .result-card:hover {
  border-color: #5c6bc0 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .result-card-title,
body[data-theme="dark"] .result-card-title,
.dark-theme .result-card-title {
  color: #5c6bc0 !important;
}

html[data-theme="dark"] .result-card-id,
body[data-theme="dark"] .result-card-id,
.dark-theme .result-card-id {
  background: #5c6bc0 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .result-field-label,
body[data-theme="dark"] .result-field-label,
.dark-theme .result-field-label {
  color: #b0b0b0 !important;
}

html[data-theme="dark"] .result-field-value,
body[data-theme="dark"] .result-field-value,
.dark-theme .result-field-value {
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .result-card-header,
html[data-theme="dark"] .result-card-actions,
body[data-theme="dark"] .result-card-header,
body[data-theme="dark"] .result-card-actions,
.dark-theme .result-card-header,
.dark-theme .result-card-actions {
  border-color: #404040 !important;
}

html[data-theme="dark"] label,
html[data-theme="dark"] p,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
body[data-theme="dark"] label,
body[data-theme="dark"] p,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
.dark-theme label,
.dark-theme p,
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
  color: #e0e0e0 !important;
}

/* Loader styles */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Back button positioning fixes */
.back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* Adjust back button when header is present */
body.has-header .back-button {
  top: 10rem;
}

/* Language selector positioning in detail pages */
.detail-page .header-top {
  position: relative;
  z-index: 1001;
}

.detail-page .language-selector {
  position: relative;
  z-index: 1002;
}

/* Ensure proper spacing for detail pages */
.details-container,
.report-container {
  margin-top: 1rem;
}

/* Responsive adjustments for back button */
@media (max-width: 768px) {
  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  body.has-header .back-button {
    top: 8rem;
  }
}

/* Dark mode styles for placeholder content and other missing elements */
html[data-theme="dark"] .placeholder-content,
body[data-theme="dark"] .placeholder-content,
.dark-theme .placeholder-content {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
  border: 1px solid #404040 !important;
}

html[data-theme="dark"] .tab-content,
body[data-theme="dark"] .tab-content,
.dark-theme .tab-content {
  color: #e0e0e0 !important;
}

/* Full Details Page Styles */
/* Student Info Card Styles */
.student-info-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
}

.student-info-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.student-info-content {
  padding: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.info-value {
  font-size: 1.1rem;
  color: var(--text-color);
  padding: 0.5rem;
  background: var(--light-bg);
  border-radius: 4px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.details-table th,
.details-table td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.details-table th {
  background-color: var(--primary-light);
  font-weight: 600;
  color: var(--primary-color);
}

.details-table tbody tr:hover {
  background-color: rgba(40, 53, 147, 0.05);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  text-align: center;
}

.no-data-message {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.hidden {
  display: none !important;
}

/* Dark mode styles for full-details page */
html[data-theme="dark"] .student-info-card,
body[data-theme="dark"] .student-info-card,
.dark-theme .student-info-card {
  background: #2d2d2d !important;
  border: 1px solid #404040 !important;
}

html[data-theme="dark"] .student-info-content,
body[data-theme="dark"] .student-info-content,
.dark-theme .student-info-content {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .info-value,
body[data-theme="dark"] .info-value,
.dark-theme .info-value {
  background: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .info-label,
body[data-theme="dark"] .info-label,
.dark-theme .info-label {
  color: #5c6bc0 !important;
}

html[data-theme="dark"] .details-table,
body[data-theme="dark"] .details-table,
.dark-theme .details-table {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .details-table th,
html[data-theme="dark"] .details-table td,
body[data-theme="dark"] .details-table th,
body[data-theme="dark"] .details-table td,
.dark-theme .details-table th,
.dark-theme .details-table td {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
  border-color: #404040 !important;
}

html[data-theme="dark"] .details-table th,
body[data-theme="dark"] .details-table th,
.dark-theme .details-table th {
  background: #404040 !important;
  color: #5c6bc0 !important;
}

html[data-theme="dark"] .eds-table.redesigned,
body[data-theme="dark"] .eds-table.redesigned,
.dark-theme .eds-table.redesigned {
  background: #1e1e1e !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .eds-table.redesigned th,
body[data-theme="dark"] .eds-table.redesigned th,
.dark-theme .eds-table.redesigned th {
  background: #283593 !important;
  color: white !important;
  border-color: #444 !important;
}

html[data-theme="dark"] .eds-table.redesigned td,
body[data-theme="dark"] .eds-table.redesigned td,
.dark-theme .eds-table.redesigned td {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}

html[data-theme="dark"] .eds-table.redesigned tbody tr:hover td,
body[data-theme="dark"] .eds-table.redesigned tbody tr:hover td,
.dark-theme .eds-table.redesigned tbody tr:hover td {
  background: #333344 !important;
}

html[data-theme="dark"] .eds-table.redesigned tbody tr:nth-child(even),
body[data-theme="dark"] .eds-table.redesigned tbody tr:nth-child(even),
.dark-theme .eds-table.redesigned tbody tr:nth-child(even) {
  background-color: #252525 !important;
}

html[data-theme="dark"] .eds-table.redesigned tfoot td,
body[data-theme="dark"] .eds-table.redesigned tfoot td,
.dark-theme .eds-table.redesigned tfoot td {
  background: #333 !important;
  border-color: #444 !important;
}

html[data-theme="dark"] .loading-overlay,
body[data-theme="dark"] .loading-overlay,
.dark-theme .loading-overlay {
  background: rgba(30, 30, 30, 0.9) !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .error-message,
body[data-theme="dark"] .error-message,
.dark-theme .error-message {
  background: #4a1a1a !important;
  border-color: #6a2a2a !important;
  color: #ff6b6b !important;
}

html[data-theme="dark"] .no-data-message,
body[data-theme="dark"] .no-data-message,
.dark-theme .no-data-message {
  background: #2d2d2d !important;
  border: 1px solid #404040 !important;
  color: #e0e0e0 !important;
}

/* Exam Details Section Styles */
.exam-details-section {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 2.2rem 1.2rem 2.2rem 1.2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.eds-header-row.redesigned {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.eds-student-img.redesigned img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 2.5px solid #bbb;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eds-logo.redesigned img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 2.5px solid #bbb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eds-center-info.redesigned {
  flex: 1 1 300px;
  text-align: center;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.eds-ministry {
  font-size: 1.18rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.eds-dept {
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.eds-school {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.eds-student-info-row.redesigned {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  font-size: 1.13rem;
  font-weight: 500;
}

.eds-student-info-row.redesigned div span {
  font-weight: bold;
  font-size: 1.15rem;
}

.eds-table-title.redesigned {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.eds-table-container.redesigned {
  overflow-x: auto;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eds-table.redesigned {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.13rem;
  background: #fff;
  min-width: 700px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

/* Improved horizontal scroll for tablets and small screens */
@media (max-width: 1024px) and (min-width: 481px) {
  .eds-table-container.redesigned {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0;
  }
  
  .eds-table.redesigned {
    min-width: 700px;
    font-size: 1rem;
  }
  
  .eds-table.redesigned th,
  .eds-table.redesigned td {
    padding: 0.8rem 0.5rem;
    font-size: 1rem;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar {
    height: 8px;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

.eds-table.redesigned th,
.eds-table.redesigned td {
  border: 1px solid #e0e0e0;
  padding: 1.05rem 0.8rem;
  text-align: center;
  font-size: 1.13rem;
  transition: all 0.2s ease;
}

.eds-table.redesigned th {
  background: #283593;
  color: white;
  font-weight: 600;
  font-size: 1.13rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

.eds-table.redesigned tfoot td {
  background: #f5f5f5;
  font-weight: bold;
  font-size: 1.13rem;
  border-top: 2px solid #e0e0e0;
}

.eds-table.redesigned tbody tr:hover td {
  background: #f5f7ff;
  transform: translateY(-1px);
}

.eds-table.redesigned tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.result-summary-row {
  text-align: left;
  font-size: 1.18rem;
  font-weight: bold;
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
  color: #222;
  padding-right: 1.5rem;
}

@media (max-width: 900px) {
  .eds-header-row.redesigned {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }

  .eds-center-info.redesigned {
    order: 2;
    margin: 0.5rem 0;
  }

  .eds-student-img.redesigned,
  .eds-logo.redesigned {
    order: 1;
    margin-bottom: 0.5rem;
  }

  .eds-logo.redesigned img,
  .eds-student-img.redesigned img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .eds-table.redesigned {
    font-size: 0.95rem;
  }
  
  .eds-table.redesigned th,
  .eds-table.redesigned td {
    padding: 0.7rem 0.4rem;
    font-size: 0.95rem;
  }
  
  .eds-student-info-row.redesigned {
    gap: 1.5rem;
    font-size: 0.95rem;
    justify-content: space-around;
  }
  
  .eds-table-container.redesigned {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 480px) {
  .eds-table-container.redesigned {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .eds-table.redesigned {
    min-width: 500px;
    width: auto;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.7rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .eds-table.redesigned thead {
    display: table-header-group;
  }
  
  .eds-table.redesigned thead th {
    padding: 0.4rem 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    background: #283593;
    color: white;
    border: 1px solid #1a237e;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
    white-space: nowrap;
    min-width: 60px;
  }
  
  /* Compact column widths for mobile scrolling */
  .eds-table.redesigned thead th:nth-child(1) { min-width: 40px; }   /* شمېره */
  .eds-table.redesigned thead th:nth-child(2) { min-width: 100px; }  /* مضمون */
  .eds-table.redesigned thead th:nth-child(3) { min-width: 80px; }   /* څلور نیم میاشتني */
  .eds-table.redesigned thead th:nth-child(4) { min-width: 70px; }   /* د پای نمرې */
  .eds-table.redesigned thead th:nth-child(5) { min-width: 70px; }   /* ټولې نمرې */
  .eds-table.redesigned thead th:nth-child(6) { min-width: 60px; }   /* سلنه */
  
  .eds-table.redesigned tbody {
    display: table-row-group;
  }
  
  .eds-table.redesigned tbody tr {
    display: table-row;
    border-bottom: 1px solid #ddd;
  }
  
  .eds-table.redesigned tbody tr:nth-child(even) {
    background-color: #f8f9fa;
  }
  
  .eds-table.redesigned tbody td {
    padding: 0.35rem 0.2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Subject column gets right alignment for better readability */
  .eds-table.redesigned tbody td:nth-child(2) {
    text-align: right;
    padding-right: 0.3rem;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
  }
  
  .eds-table.redesigned tfoot {
    display: table-footer-group;
  }
  
  .eds-table.redesigned tfoot tr {
    display: table-row;
    background: #f5f5f5;
  }
  
  .eds-table.redesigned tfoot td {
    padding: 0.4rem 0.2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 0.7rem;
    font-weight: bold;
    background: #f5f5f5;
    line-height: 1.2;
    white-space: nowrap;
  }
  
  /* Scrollbar styling for mobile */
  .eds-table-container.redesigned::-webkit-scrollbar {
    height: 6px;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }
  
  .eds-table-container.redesigned::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  /* Dark mode styles for mobile table */
  html[data-theme="dark"] .eds-table.redesigned,
  body[data-theme="dark"] .eds-table.redesigned,
  .dark-theme .eds-table.redesigned {
    background: #2d2d2d !important;
  }
  
  html[data-theme="dark"] .eds-table.redesigned thead th,
  body[data-theme="dark"] .eds-table.redesigned thead th,
  .dark-theme .eds-table.redesigned thead th {
    background: #404040 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
  }
  
  html[data-theme="dark"] .eds-table.redesigned tbody tr:nth-child(even),
  body[data-theme="dark"] .eds-table.redesigned tbody tr:nth-child(even),
  .dark-theme .eds-table.redesigned tbody tr:nth-child(even) {
    background-color: #333 !important;
  }
  
  html[data-theme="dark"] .eds-table.redesigned tbody td,
  body[data-theme="dark"] .eds-table.redesigned tbody td,
  .dark-theme .eds-table.redesigned tbody td {
    background: transparent !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
  }
  
  html[data-theme="dark"] .eds-table.redesigned tfoot td,
  body[data-theme="dark"] .eds-table.redesigned tfoot td,
  .dark-theme .eds-table.redesigned tfoot td {
    background: #404040 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
  }
  
  html[data-theme="dark"] .eds-table-container.redesigned::-webkit-scrollbar-track,
  body[data-theme="dark"] .eds-table-container.redesigned::-webkit-scrollbar-track,
  .dark-theme .eds-table-container.redesigned::-webkit-scrollbar-track {
    background: #404040 !important;
  }
  
  html[data-theme="dark"] .eds-table-container.redesigned::-webkit-scrollbar-thumb,
  body[data-theme="dark"] .eds-table-container.redesigned::-webkit-scrollbar-thumb,
  .dark-theme .eds-table-container.redesigned::-webkit-scrollbar-thumb {
    background: #666 !important;
  }
}

/* Extra small screens optimization */
@media (max-width: 400px) {
  .eds-table.redesigned {
    min-width: 450px;
    font-size: 0.65rem;
  }
  
  .eds-table.redesigned thead th {
    padding: 0.3rem 0.15rem;
    font-size: 0.55rem;
    line-height: 1;
    min-width: 50px;
  }
  
  .eds-table.redesigned tbody td {
    padding: 0.25rem 0.15rem;
    font-size: 0.65rem;
    line-height: 1.1;
  }
  
  .eds-table.redesigned tfoot td {
    padding: 0.3rem 0.15rem;
    font-size: 0.65rem;
  }
  
  /* Tighter column widths for very small screens */
  .eds-table.redesigned thead th:nth-child(1) { min-width: 35px; }   /* شمېره */
  .eds-table.redesigned thead th:nth-child(2) { min-width: 90px; }   /* مضمون */
  .eds-table.redesigned thead th:nth-child(3) { min-width: 75px; }   /* څلور نیم میاشتني */
  .eds-table.redesigned thead th:nth-child(4) { min-width: 65px; }   /* د پای نمرې */
  .eds-table.redesigned thead th:nth-child(5) { min-width: 65px; }   /* ټولې نمرې */
  .eds-table.redesigned thead th:nth-child(6) { min-width: 55px; }   /* سلنه */
}

@media (max-width: 600px) {
  .exam-details-section {
    padding: 1rem 0.5rem;
    margin: 0.5rem;
    border-radius: 8px;
  }

  .eds-table.redesigned {
    font-size: 0.85rem;
  }
  
  .eds-table.redesigned thead th {
    font-size: 0.75rem;
    padding: 0.6rem 0.3rem;
  }
  
  .eds-table.redesigned tbody td {
    font-size: 0.85rem;
    padding: 0.5rem 0.3rem;
  }

  .eds-student-info-row.redesigned {
    gap: 1rem;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: center;
  }

  .eds-student-info-row.redesigned div {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border-left: 3px solid #283593;
  }

  .eds-header-row.redesigned {
    margin-bottom: 1rem;
  }

  .result-summary-row {
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    border-left: 4px solid #283593;
  }
}

/* Dark mode styles for exam details section */
html[data-theme="dark"] .exam-details-section,
body[data-theme="dark"] .exam-details-section,
.dark-theme .exam-details-section {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .eds-table,
body[data-theme="dark"] .eds-table,
.dark-theme .eds-table,
html[data-theme="dark"] .three-column-table,
body[data-theme="dark"] .three-column-table,
.dark-theme .three-column-table {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}

/* Three Column Table Section Styles */
.three-column-table-section {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.three-column-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.13rem;
  background: #fff;
  min-width: 700px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.three-column-table th,
.three-column-table td {
  border: 2.5px solid #222;
  padding: 1.05rem 0.4rem;
  text-align: center;
  font-size: 1.13rem;
}

.three-column-table th {
  background: #e0e0e0;
  color: #222;
  font-weight: bold;
  font-size: 1.13rem;
}

.three-column-table .empty-cell {
  height: 120px;
}

/* Green Notice Section Styles */
.green-notice-section {
  background-color: #e8f5e9;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: right;
  direction: rtl;
  border: 1px solid #c8e6c9;
}

.green-notice-section p {
  color: #2e7d32;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact Information Section Styles */
.contact-info-section {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.contact-info-section h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-column {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.contact-label {
  min-width: 120px;
  font-weight: bold;
}

.contact-icon {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  min-width: 30px;
}

.contact-value {
  flex: 1;
}

/* Dark mode styles for new sections */
html[data-theme="dark"] .green-notice-section,
body[data-theme="dark"] .green-notice-section,
.dark-theme .green-notice-section {
  background-color: #1b5e20;
  border-color: #2e7d32;
}

html[data-theme="dark"] .green-notice-section p,
body[data-theme="dark"] .green-notice-section p,
.dark-theme .green-notice-section p {
  color: #a5d6a7;
}

html[data-theme="dark"] .contact-info-section,
body[data-theme="dark"] .contact-info-section,
.dark-theme .contact-info-section {
  border-color: #444;
}

html[data-theme="dark"] .eds-table th,
html[data-theme="dark"] .eds-table td,
body[data-theme="dark"] .eds-table th,
body[data-theme="dark"] .eds-table td,
.dark-theme .eds-table th,
.dark-theme .eds-table td {
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .eds-table th,
body[data-theme="dark"] .eds-table th,
.dark-theme .eds-table th {
  background: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .eds-table tfoot td,
body[data-theme="dark"] .eds-table tfoot td,
.dark-theme .eds-table tfoot td {
  background: #404040 !important;
  color: #e0e0e0 !important;
}

html[data-theme="dark"] .eds-ministry,
html[data-theme="dark"] .eds-dept,
html[data-theme="dark"] .eds-school,
html[data-theme="dark"] .eds-table-title,
body[data-theme="dark"] .eds-ministry,
body[data-theme="dark"] .eds-dept,
body[data-theme="dark"] .eds-school,
body[data-theme="dark"] .eds-table-title,
.dark-theme .eds-ministry,
.dark-theme .eds-dept,
.dark-theme .eds-school,
.dark-theme .eds-table-title {
  color: #e0e0e0 !important;
}

/* Mobile responsive styles for new sections */
@media (max-width: 768px) {
  .three-column-table-section {
    overflow-x: auto;
    margin-bottom: 1rem;
  }

  .three-column-table {
    font-size: 0.98rem;
    min-width: 480px;
  }

  .three-column-table th,
  .three-column-table td {
    padding: 0.8rem 0.3rem;
    font-size: 0.98rem;
  }

  .three-column-table .empty-cell {
    height: 80px;
  }

  .green-notice-section {
    padding: 0.8rem;
    margin: 1rem 0;
  }

  .green-notice-section p {
    font-size: 0.9rem;
  }

  .contact-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-column {
    min-width: auto;
  }

  .contact-item {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .contact-label {
    min-width: 100px;
  }
}

@media (max-width: 600px) {
  .three-column-table {
    font-size: 0.85rem;
  }

  .three-column-table th,
  .three-column-table td {
    padding: 0.6rem 0.2rem;
    font-size: 0.85rem;
  }

  .three-column-table .empty-cell {
    height: 60px;
  }

  .contact-info-section h3 {
    font-size: 1.1rem;
  }

  .contact-item {
    font-size: 0.85rem;
  }

  .contact-label {
    min-width: 80px;
  }
}
