@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);
  --opaque-button-border-intensity: -8;
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);
  --background: #ffffff;
  --foreground: #1f2937;
  --border: #e5e7eb;
  --card: #f9fafb;
  --card-foreground: #1f2937;
  --card-border: #e5e7eb;
  --sidebar: #f3f4f6;
  --sidebar-foreground: #1f2937;
  --sidebar-border: #e5e7eb;
  --primary: #8B5CF6;
  --primary-foreground: #ffffff;
  --secondary: #e5e7eb;
  --secondary-foreground: #1f2937;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --accent: #ede9fe;
  --accent-foreground: #1f2937;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --input: #d1d5db;
  --ring: #8B5CF6;
  --radius: 0.5rem;
  --font-sans: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
}

.dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);
  --opaque-button-border-intensity: 9;
  --elevate-1: rgba(255,255,255, .04);
  --elevate-2: rgba(255,255,255, .09);
  --background: #111827;
  --foreground: #f9fafb;
  --border: #374151;
  --card: #1f2937;
  --card-foreground: #f9fafb;
  --card-border: #374151;
  --sidebar: #1f2937;
  --sidebar-foreground: #f9fafb;
  --sidebar-border: #374151;
  --primary: #a78bfa;
  --primary-foreground: #ffffff;
  --secondary: #374151;
  --secondary-foreground: #f9fafb;
  --muted: #374151;
  --muted-foreground: #9ca3af;
  --accent: #3b2f63;
  --accent-foreground: #f9fafb;
  --destructive: #f87171;
  --destructive-foreground: #ffffff;
  --input: #4b5563;
  --ring: #a78bfa;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--muted);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-success {
  background-color: #10b981;
  color: white;
}

.badge-warning {
  background-color: #f59e0b;
  color: white;
}

.badge-danger {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 5px 10px 5px 5px;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .navbar-brand {
    gap: 0.5rem;
    font-size: 1.25rem;
  }
}

.navbar-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.navbar-nav a:hover {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .navbar-actions {
    gap: 0.5rem;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  overflow: hidden;
}

.hero-slideshow {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  width: 90%;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out;
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.slide-buttons {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.slide-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.slide-prev {
  left: 2rem;
}

.slide-next {
  right: 2rem;
}

[dir="rtl"] .slide-prev {
  left: auto;
  right: 2rem;
}

[dir="rtl"] .slide-next {
  right: auto;
  left: 2rem;
}

.slide-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator:hover {
  background: rgba(255,255,255,0.6);
}

.slide-indicator.active {
  background: var(--primary);
  width: 32px;
  border-radius: 6px;
}

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

@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .slide-nav {
    width: 40px;
    height: 40px;
  }
  
  .slide-prev {
    left: 1rem;
  }
  
  .slide-next {
    right: 1rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-buttons .btn {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.hero-buttons .btn-primary {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.service-card-with-image {
  padding: 0;
  overflow: hidden;
}

.service-card-with-image .service-content {
  padding: 1.5rem 2rem 2rem;
}

.service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  flex-grow: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.portfolio-image {
  height: 200px;
  background-color: var(--muted);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  padding: 4rem 0;
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.cta-section {
  background-color: var(--card);
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--border);
}

[dir="rtl"] .timeline::before {
  left: 50%;
  right: auto;
}

.timeline-item {
  position: relative;
  padding: 2rem 0;
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 55%;
  text-align: right;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: 55%;
  text-align: left;
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-section {
    grid-template-columns: 3fr 2fr;
  }
}

.contact-form {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.contact-info-card h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background-color: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.usecase-card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.usecase-card-with-image {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .usecase-card-with-image {
    grid-template-columns: 300px 1fr;
  }
}

.usecase-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .usecase-image {
    height: 100%;
    min-height: 280px;
  }
}

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

.usecase-card-with-image .usecase-content {
  padding: 2rem;
}

.usecase-header {
  margin-bottom: 1.5rem;
}

.usecase-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.usecase-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .usecase-sections {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usecase-section {
  padding: 1.5rem;
  background-color: var(--background);
  border-radius: var(--radius);
}

.usecase-section h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.usecase-section p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background-color: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

[dir="rtl"] .admin-sidebar {
  border-right: none;
  border-left: 1px solid var(--sidebar-border);
}

.admin-sidebar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.admin-nav {
  list-style: none;
}

.admin-nav li {
  margin-bottom: 0.5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--sidebar-foreground);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background-color: var(--accent);
  color: var(--primary);
}

.admin-content {
  flex: 1;
  margin-left: 250px;
  padding: 2rem;
}

[dir="rtl"] .admin-content {
  margin-left: 0;
  margin-right: 250px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-stat-card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.admin-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

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

[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td {
  text-align: right;
}

.admin-table th {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.admin-table tr:hover {
  background-color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.dark .alert-success {
  background-color: #064e3b;
  color: #a7f3d0;
  border-color: #065f46;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.dark .alert-error {
  background-color: #7f1d1d;
  color: #fecaca;
  border-color: #991b1b;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.empty-state svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover,
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--muted);
  border-radius: var(--radius);
}

.language-switcher a {
  padding: 0.35rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .language-switcher a {
    padding: 0.5rem 0.75rem;
  }
}

.language-switcher a.active {
  background-color: var(--background);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.language-switcher.desktop-only {
  display: flex;
}

.language-switcher.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .language-switcher.desktop-only {
    display: none;
  }
  .language-switcher.mobile-only {
    display: flex;
  }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background-color: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.theme-toggle:hover {
  background-color: var(--muted);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: -250px;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  [dir="rtl"] .admin-sidebar {
    left: auto;
    right: -250px;
    transition: right 0.3s ease;
  }
  
  .admin-sidebar.open {
    left: 0;
  }
  
  [dir="rtl"] .admin-sidebar.open {
    right: 0;
  }
  
  .admin-content {
    margin-left: 0;
  }
  
  [dir="rtl"] .admin-content {
    margin-right: 0;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-content {
    width: calc(100% - 3rem);
    margin-left: 3rem !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  [dir="rtl"] .timeline-content {
    margin-left: 0 !important;
    margin-right: 3rem !important;
    text-align: right !important;
  }
  
  .timeline-year {
    left: 1rem;
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
