/* ===== תפריט צד מודרני ===== */
.menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  font-size: 28px;
  background-color: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

/* צבע הקטגוריות בתפריט */
.menu-category h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* אפקט מעבר עכבר על הכפתור */
.menu-btn:hover {
  background-color: #2d3748;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.sidebar {
  height: 100vh;
  width: 250px;
  position: fixed;
  top: 0;
  right: -250px;
  background-color: #0f172a;
  overflow-x: hidden;
  overflow-y: scroll; /* מאלץ גלילה */
  transition: transform 0.3s ease;
  padding-top: 60px;
  padding-bottom: 80px; /* ריווח גדול יותר בתחתית */
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #374151 #0f172a;
  /* תיקון לגלילה במכשירים ניידים */
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* עיצוב גלילה בכרום/ספארי */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #0f172a;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

.sidebar nav a {
  display: block;
  padding: 16px 24px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 18px;
  transition: background 0.2s;
}

.sidebar nav a:hover {
  background-color: #111827;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 30px;
  color: #e5e7eb;
  cursor: pointer;
  z-index: 1002;
}

.accessibility-menu {
  display: none; /* מוסתר - כעת נעביר לתחתית */
}

/* כללים חדשים עבור הדגשת קישורים */
body.highlight-links a {
    color: #ffff00;
    background-color: #333;
    padding: 2px 4px;
    border-radius: 3px;
}

/* התאמות נגישות במצב מרחף */
body.high-contrast .floating-accessibility {
  background: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .accessibility-toggle-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .accessibility-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

body.high-contrast .floating-accessibility h4 {
  color: #fff !important;
}
@media (max-height: 700px) {
  .sidebar {
    padding-top: 45px;
    padding-bottom: 60px;
  }
  
  .sidebar nav a {
    padding: 10px 20px;
    font-size: 16px;
  }
  
  .menu-category h3 {
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 6px;
  }
  
  .accessibility-menu {
    padding: 8px;
    gap: 6px;
  }
  
  .accessibility-menu button {
    padding: 8px 6px;
    font-size: 0.8em;
  }
}

/* התאמות למכשירים עם מסך קטן מאוד */
@media (max-height: 600px) {
  .sidebar {
    padding-top: 40px;
    padding-bottom: 50px;
  }
  
  .sidebar nav a {
    padding: 8px 16px;
    font-size: 15px;
  }
  
  .menu-category h3 {
    margin-bottom: 4px;
    font-size: 11px;
  }
  
  .accessibility-menu button {
    padding: 6px 4px;
    font-size: 0.75em;
  }
}

/* התאמות לאייפון עם Safe Area */
@supports (padding: max(0px)) {
  .sidebar {
    padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
  }
}

/* הוספת overflow מפורש לניידים */
@media (pointer: coarse) {
  .sidebar {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
}

/* ===== מצב ניגודיות גבוהה - מתוקן ===== */
body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

/* טקסטים כלליים - מתוקן */
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast p,
body.high-contrast span,
body.high-contrast div,
body.high-contrast li {
  color: #fff !important;
  background-color: transparent !important;
}

/* קישורים - מתוקן */
body.high-contrast a {
  color: #ffff00 !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

body.high-contrast a:hover {
  color: #fff !important;
  background-color: #333 !important;
}

/* כפתורים - מתוקן */
body.high-contrast button {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  font-weight: bold !important;
}

body.high-contrast button:hover {
  background-color: #ffff00 !important;
  color: #000 !important;
  border-color: #ffff00 !important;
}

/* שדות טקסט */
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast month-section,
body.high-contrast select {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

/* טבלאות */
body.high-contrast table {
  border: 1px solid #fff !important;
  background-color: #000 !important;
  color: #fff !important;
}

body.high-contrast th,
body.high-contrast td {
  border: 1px solid #fff !important;
  background-color: #000 !important;
  color: #fff !important;
}

/* דריסת כל סגנונות הרקע של שורות הטבלה */
body.high-contrast tr,
body.high-contrast tr:nth-child(odd),
body.high-contrast tr:nth-child(even),
body.high-contrast tbody tr,
body.high-contrast tbody tr:nth-child(odd),
body.high-contrast tbody tr:nth-child(even) {
  background-color: #000 !important;
  color: #fff !important;
}

/* דריסת hover על שורות */
body.high-contrast tr:hover,
body.high-contrast tbody tr:hover {
  background-color: #333 !important;
  color: #fff !important;
}

/* כרטיסים ותיבות */
body.high-contrast .card,
body.high-contrast .box,
body.high-contrasr .item-label,
body.high-contrast .container {
  background-color: #111 !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}

/* תפריט במצב ניגודיות גבוהה */
body.high-contrast .sidebar {
  background-color: #000 !important;
  border-left: 2px solid #fff !important;
}

body.high-contrast .menu-btn {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .accessibility-menu button {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

/* מצב ניגודיות גבוהה - כרטיסים ותוכן פנימי */
body.high-contrast .stats-grid,
body.high-contrast .score-legend,
body.high-contrast .stat-item,
body.high-contrast .seasonal-analysis,
body.high-contrast .month-numbers,
body.high-contrast .month-section,
body.high-contrast .explanation-content {
  background-color: #000 !important;  /* רקע כהה */
  color: #fff !important;            /* טקסט לבן */
  border: 1px solid #fff !important; /* גבול לבן */
}

/* טקסטים בתוך הכרטיסים */
body.high-contrast .card span,
body.high-contrast .card p,
body.high-contrast .number-circle {
  color: #ffff00 !important; /* טקסט צהוב לניגודיות טובה */
  background-color: transparent !important;
}

/* כפתורים בתוך הכרטיסים */
body.high-contrast .card button {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}


/* איפוס נגישות - ללא שינוי */
body:not(.high-contrast) {
  background: #f5f5f5;
  color: #333;
}

/* ===== תפריט נגישות מרחף בתחתית ===== */
.floating-accessibility {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(200px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90vw;
  width: 320px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.floating-accessibility.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.accessibility-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  z-index: 2001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.accessibility-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff4757;
  color: white;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2002;
}

.accessibility-close-btn:hover {
  background: #ff3838;
  transform: scale(1.1);
}

.floating-accessibility-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.floating-accessibility h4 {
  color: white;
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.accessibility-btn {
  padding: 12px 8px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accessibility-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* כפתור איפוס מיוחד */
.accessibility-btn.reset {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.8);
  color: #ff4757;
  font-weight: bold;
}

.accessibility-btn.reset:hover {
  background: white;
  color: #ff3838;
}

/* התאמות למסכים קטנים */
@media (max-width: 480px) {
  .floating-accessibility {
    width: calc(100vw - 30px);
    padding: 12px;
    bottom: 90px;
  }
  
  .accessibility-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 15px;
    left: 15px;
  }
  
  .floating-accessibility-content {
    gap: 8px;
  }
  
  .accessibility-btn {
    padding: 10px 6px;
    font-size: 12px;
  }
  
  .accessibility-close-btn {
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}




/* הוסף את הקוד הזה לקובץ ה-CSS של התפריט שלך */
/* תוספות למצב ניגודיות גבוהה עבור עמוד הצירופים */

/* ==== צירופים וטבלאות נתונים ==== */
body.high-contrast .combination-item {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

body.high-contrast .combination-numbers {
  color: #ffff00 !important;  /* מספרי הצירופים בצהוב בולט */
  background: #000 !important;
  text-shadow: none !important;
}

body.high-contrast .combination-stats {
  background: #000 !important;
}

body.high-contrast .combination-count {
  color: #00ff00 !important;  /* מספר ההופעות בירוק בולט */
  background: #000 !important;
}

body.high-contrast .combination-percentage {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #fff !important;
}

/* ==== רשת הצירופים ==== */
body.high-contrast .combinations-grid {
  background: #000 !important;
}

/* ==== סטטיסטיקות ==== */
body.high-contrast .stats-summary {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

body.high-contrast .stat-item {
  background: #111 !important;
  border: 1px solid #fff !important;
  color: #fff !important;
}

body.high-contrast .stat-number {
  color: #ffff00 !important;  /* מספרים בסטטיסטיקות בצהוב */
}

body.high-contrast .stat-label {
  color: #fff !important;
}

body.high-contrast .stat-explanation {
  color: #ccc !important;
}

body.high-contrast .coverage-text {
  color: #00ff00 !important;  /* טקסט כיסוי בירוק */
  background: #000 !important;
}

/* ==== כפתורי צירופים ==== */
body.high-contrast .combo-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .combo-btn:hover {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #ffff00 !important;
}

body.high-contrast .combo-btn.active {
  background: #00ff00 !important;
  color: #000 !important;
  border: 2px solid #00ff00 !important;
}

/* ==== בקרות ופילטרים ==== */
body.high-contrast .controls-section {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

body.high-contrast .filter-group label {
  color: #fff !important;
}

body.high-contrast .filter-group input,
body.high-contrast .filter-group select {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .apply-filters-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .apply-filters-btn:hover {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #ffff00 !important;
}

/* ==== כרטיסי סוגי צירופים ==== */
body.high-contrast .type-card {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  border-top: 4px solid #ffff00 !important;
}

body.high-contrast .type-pairs { 
  border-top-color: #ff0000 !important; 
}
body.high-contrast .type-triples { 
  border-top-color: #ffff00 !important; 
}
body.high-contrast .type-quads { 
  border-top-color: #00ff00 !important; 
}
body.high-contrast .type-quints { 
  border-top-color: #0000ff !important; 
}

/* ==== כותרות ותוצאות ==== */
body.high-contrast .results-section {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

body.high-contrast .results-title {
  color: #fff !important;
  background: #000 !important;
}

body.high-contrast .results-count {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

/* ==== הסבר וחינוכי ==== */
body.high-contrast .explanation-section {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}

body.high-contrast .explanation-title {
  color: #fff !important;
  border-bottom-color: #fff !important;
  background: #000 !important;
}

body.high-contrast .explanation-content {
  color: #fff !important;
  background: #000 !important;
}

body.high-contrast .explanation-content h4 {
  color: #ffff00 !important;
  background: #000 !important;
}

/* ==== הודעות מערכת ==== */
body.high-contrast .loading {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

body.high-contrast .no-results {
  color: #fff !important;
  background: #000 !important;
}

/* ==== מיוחד: תיקון גרידיאנטים ==== */
body.high-contrast *[style*="linear-gradient"],
body.high-contrast *[style*="background:"],
body.high-contrast *[class*="gradient"] {
  background: #000 !important;
}

/* ==== ARIA ונגישות משופרת ==== */
body.high-contrast [role="table"],
body.high-contrast [role="grid"],
body.high-contrast [role="listbox"] {
  border: 2px solid #fff !important;
  background: #000 !important;
}

body.high-contrast [role="columnheader"],
body.high-contrast [role="rowheader"] {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

body.high-contrast [role="gridcell"],
body.high-contrast [role="cell"] {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #666 !important;
}

/* ==== פוקוס משופר לנגישות ==== */
body.high-contrast *:focus {
  outline: 3px solid #ffff00 !important;
  outline-offset: 2px !important;
  background: #000 !important;
  color: #fff !important;
}

/* ==== לינקים במצב נגישות ==== */
body.high-contrast .nav-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  text-shadow: none !important;
}

body.high-contrast .nav-btn:hover {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #ffff00 !important;
}

/* ==== קונטיינר ראשי ==== */
body.high-contrast .container {
  background: #000 !important;
  border: 3px solid #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.high-contrast .logo {
  color: #fff !important;
  background: #000 !important;
  text-shadow: none !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

body.high-contrast .subtitle {
  color: #fff !important;
  background: #000 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* ==== ניווט ==== */
body.high-contrast .nav-buttons {
  background: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}





/* הוסף את הקוד הזה לקובץ ה-CSS של התפריט שלך */
/* תוספות למצב ניגודיות גבוהה עבור עמוד הניתוח העונתי */

/* ==== ניתוח עונתי ומספרים חמים/קרים ==== */
body.high-contrast .seasonal-analysis {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast .seasonal-analysis h3 {
  color: #fff !important;
  background: #000 !important;
  text-shadow: none !important;
  border-bottom: 2px solid #fff !important;
  padding-bottom: 15px !important;
}

/* ==== חלקי חודשים ==== */
body.high-contrast .month-section {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast .month-section h4 {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
  box-shadow: none !important;
}

/* ==== רשת מספרים לפי חודש ==== */
body.high-contrast .month-numbers {
  background: #000 !important;
}

body.high-contrast .seasonal-number {
  background: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  color: #fff !important;
}

body.high-contrast .seasonal-number:hover {
  background: #111 !important;
  border-color: #ffff00 !important;
  box-shadow: none !important;
  transform: translateY(-3px);
}

/* ==== מעגלי מספרים ==== */
body.high-contrast .seasonal-number .number {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  font-weight: bold !important;
}

/* ==== פרטי מספרים (ציון והופעות) ==== */
body.high-contrast .seasonal-number .score {
  color: #ffff00 !important;  /* ציון בצהוב */
  background: #000 !important;
}

body.high-contrast .seasonal-number .appearances {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #fff !important;
}

/* ==== מקרא ציונים ==== */
body.high-contrast .score-legend {
  background: #000 !important;
}

body.high-contrast .score-item {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* צבעי מקרא ספציפיים במצב נגישות */
body.high-contrast .score-very-hot { 
  border-right-color: #ff0000 !important; 
  border-left-color: #ff0000 !important; /* גם משמאל לבולטות */
}
body.high-contrast .score-hot { 
  border-right-color: #ffff00 !important; 
  border-left-color: #ffff00 !important;
}
body.high-contrast .score-normal { 
  border-right-color: #00ff00 !important; 
  border-left-color: #00ff00 !important;
}
body.high-contrast .score-cold { 
  border-right-color: #0080ff !important; 
  border-left-color: #0080ff !important;
}

/* גבולות צבעוניים למספרים עונתיים */
body.high-contrast .seasonal-number.very-hot {
  border-right-color: #ff0000 !important;
}
body.high-contrast .seasonal-number.hot {
  border-right-color: #ffff00 !important;
}
body.high-contrast .seasonal-number.normal {
  border-right-color: #00ff00 !important;
}
body.high-contrast .seasonal-number.cold {
  border-right-color: #0080ff !important;
}

/* ==== סטטיסטיקות סיכום ==== */
body.high-contrast .summary-stats {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast .stats-grid {
  background: #000 !important;
}

body.high-contrast .stat-item {
  background: #111 !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  backdrop-filter: none !important;
}

body.high-contrast .stat-number {
  color: #ffff00 !important;  /* מספרים בסטטיסטיקות בצהוב */
}

body.high-contrast .stat-label {
  color: #fff !important;
  opacity: 1 !important;
}

/* ==== הסבר וחינוכי - עדכון ==== */
body.high-contrast .explanation-section {
  background: #000 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast .explanation-title {
  color: #fff !important;
  border-bottom-color: #fff !important;
  background: #000 !important;
  text-shadow: none !important;
}

body.high-contrast .explanation-content {
  color: #fff !important;
  background: #000 !important;
}

body.high-contrast .explanation-content h4 {
  color: #ffff00 !important;
  background: #000 !important;
}

body.high-contrast .explanation-content ul {
  color: #fff !important;
}

body.high-contrast .explanation-content li {
  color: #fff !important;
  background: #000 !important;
}

/* ==== הודעות מערכת ==== */
body.high-contrast .loading {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  backdrop-filter: none !important;
}

/* ==== מיוחד: תיקון גרידיאנטים ואפקטים ==== */
body.high-contrast *[style*="linear-gradient"],
body.high-contrast *[style*="background:"],
body.high-contrast *[class*="gradient"] {
  background: #000 !important;
}

body.high-contrast *[style*="backdrop-filter"] {
  backdrop-filter: none !important;
}

body.high-contrast *[style*="box-shadow"] {
  box-shadow: none !important;
}

/* ==== פוקוס משופר לאלמנטים עונתיים ==== */
body.high-contrast .seasonal-number:focus,
body.high-contrast .score-item:focus,
body.high-contrast .stat-item:focus {
  outline: 3px solid #ffff00 !important;
  outline-offset: 2px !important;
  background: #000 !important;
  color: #fff !important;
}

/* ==== ARIA ונגישות משופרת לטבלאות עונתיות ==== */
body.high-contrast [role="grid"],
body.high-contrast [role="gridcell"] {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

body.high-contrast [aria-label*="חם"],
body.high-contrast [aria-label*="hot"] {
  border-color: #ff0000 !important;
}

body.high-contrast [aria-label*="קר"],
body.high-contrast [aria-label*="cold"] {
  border-color: #0080ff !important;
}

body.high-contrast [aria-label*="רגיל"],
body.high-contrast [aria-label*="normal"] {
  border-color: #00ff00 !important;
}

/* ==== קונטיינר ראשי - עדכון ==== */
body.high-contrast .container {
  background: #000 !important;
  border: 3px solid #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.high-contrast .logo {
  color: #fff !important;
  background: #000 !important;
  text-shadow: none !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.high-contrast .subtitle {
  color: #fff !important;
  background: #000 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* ==== ניווט - עדכון ==== */
body.high-contrast .nav-buttons {
  background: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.high-contrast .nav-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.high-contrast .nav-btn:hover {
  background: #ffff00 !important;
  color: #000 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

/* ==== התאמות נוספות למובייל ==== */
@media (max-width: 768px) {
  body.high-contrast .month-numbers {
    gap: 10px !important;
  }
  
  body.high-contrast .seasonal-number {
    padding: 12px !important;
  }
  
  body.high-contrast .seasonal-number .number {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  
  body.high-contrast .score-legend {
    gap: 10px !important;
  }
  
  body.high-contrast .stats-grid {
    gap: 15px !important;
  }
}







/* קוד CSS לשיפור ניגודיות גרפי הלוטו באתר lottogun.com */

/* סגנון כללי למצב נגישות */
body.accessibility-mode {
    background-color: #000 !important;
    color: #ffffff !important;
}

/* גרף ימין - מספרים רגילים (עמודות ירוקות על רקע שחור) */
.accessibility-mode .chart-container:nth-child(2),
.accessibility-mode .statistics-chart:nth-child(2),
.accessibility-mode .right-chart {
    background-color: #000000 !important;
    border: 2px solid #00ff00 !important;
}

.accessibility-mode .chart-container:nth-child(2) .chart-bar,
.accessibility-mode .chart-container:nth-child(2) canvas,
.accessibility-mode .right-chart canvas {
    background-color: #000000 !important;
}

.accessibility-mode .chart-container:nth-child(2) .bar,
.accessibility-mode .right-chart .bar,
.accessibility-mode .chart-container:nth-child(2) rect {
    fill: #00ff00 !important;
    stroke: #00ff00 !important;
}

/* גרף שמאל - מספרים חזקים (עמודות אדומות על רקע שחור) */
.accessibility-mode .chart-container:nth-child(1),
.accessibility-mode .statistics-chart:nth-child(1),
.accessibility-mode .left-chart {
    background-color: #000000 !important;
    border: 2px solid #ff0000 !important;
}

.accessibility-mode .chart-container:nth-child(1) .chart-bar,
.accessibility-mode .chart-container:nth-child(1) canvas,
.accessibility-mode .left-chart canvas {
    background-color: #000000 !important;
}

.accessibility-mode .chart-container:nth-child(1) .bar,
.accessibility-mode .left-chart .bar,
.accessibility-mode .chart-container:nth-child(1) rect {
    fill: #ff0000 !important;
    stroke: #ff0000 !important;
}

/* סגנונות כלליים לכל הגרפים במצב נגישות */
.accessibility-mode .chart-container {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #333333 !important;
}

.accessibility-mode .chart-title {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* עבור Chart.js או ספריות גרפים אחרות */
.accessibility-mode canvas {
    background-color: #000000 !important;
}

/* סגנונות ספציפיים עבור D3.js */
.accessibility-mode svg {
    background-color: #000000 !important;
}

.accessibility-mode .axis {
    stroke: #ffffff !important;
}

.accessibility-mode .axis text {
    fill: #ffffff !important;
}

/* עבור גרפי עמודות כלליים */
.accessibility-mode .bar-green {
    fill: #00ff00 !important;
    stroke: #00ff00 !important;
}

.accessibility-mode .bar-red {
    fill: #ff0000 !important;
    stroke: #ff0000 !important;
}

/* עבור טקסט וכותרות */
.accessibility-mode .chart-label,
.accessibility-mode .axis-label {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* עבור קווי הרשת */
.accessibility-mode .grid-line {
    stroke: #333333 !important;
    opacity: 0.5 !important;
}

/* עבור legend או מקרא */
.accessibility-mode .legend {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* סגנונות עבור הצגת נתונים בטבלאות */
.accessibility-mode table {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.accessibility-mode th,
.accessibility-mode td {
    border: 1px solid #333333 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* סגנונות עבור כפתורים ובקרות */
.accessibility-mode button,
.accessibility-mode .btn {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 2px solid #666666 !important;
}

.accessibility-mode button:hover,
.accessibility-mode .btn:hover {
    background-color: #666666 !important;
}

/* סגנונות עבור אלמנטים אינטראקטיביים */
.accessibility-mode .interactive-element:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* סגנונות ספציפיים לאתר lottogun */
.accessibility-mode .lottery-chart-right .bar-element {
    background-color: #00ff00 !important;
    color: #000000 !important;
}

.accessibility-mode .lottery-chart-left .bar-element {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}

/* עבור תוויות מספרים */
.accessibility-mode .number-label {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* עבור ערכים בגרף */
.accessibility-mode .chart-value {
    color: #ffffff !important;
    text-shadow: 1px 1px 1px #000000 !important;
}
