/*
 * Layer Farm — Main Stylesheet
 * Single entry point - imports unified theme system
 * All pages use this file → loads theme.css + main.css
 */

/* ===== Import Bootstrap Icons ===== */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');

/* ===== Import Unified Theme System ===== */
@import url('theme.css');   /* Base theme variables & components */
@import url('main.css');    /* Responsive & mobile styles */
@import url('sidebar.css'); /* Sidebar navigation styles */

/* ===== PERFORMANCE: Fast Animations ===== */
@import url('fast-animations.css'); /* Speed up Bootstrap animations (modals, alerts, etc.) */

/* ===== CRITICAL: Mobile Tabs Nuclear Fix - يجب أن يكون آخر شيء ===== */
@import url('mobile-tabs-nuclear-fix.css'); /* حل جذري لمشكلة التابات على الموبايل */

/* ===== Legacy Compatibility Variables ===== */
/* Deprecated - use theme.css variables in new code */
:root {
  --bg: var(--lf-bg);
  --ink: var(--lf-text);
  --muted: var(--lf-text-muted);
  --line: var(--lf-border);
  --card: var(--lf-bg-secondary);
  --brand: var(--lf-brand);
  --accent: var(--lf-accent);
}

/* ===== Bootstrap Tabs ===== */
/* Let Bootstrap handle tabs completely - removed custom CSS that was interfering */

/* ===== Print Utilities ===== */
@media print {
  @page {
    margin: 0.5cm;
    size: A4;
  }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
}

/* ===== Code Display (for system-check page) ===== */
.codebox,
pre code {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #334155;
}

/* ===== Utility Classes ===== */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }

/* Checkbox z-index fix */
.z-index-2 {
  z-index: 2;
}

/* Hover shadow utility */
.hover-shadow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

/* Empty state styling */
.empty-state {
  animation: fadeIn 0.5s ease-in;
}

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

/* Hide on mobile/tablet utilities */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .hide-tablet {
    display: none !important;
  }
}