/* Layout - עמוד התחברות */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16213f 0%, #25408f 50%, #7dd2ef 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* רשת עדינה ברקע */
.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

/* אנימציה לגרדיאנט */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* אנימציה לרשת */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out;
  position: relative;
  z-index: 1;
}

/* אנימציית כניסה לכרטיס */
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  padding: 2rem;
  background: white;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: #25408f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 64, 143, 0.4);
  animation: logoFloat 3s ease-in-out infinite, logoPulse 2s ease-in-out infinite;
}

/* אנימציית ריחוף ללוגו */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* אנימציית דופק עדינה ללוגו */
@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 64, 143, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(125, 210, 239, 0.6);
  }
}

.login-body {
  padding: 2rem;
}

/* Layout - Sidebar */
.app-layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100vw;
}

.sidebar {
  width: 260px;
  background-color: var(--brand-dark);
  color: var(--brand-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  right: 0;
  top: 0;
  overflow-y: auto;
  transition: width 0.3s ease;
}

/* מצב מכווץ - רק אייקונים */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-nav-item span,
.sidebar.collapsed .sidebar-footer .btn span {
  display: none;
}

.sidebar.collapsed .sidebar-logo {
  justify-content: center;
}

.sidebar.collapsed .sidebar-user {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-user-avatar {
  margin: 0 auto;
  width: 40px;
  height: 40px;
}

.sidebar.collapsed .sidebar-nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 0;
  text-align: center;
}

.sidebar.collapsed .sidebar-nav-item i {
  margin-left: 0;
  margin-right: 0;
  width: auto;
  font-size: 1.25rem;
}

.sidebar.collapsed .sidebar-footer {
  padding: 1rem 0.5rem;
  display: flex;
  justify-content: center;
}

.sidebar.collapsed .sidebar-footer .btn {
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

.sidebar.collapsed .sidebar-footer .btn i {
  margin: 0;
  font-size: 1.125rem;
}

/* Tooltip לכפתור התנתקות במצב מכווץ */
.sidebar.collapsed .sidebar-footer .btn {
  position: relative;
}

.sidebar.collapsed .sidebar-footer .btn::after {
  content: 'התנתק';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-medium);
  color: var(--brand-light);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-right: 0.5rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-footer .btn:hover::after {
  opacity: 1;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(125, 210, 239, 0.2);
}

/* מרכוז לוגו במצב מכווץ */
.sidebar.collapsed .sidebar-header {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
}

/* כפתור כיווץ/הרחבה - מרכז התפריט (צד ימין עבור RTL) */
.sidebar-toggle-btn {
  position: fixed;
  right: calc(260px - 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-medium);
  border: 2px solid var(--brand-light);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--brand-dark);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 12px rgba(125, 210, 239, 0.4);
}

/* מצב מכווץ - הכפתור זז לפי רוחב התפריט */
.sidebar-toggle-btn.collapsed {
  right: calc(80px - 12px);
}

.sidebar-toggle-btn.collapsed i {
  transform: rotate(180deg);
}

.sidebar-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(125, 210, 239, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-light);
  flex-shrink: 0;
}

.sidebar-user-avatar.default {
  background: var(--brand-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-light);
}

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

.sidebar-user-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand-light);
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--brand-light);
  opacity: 0.7;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-nav-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--brand-light);
  text-decoration: none;
  transition: all 0.2s;
  border-right: 3px solid transparent;
  opacity: 0.85;
}

.sidebar-nav-item:hover {
  background-color: rgba(125, 210, 239, 0.1);
  color: var(--brand-light);
  opacity: 1;
}

.sidebar-nav-item.active {
  background-color: rgba(125, 210, 239, 0.15);
  color: var(--brand-light);
  border-right-color: var(--brand-light);
  opacity: 1;
  font-weight: 500;
}

.sidebar-nav-item i {
  margin-left: 0.75rem;
  width: 1.25rem;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* תפריט הורה (Parent) עם תת-לשוניות */
.sidebar-nav-parent {
  display: block;
  background-color: transparent;
  border-right: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
  /* אפס את ה-padding שיורש מ-sidebar-nav-item */
  padding: 0 !important;
}

.sidebar-nav-parent.active {
  background-color: rgba(125, 210, 239, 0.15);
  border-right-color: var(--brand-light);
}

.sidebar-nav-parent-header {
  display: flex;
  align-items: center;
  /* padding זהה ללשוניות רגילות */
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.85;
  position: relative;
  /* padding נוסף בצד שמאל לפנות מקום לכפתור בלבד */
  padding-left: 2.5rem;
}

.sidebar-nav-parent-header:hover {
  background-color: rgba(125, 210, 239, 0.1);
  opacity: 1;
}

.sidebar-nav-parent.active .sidebar-nav-parent-header {
  opacity: 1;
}

.sidebar-nav-parent-link {
  display: flex;
  align-items: center;
  color: var(--brand-light);
  text-decoration: none;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.sidebar-nav-parent-link i {
  margin-left: 0.75rem;
  width: 1.25rem;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-nav-parent-link span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* תמיכה ב-span (לא קליק) במקום a */
span.sidebar-nav-parent-link {
  cursor: default;
}

.sidebar-nav-toggle {
  background: none;
  border: none;
  color: var(--brand-light);
  cursor: pointer;
  padding: 0;
  border-radius: 0.375rem;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  /* מיקום אבסולוטי בצד שמאל הפיזי (סוף ב-RTL) */
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-nav-toggle:hover {
  background-color: rgba(125, 210, 239, 0.2);
  border-radius: 0.375rem;
}

.sidebar-nav-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.sidebar-nav-parent.expanded .sidebar-nav-toggle i {
  transform: rotate(180deg);
}

/* תת-תפריט (Submenu) */
.sidebar-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-nav-parent.expanded .sidebar-nav-submenu {
  max-height: 500px;
}

.sidebar-nav-subitem {
  display: block;
  padding: 0.625rem 1.5rem 0.625rem 3rem;
  color: var(--brand-light);
  text-decoration: none;
  transition: all 0.2s;
  border-right: 3px solid transparent;
  opacity: 0.8;
  font-size: 0.9375rem;
}

.sidebar-nav-subitem:hover {
  background-color: rgba(125, 210, 239, 0.15);
  opacity: 1;
}

.sidebar-nav-subitem.active {
  background-color: rgba(125, 210, 239, 0.2);
  border-right-color: var(--brand-light);
  opacity: 1;
  font-weight: 500;
}

.sidebar-nav-subitem i {
  margin-left: 0.5rem;
  width: 1rem;
  font-size: 0.875rem;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* תמיכה במצב מכווץ - תפריט הורה */
.sidebar.collapsed .sidebar-nav-parent {
  border-right: none;
}

.sidebar.collapsed .sidebar-nav-parent-header {
  padding: 0.875rem 0;
  justify-content: center;
  display: flex;
}

/* כשה-link הוא <a> */
.sidebar.collapsed a.sidebar-nav-parent-link {
  justify-content: center;
  padding: 0;
  flex: 0;
  display: flex;
  align-items: center;
}

/* כשה-link הוא <span> - כמו בלשונית "דעת" */
.sidebar.collapsed span.sidebar-nav-parent-link {
  justify-content: center;
  padding: 0;
  flex: 0;
  display: flex !important;
  align-items: center;
}

.sidebar.collapsed .sidebar-nav-toggle {
  display: none;
}

.sidebar.collapsed .sidebar-nav-submenu {
  display: none;
}

/* הסתרת הטקסט (ה-span הפנימי) - לא ה-link עצמו */
.sidebar.collapsed .sidebar-nav-parent-link > span {
  display: none !important;
}

.sidebar.collapsed .sidebar-nav-parent-link i {
  margin: 0;
  font-size: 1.25rem;
  display: inline-flex !important;
}

/* Tooltip למצב מכווץ */
.sidebar.collapsed .sidebar-nav-parent {
  position: relative;
}

.sidebar.collapsed .sidebar-nav-parent::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-medium);
  color: var(--brand-light);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-right: 0.5rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-nav-parent:hover::after {
  opacity: 1;
}

/* תג בטא בסרגל הצד */
.beta-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-radius: 0.25rem;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
  vertical-align: middle;
  animation: pulse-beta 2s ease-in-out infinite;
}

@keyframes pulse-beta {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(125, 210, 239, 0.2);
}

/* Layout - Main Content */
.main-content {
  flex: 1;
  margin-right: 234px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  transition: margin-right 0.3s ease;
}

/* מצב מכווץ - התאמת margin של תוכן ראשי */
.sidebar.collapsed ~ .main-content {
  margin-right: 72px;
}

.topbar {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
}

.topbar-actions > .btn {
  flex: 1;
  min-width: 0;
}

/* שורה ראשית - לחצנים קבועים */
.topbar-main-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.topbar-main-row .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: 36px;
}

/* שורה שניה - bulk actions (מוסתרת כברירת מחדל) */
.topbar-bulk-row {
  display: none;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.topbar-bulk-row.active {
  display: flex;
}

.topbar-bulk-row .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

/* counter - מתנהג כמו לחצן רגיל */
.selection-counter-right {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--brand-medium);
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  background: transparent;
  border: 1.5px solid var(--brand-medium);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
}

.content {
  flex: 1;
  padding: 2rem 1.5rem;
  min-width: 0;
  overflow-x: hidden;
}

/* Layout - רשימת פרויקטים */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* מיכל הסמלים בפינה השמאלית העליונה */
.project-badges-container {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

/* פריט סמל בודד */
.project-badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-badge-item i {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.project-card-header {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

.project-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 2.625rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.project-dates {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.project-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* מזהה פרויקט בכרטיס */
.project-id-card {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  max-width: 100%;
  overflow: hidden;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.project-id-card .project-id-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.project-id-card .project-id-value {
  color: var(--primary-color);
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-id-card .project-id-copy-btn {
  padding: 0.15rem 0.3rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.2rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.project-id-card .project-id-copy-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.project-id-card .project-id-copy-btn:active {
  transform: scale(0.95);
}

/* מזהה קובץ */
.file-id-container {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  max-width: 180px;
  overflow: hidden;
  flex-shrink: 1;
  min-width: 0;
}

.file-id-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.file-id-value {
  color: var(--primary-color);
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.file-id-copy-btn {
  padding: 0.15rem 0.3rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.2rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.file-id-copy-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.file-id-copy-btn:active {
  transform: scale(0.95);
}

/* Layout - רשימת קבצים */
.files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.files-search {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.files-filters {
  display: flex;
  gap: 0.75rem;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  overflow-x: hidden;
}

/* תיקיות - תצוגת גלריה */
.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.folder-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.folder-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.folder-icon {
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.folder-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.38);
}

.folder-info {
  width: 100%;
}

.folder-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.folder-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.folder-arrow {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.folder-item:hover .folder-arrow {
  opacity: 1;
}

/* כפתור חזרה */
.back-to-folders {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.file-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.file-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.file-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.file-icon.file-type-word { color: #2b579a; background: #e7f1ff; }
.file-icon.file-type-excel { color: #217346; background: #e7f5ec; }
.file-icon.file-type-html { color: #e34c26; background: #ffeee8; }
.file-icon.file-type-markdown { color: #083fa1; background: #e6f0ff; }
.file-icon.file-type-image { color: #9333ea; background: #f3e8ff; }
.file-icon.file-type-code { color: #f59e0b; background: #fef3c7; }
.file-icon.file-type-json { color: #10b981; background: #d1fae5; }
.file-icon.file-type-other { color: #64748b; background: #f1f5f9; }

/* צבעים ייחודיים לקבצי קוד ספציפיים */
.file-icon .fa-js { color: #f7df1e; background: #323330; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-python { color: #3776ab; background: #ffd43b; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-java { color: #007396; background: #f8981d; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-php { color: #777bb4; background: #ffffff; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-css3-alt { color: #1572b6; background: #e8f4fb; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-sass { color: #cc6699; background: #f9e8f0; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-less { color: #1d365d; background: #e6ebf2; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-react { color: #61dafb; background: #282c34; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-node-js { color: #339933; background: #f0f7f0; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-git-alt { color: #f05032; background: #ffeee9; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-swift { color: #fa7343; background: #fff4f0; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-docker { color: #2496ed; background: #e8f4fb; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-terminal { color: #4ade80; background: #22272e; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-database { color: #336791; background: #e8f0f7; border-radius: 0.25rem; padding: 0.25rem; }
.file-icon .fa-cog { color: #64748b; background: #f1f5f9; border-radius: 0.25rem; padding: 0.25rem; }

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

.file-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.file-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.file-extension-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: transparent;
  color: #6366f1;
  font-size: 0.56rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  border: 1.5px solid #6366f1;
  border-radius: 0.25rem;
  text-transform: lowercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* צבעים ייחודיים לסיומות קבצים שונות - טקסט ומסגרת בלבד */

/* קבצי JavaScript - צהוב */
.file-type-code .file-extension-badge {
  color: #eab308;
  border-color: #eab308;
}

/* קבצי Word - כחול */
.file-type-word .file-extension-badge {
  color: #2563eb;
  border-color: #2563eb;
}

/* קבצי Excel - ירוק */
.file-type-excel .file-extension-badge {
  color: #16a34a;
  border-color: #16a34a;
}

/* קבצי HTML - אדום-כתום */
.file-type-html .file-extension-badge {
  color: #dc2626;
  border-color: #dc2626;
}

/* קבצי Markdown - כחול כהה */
.file-type-markdown .file-extension-badge {
  color: #1e40af;
  border-color: #1e40af;
}

/* קבצי JSON - ירוק בהיר */
.file-type-json .file-extension-badge {
  color: #059669;
  border-color: #059669;
}

/* קבצי תמונות - סגול */
.file-type-images .file-extension-badge {
  color: #9333ea;
  border-color: #9333ea;
}

/* קבצים אחרים - אפור */
.file-type-other .file-extension-badge {
  color: #64748b;
  border-color: #64748b;
}

/* אפקט hover עדין */
.file-item:hover .file-extension-badge {
  opacity: 0.8;
  transform: scale(1.05);
}

.file-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex; /* Changed from none - now visible by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

/* Hide modal when d-none is applied */
.modal.d-none {
  display: none !important;
}

/* Modal Content */
.modal-content {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.2s ease-out;
  box-sizing: border-box;
  min-width: 0;
}

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

.modal-header {
  padding: 0.625rem 1.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  background: var(--background-secondary);
  flex-wrap: wrap;
}

.modal-footer .btn {
  flex: 1 1 auto;
  min-width: 130px;
  justify-content: center;
}

/* מודאל תמונה */
.modal-dialog-image {
  max-width: min(1440px, 96vw);
  width: min(1440px, 96vw);
  max-height: calc(100vh - 2rem);
}

/* מודאל Markdown */
.modal-dialog-markdown {
  max-width: 90% !important;
  width: 90%;
  max-height: calc(100vh - 10px);
  margin: 0 auto 5px auto;
}

.modal-dialog-markdown .modal-body {
  padding: 1.5rem 4rem;
  max-height: calc(100vh - 150px);
}

.modal-body-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 10.5rem);
}

.image-viewer {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  max-height: none;
  min-height: 0;
  flex: 0 0 auto;
}

.image-modal-img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.fast-comparison {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  clear: both;
  position: relative;
  z-index: 1;
}

.fast-comparison-labels {
  display: none;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  direction: ltr;
}

.fast-comparison-label {
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.fast-comparison-label-after {
  background: rgba(37, 99, 235, 0.9);
}

.fast-comparison-frame {
  position: relative;
  width: min(100%, 980px);
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: transparent;
  direction: ltr;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  flex: 0 0 auto;
  display: block;
  margin: 0 auto;
  line-height: 0;
}

.fast-comparison-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fast-comparison-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.fast-comparison-after-img {
  position: relative;
  z-index: 1;
}

.fast-comparison-before {
  overflow: hidden;
  z-index: 2;
}

.fast-comparison-before .fast-comparison-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
}

.fast-comparison-side-label {
  position: absolute;
  top: 0.75rem;
  z-index: 5;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 999px;
  min-width: 3.6rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.fast-comparison-side-label-after {
  left: 0.75rem;
  background: rgba(37, 99, 235, 0.9);
}

.fast-comparison-side-label-before {
  right: 0.75rem;
}

.fast-comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25), 0 0 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.fast-comparison-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.fast-comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.comparison-output-selector {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: #fff;
}

.comparison-output-selector-title {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comparison-output-chips,
.modal-input-assets-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.comparison-output-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  max-width: 220px;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--text-primary);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.comparison-output-chip.active {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.comparison-output-chip img {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}

.comparison-output-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-input-assets-section strong {
  display: block;
  margin-bottom: 0.5rem;
}

.modal-input-asset-thumb {
  position: relative;
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  flex: 0 0 auto;
}

.modal-input-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-input-asset-thumb span {
  position: absolute;
  inset-inline-start: 0.35rem;
  bottom: 0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.image-metadata {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

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

.image-metadata-item > strong {
  color: var(--primary-color);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.image-metadata-item p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.image-metadata-item span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.image-metadata-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.image-metadata-item ul {
  margin: 0;
  padding-right: 1.5rem;
  list-style-type: disc;
}

.image-metadata-item li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

/* User Avatar in Table */
.user-avatar-cell {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.user-avatar-cell:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.user-avatar-cell:hover::after {
  content: '\f030';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.user-table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  display: block;
}

.user-table-avatar.default {
  background: linear-gradient(135deg, var(--primary-color), #6ba3e8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.modal-dialog {
  background: white;
  border-radius: 0.5rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  box-sizing: border-box;
}

.modal-dialog.modal-dialog-image {
  max-width: min(1440px, 96vw);
  width: min(1440px, 96vw);
  max-height: calc(100vh - 1rem);
}

.modal-dialog-image .modal-header {
  flex: 0 0 auto;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #fff;
  position: relative;
  z-index: 2;
}

.modal-dialog-image .modal-body-image {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 1rem 1.5rem;
  overflow-y: auto;
  scroll-behavior: auto;
}

.modal-dialog-image .modal-footer {
  flex: 0 0 auto;
}

.modal-dialog-image .fast-comparison-frame {
  height: auto;
}

.modal-dialog-image .image-viewer {
  align-items: flex-start;
}

.modal-header {
  padding: 0.625rem 1.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.modal-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  max-width: 100%;
  overflow: hidden;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.image-project-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 0.15rem;
  line-height: 1.2;
}

/* מזהה תמונה במטא-דאטה */
.image-id-in-metadata {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  background-color: #e8f4f8;
  border: 1px solid #b3dce8;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}

.image-id-in-metadata .image-id-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.image-id-in-metadata .image-id-value {
  color: var(--primary-color);
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.image-id-in-metadata .image-id-copy-btn {
  padding: 0.2rem 0.4rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.2rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.image-id-in-metadata .image-id-copy-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.image-id-in-metadata .image-id-copy-btn:active {
  transform: scale(0.95);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 200px);
  overflow-x: hidden;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Markdown viewer */
.markdown-content {
  line-height: 1.8;
}

.markdown-content p {
  margin-bottom: 1rem;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 0.375rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 1rem;
}

.markdown-content a {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.markdown-content a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* הערות שוליים */
.markdown-content sup {
  line-height: 0;
}

.markdown-content .footnotes {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
  font-size: 0.9em;
  color: var(--text-secondary);
}

.markdown-content .footnotes ol {
  padding-right: 2rem;
}

.markdown-content .footnotes li {
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

.markdown-content .footnotes li:target {
  background-color: rgba(37, 99, 235, 0.1);
  padding: 0.5rem;
  margin-right: -0.5rem;
  border-radius: 0.25rem;
  animation: highlight-footnote 2s ease-out;
}

@keyframes highlight-footnote {
  0% {
    background-color: rgba(37, 99, 235, 0.3);
  }
  100% {
    background-color: rgba(37, 99, 235, 0.1);
  }
}

.markdown-content .footnotes .footnote-backref {
  margin-right: 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

.markdown-content sup a {
  text-decoration: none;
  font-weight: bold;
  padding: 0 0.2em;
}

.markdown-content sup a:target {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.markdown-content code {
  background: var(--bg-light);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.markdown-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.markdown-content table th,
.markdown-content table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.markdown-content table th {
  background: var(--bg-light);
  font-weight: 600;
}

/* ציטוטים (blockquotes) */
.markdown-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-right: 4px solid var(--primary-color);
  background: var(--bg-light);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-style: italic;
}

.markdown-content blockquote p {
  margin: 0.5rem 0;
}

.markdown-content blockquote p:first-child {
  margin-top: 0;
}

.markdown-content blockquote p:last-child {
  margin-bottom: 0;
}

/* ציטוטים מקוננים */
.markdown-content blockquote blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-right-width: 3px;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.5);
}

.markdown-content blockquote blockquote blockquote {
  border-right-width: 2px;
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.3);
}

/* עיצוב בתוך ציטוטים */
.markdown-content blockquote code {
  background: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

.markdown-content blockquote pre {
  background: #2d3748;
  font-style: normal;
}

.markdown-content blockquote strong {
  color: var(--text-primary);
  font-style: normal;
}

.markdown-content blockquote ul,
.markdown-content blockquote ol {
  margin: 0.5rem 0;
  padding-right: 1.5rem;
}

/* גלריית תמונות */
.images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

.gallery-item:hover .gallery-tooltip {
  opacity: 1;
  visibility: visible;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* יחס 4:3 */
  overflow: hidden;
  background: var(--bg-light);
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-image.image-error {
  object-fit: contain;
  padding: 10px;
  background: #f8f9fa;
  opacity: 0.7;
}

.ultra-quality-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #1a1a1a;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.6);
  animation: subtle-glow 2s ease-in-out infinite;
}

.ultra-quality-badge i {
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* סמל וידאו */
.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 50%, #ff4444 100%);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4), 0 0 20px rgba(255, 68, 68, 0.2);
  animation: video-pulse 2s ease-in-out infinite;
}

.video-badge i {
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes video-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4), 0 0 20px rgba(255, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5), 0 0 25px rgba(255, 68, 68, 0.3);
  }
}

/* תצוגת אודיו בגלריה ובמודאל */
.audio-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 64, 143, 0.25);
}

.audio-card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(124, 58, 237, 0.22), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.audio-card-icon {
  width: 5.5rem;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  background: white;
  color: var(--primary-color);
  box-shadow: 0 14px 35px rgba(37, 64, 143, 0.16);
}

.audio-card-icon i {
  font-size: 2.25rem;
}

.audio-card-lines {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2rem;
}

.audio-card-lines span {
  width: 0.35rem;
  border-radius: 999px;
  background: rgba(37, 64, 143, 0.48);
}

.audio-card-lines span:nth-child(1) { height: 0.75rem; }
.audio-card-lines span:nth-child(2) { height: 1.35rem; }
.audio-card-lines span:nth-child(3) { height: 2rem; }
.audio-card-lines span:nth-child(4) { height: 1.35rem; }
.audio-card-lines span:nth-child(5) { height: 0.75rem; }

.audio-modal-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 0;
}

.audio-modal-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.audio-modal-lines {
  height: 3rem;
}

.audio-modal-lines span {
  width: 0.5rem;
}

.audio-modal-lines span:nth-child(1) { height: 1rem; }
.audio-modal-lines span:nth-child(2) { height: 2rem; }
.audio-modal-lines span:nth-child(3) { height: 3rem; }
.audio-modal-lines span:nth-child(4) { height: 2rem; }
.audio-modal-lines span:nth-child(5) { height: 1rem; }

.audio-modal-title {
  max-width: 100%;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.audio-player {
  width: 100%;
  border-radius: 999px;
}

.audio-unavailable {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 0.75rem;
  background: rgba(37, 64, 143, 0.05);
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.9rem;
}

@keyframes subtle-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.3);
  }
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.gallery-actions {
  display: flex;
  gap: 0.75rem;
}

.gallery-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.gallery-info {
  padding: 1rem;
  background: white;
}

.gallery-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
}

.gallery-model {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gallery-project {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* שורה משולבת של פרויקט ומודל */
.gallery-project-model {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  gap: 0.5rem;
}

.gallery-project-model .project {
  color: var(--primary-color);
  font-weight: 500;
  flex-shrink: 0;
}

.gallery-project-model .model {
  color: var(--text-secondary);
  text-align: left;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  background: rgba(30, 41, 59, 0.95);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  width: 300px;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(30, 41, 59, 0.95);
}

.gallery-tooltip-content {
  text-align: right;
  direction: rtl;
}

.gallery-tooltip-content strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-tooltip-content p {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: white;
}

.gallery-tooltip-content p:last-child {
  margin-bottom: 0;
}

/* תמיכה בתמונות/לוגו במצב מכווץ */
.sidebar.collapsed .sidebar-logo img {
  height: 45px;
  max-width: 60px;
  margin: 0 auto;
}

/* התאמה למצב מכווץ - סמל רגיל */
.sidebar.collapsed .sidebar-logo i {
  font-size: 1.5rem;
  margin: 0;
}

/* הסתרת תג בטא במצב מכווץ */
.sidebar.collapsed .beta-badge {
  display: none;
}

/* הסתרת קווי הפרדה במצב מכווץ */
.sidebar.collapsed .sidebar-nav > div[style*="border-top"] {
  margin: 0.5rem 0;
  border-top: none !important;
}

/* Tooltips לאייקונים במצב מכווץ (צד שמאל עבור RTL) */
.sidebar.collapsed .sidebar-nav-item {
  position: relative;
}

.sidebar.collapsed .sidebar-nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-medium);
  color: var(--brand-light);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-right: 0.5rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-nav-item:hover::after {
  opacity: 1;
}

/* תגובתיות */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .sidebar.collapsed {
    width: 100%;
  }
  
  .main-content {
    margin-right: 0;
  }
  
  .sidebar.collapsed ~ .main-content {
    margin-right: 0;
  }
  
  /* הסתרת כפתור כיווץ במובייל */
  .sidebar-toggle-btn {
    display: none;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .files-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .files-search {
    max-width: 100%;
  }
  
  .modal-dialog {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-dialog-image {
    max-width: 100%;
    width: 100%;
  }
  
  .modal-dialog-markdown {
    max-width: 100%;
  }
  
  .modal-dialog-markdown .modal-body {
    padding: 1rem 1.5rem;
  }
  
  .image-viewer {
    max-height: none;
    padding: 0.75rem;
  }
  
  .image-modal-img {
    max-height: 330px;
  }

  .fast-comparison-frame {
    height: min(56vh, 520px);
    min-height: 260px;
  }

  .comparison-output-chip {
    min-width: 140px;
  }

  .modal-input-asset-thumb {
    width: 68px;
    height: 68px;
  }
  
  .folders-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .folder-item {
    padding: 1rem 0.75rem;
  }
  
  .folder-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }
  
  .folder-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.38);
  }
  
  .folder-name {
    font-size: 1rem;
  }
  
  .folder-meta {
    font-size: 0.8125rem;
  }
  
  .back-to-folders {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .back-to-folders h3 {
    font-size: 1.125rem;
  }
  
  .images-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .gallery-tooltip {
    width: 250px;
  }
  
  .project-id-card {
    font-size: 0.55rem;
    padding: 0.25rem 0.375rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .project-id-card .project-id-copy-btn {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
  }
  
  .file-id-container {
    font-size: 0.55rem;
    padding: 0.2rem 0.3rem;
    max-width: 120px;
  }
  
  .file-id-copy-btn {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
  }
  
  .file-item {
    flex-wrap: wrap;
  }
  
  .image-id-in-metadata {
    font-size: 0.65rem;
    padding: 0.3rem 0.45rem;
  }
  
  .image-id-in-metadata .image-id-label,
  .image-id-in-metadata .image-id-value {
    font-size: 0.65rem;
  }
  
  .image-id-in-metadata .image-id-copy-btn {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
}




/* ===== Bulk Selection - תמיכה בבחירה מרובה ===== */

.selection-mode-active .gallery-item {
  cursor: pointer;
}

.gallery-item-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: white;
  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.selection-mode-active .gallery-item-checkbox {
  opacity: 1;
  pointer-events: auto;
}

/* רק במצב בחירה - הצגת checkbox ב-hover */
.selection-mode-active .gallery-item:hover .gallery-item-checkbox {
  opacity: 1;
}

.gallery-item-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
  margin: 0;
}

.gallery-item.selected {
  outline: 3px solid var(--primary-color);
  outline-offset: -3px;
}

.gallery-item.selected .gallery-image-wrapper {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.gallery-item.selected .gallery-image {
  opacity: 0.85;
}


/* ======================================
   File Item Bulk Selection
   ====================================== */

/* File item checkbox for bulk selection */
.file-item-checkbox {
  position: relative;
  margin-left: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* הצגת checkbox במצב בחירה */
.selection-mode-active .file-item-checkbox {
  opacity: 1;
  pointer-events: auto;
}

.file-item-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
  margin: 0;
}

/* סימון פריט קובץ שנבחר */
.file-item.selected {
  background-color: rgba(59, 130, 246, 0.1);
  border-right: 4px solid var(--primary-color);
}

/* הוסף cursor pointer למצב בחירה */
.selection-mode-active .file-item {
  cursor: pointer;
}


/* ======================================
   Home Page - דף הבית
   ====================================== */

/* כותרת ברוכים הבאים */
.home-welcome-section {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: linear-gradient(135deg, rgba(37, 64, 143, 0.03) 0%, rgba(125, 210, 239, 0.05) 100%);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.home-welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-welcome-greeting {
  color: var(--text-secondary);
  font-weight: 400;
}

.home-welcome-name {
  color: var(--brand-medium);
  position: relative;
}

.home-welcome-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-medium) 0%, var(--brand-light) 100%);
  border-radius: 2px;
}

.home-welcome-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

/* כרטיסי סטטיסטיקה */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
  overflow: hidden;
}

.home-stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
}

.home-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-medium);
}

.home-stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-stat-content {
  flex: 1;
  min-width: 0;
}

.home-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.home-stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* סקציות כלליות */
.home-section {
  margin-bottom: 2.5rem;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.home-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.home-section-title i {
  color: var(--brand-medium);
}

/* פרויקטים אחרונים */
.home-recent-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 100%;
  overflow: hidden;
}

.home-project-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

.home-project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-medium);
}

.home-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.home-project-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.home-project-date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.home-project-arrow {
  color: var(--brand-medium);
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.home-project-card:hover .home-project-arrow {
  transform: translateX(-4px);
}

/* מצב טעינה */
.home-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.home-loading i {
  font-size: 2rem;
  color: var(--brand-medium);
}

/* מצב ריק */
.home-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
  text-align: center;
  color: var(--text-secondary);
}

.home-empty-state i {
  font-size: 3rem;
  color: var(--brand-light);
  opacity: 0.6;
}

.home-empty-state p {
  font-size: 1rem;
  margin: 0;
  color: var(--text-secondary);
}

/* קיצורי דרך */
.home-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 100%;
  overflow: hidden;
}

.home-shortcut-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
}

.home-shortcut-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-medium);
}

.home-shortcut-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-medium) 0%, var(--brand-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 64, 143, 0.2);
}

.home-shortcut-content {
  flex: 1;
  min-width: 0;
}

.home-shortcut-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.375rem 0;
}

.home-shortcut-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* תגובתיות - מובייל */
@media (max-width: 768px) {
  .home-welcome-section {
    padding: 2rem 1rem 1.5rem;
  }

  .home-welcome-title {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .home-welcome-subtitle {
    font-size: 1rem;
  }

  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .home-stat-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .home-stat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .home-stat-value {
    font-size: 1.75rem;
  }

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

  .home-section-title {
    font-size: 1.25rem;
  }

  .home-recent-projects {
    grid-template-columns: 1fr;
  }
  
  .home-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-files-list {
    grid-template-columns: 1fr;
  }

  .home-shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .home-shortcut-card {
    padding: 1.25rem;
  }

  .home-shortcut-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .home-image-wrapper {
    height: 140px;
  }

  .home-file-icon,
  .home-file-icon-svg {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .home-file-icon-svg img {
    width: 36px;
    height: 36px;
  }
}

/* תמונות אחרונות */
.home-recent-images {
  width: 100%;
}

.home-images-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.home-image-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.home-image-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-medium);
}

.home-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-image-info {
  padding: 0.75rem;
}

.home-image-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

.home-image-model {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* קבצים אחרונים */
.home-recent-files {
  width: 100%;
}

.home-files-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.home-file-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
}

.home-file-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-medium);
}

.home-file-icon,
.home-file-icon-svg {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.home-file-icon-svg img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.home-file-content {
  flex: 1;
  min-width: 0;
}

.home-file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

.home-file-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

