/* =============================
   Unified All Styles (unified-all.css)
   تصميم عصري وجميل للهيدر والفوتر
   ============================= */

:root {
  --primary-red: #C1272D;
  --primary-blue: #005BA1;
  --primary-yellow: #FFD400;
  --primary-green: #009640;
  --dark-gray: #1C1C1C;
  --light-gray: #F1F1F1;
  
  /* ألوان إضافية للتصميم العصري */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  
  /* ظلال وتأثيرات */
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  
  /* انتقالات */
  --transition-fast: all 0.3s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* أبعاد */
  --header-height: 80px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  /* Admin Panel Variables */
  --admin-primary: #2563eb;
  --admin-primary-dark: #1d4ed8;
  --admin-secondary: #64748b;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --admin-info: #06b6d4;
  --admin-light: #f8fafc;
  --admin-dark: #1e293b;
  --admin-white: #ffffff;
  --admin-gray-50: #f9fafb;
  --admin-gray-100: #f3f4f6;
  --admin-gray-200: #e5e7eb;
  --admin-gray-300: #d1d5db;
  --admin-gray-400: #9ca3af;
  --admin-gray-500: #6b7280;
  --admin-gray-600: #4b5563;
  --admin-gray-700: #374151;
  --admin-gray-800: #1f2937;
  --admin-gray-900: #111827;
  --admin-sidebar-width: 280px;
  --admin-header-height: 70px;
  --admin-border-radius: 8px;
  --admin-border-radius-lg: 12px;
  --admin-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --admin-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --admin-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --admin-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  --admin-transition: all 0.3s ease;
  --admin-transition-fast: all 0.2s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* ===== MODERN HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 91, 161, 0.1);
  transition: var(--transition-smooth);
  height: var(--header-height);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
}

/* Fix RTL navigation issues */
[dir="rtl"] .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="rtl"] .navbar-nav .nav-item {
  margin-right: 0;
  margin-left: 0;
}

[dir="rtl"] .navbar-nav .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: right;
}

/* Ensure proper RTL navigation order */
[dir="rtl"] .navbar-nav .nav-item:first-child {
  margin-right: 0;
}

[dir="rtl"] .navbar-nav .nav-item:last-child {
  margin-left: 0;
}

/* Fix company name display */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar-brand span {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Responsive company name */
@media (max-width: 768px) {
  .navbar-brand span {
    max-width: 120px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand span {
    display: none;
  }
}

/* Header animation on load */
.header {
  animation: headerSlideDown 0.8s ease-out;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-transparent {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-transparent .nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
}

.header-transparent .nav-link.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.15);
}

.header-transparent .navbar-brand span {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.header-transparent .navbar-toggler {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-transparent .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header-transparent .dropdown-menu {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-transparent .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

  .header-transparent .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .header-transparent.scrolled .navbar-nav {
    background: rgba(255, 255, 255, 0.98);
  }
  
  .header-transparent.scrolled .nav-link {
    color: var(--dark-gray) !important;
  }
  
  .header-transparent.scrolled .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 91, 161, 0.1);
  }
  
  .header-transparent.scrolled .dropdown-item {
    color: var(--dark-gray);
  }
  
  .header-transparent.scrolled .dropdown-item:hover {
    background: rgba(0, 91, 161, 0.1);
    color: var(--primary-blue);
  }
  
  .header-transparent.scrolled .dropdown-item.active {
    background: rgba(0, 91, 161, 0.15);
    color: var(--primary-blue);
  }

.header-transparent .dropdown-item.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.navbar-toggler:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Loading state */
.header.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* Smooth transitions for all interactive elements */
.nav-link,
.dropdown-item,
.navbar-brand,
.navbar-toggler,
.whatsapp-button,
.back-to-top {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
  border-bottom: 1px solid rgba(0, 91, 161, 0.15);
  animation: headerScrolled 0.3s ease-out;
}

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

.header.scrolled .nav-link {
  color: var(--dark-gray) !important;
}

.header.scrolled .navbar-brand span {
  color: var(--primary-blue);
}

.header-transparent.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 91, 161, 0.15);
}

.header-transparent.scrolled .nav-link {
  color: var(--dark-gray) !important;
  text-shadow: none;
}

.header-transparent.scrolled .navbar-brand span {
  color: var(--primary-blue);
  text-shadow: none;
}

.header-transparent.scrolled .navbar-toggler {
  background: rgba(0, 91, 161, 0.1);
}

.header-transparent.scrolled .navbar-toggler:hover {
  background: rgba(0, 91, 161, 0.2);
}

.navbar {
  height: var(--header-height);
  padding: 0 1rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  transition: var(--transition-fast);
  height: 45px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.navbar-brand:hover img {
  transform: rotate(2deg);
  box-shadow: var(--shadow-medium);
}

.navbar-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.navbar-brand span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 161, 0.1), transparent);
  transition: left 0.6s ease;
}

.navbar-brand:hover span::before {
  left: 100%;
}

.navbar-nav {
  gap: 0.5rem;
  align-items: center;
  display: flex;
  flex-direction: row;
}

/* RTL Navigation Fix */
[dir="rtl"] .navbar-nav {
  flex-direction: row-reverse;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-gray) !important;
  padding: 0.75rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  text-decoration: none;
  margin: 0 0.25rem;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: var(--transition-fast);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 70%;
}

.nav-link:hover {
  color: var(--primary-blue) !important;
  background: rgba(0, 91, 161, 0.08);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-blue) !important;
  background: rgba(0, 91, 161, 0.12);
  font-weight: 700;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: activeLinkPulse 2s infinite;
}

@keyframes activeLinkPulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scaleX(1.2);
  }
}

/* Language Switcher */
.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 120px;
  animation: dropdownFadeIn 0.3s ease-out;
}

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

.dropdown-item {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: var(--gradient-blue);
  color: white;
  transform: translateX(3px);
}

.dropdown-item.active {
  background: var(--primary-blue);
  color: white;
}

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  background: rgba(0, 91, 161, 0.1);
}

.navbar-toggler:focus {
  box-shadow: none;
  background: rgba(0, 91, 161, 0.15);
}

.navbar-toggler:hover {
  background: rgba(0, 91, 161, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 91, 161, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== MODERN FOOTER ===== */
.footer {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 91, 161, 0.1) 0%, rgba(193, 39, 45, 0.1) 100%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-yellow);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding-left: 1.5rem;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

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

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info i {
  width: 20px;
  height: 20px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  transition: var(--transition-fast);
}

.contact-info li:hover i {
  transform: scale(1.2);
  background: var(--gradient-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-light);
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-medium);
  background: var(--gradient-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: white;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-fast);
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-heavy);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-fast);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 0;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-medium);
    animation: mobileMenuSlideDown 0.3s ease-out;
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* RTL Mobile Navigation */
  [dir="rtl"] .navbar-nav {
    align-items: flex-end;
  }
  
  @keyframes mobileMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-link {
    padding: 1rem !important;
    margin: 0.25rem 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
  }
  
  .nav-link:hover {
    background: rgba(0, 91, 161, 0.1) !important;
  }
  
  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid rgba(0, 91, 161, 0.1);
  }
  
  .dropdown-item {
    text-align: center;
    padding: 0.75rem;
  }
  
  .nav-link.active::after {
    width: 20px;
    height: 2px;
  }
  
  .header-transparent .navbar-nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
  }
  
  .header-transparent .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .header-transparent .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  .header-transparent .dropdown-menu {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header-transparent .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
  }
  
  .header-transparent .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 70px;
  }
  
  .navbar-brand span {
    font-size: 0.9rem;
  }
  
  .navbar-brand img {
    height: 35px;
  }
  
  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 20px;
    left: 20px;
  }
}

/* RTL Support */
[dir="rtl"] .footer h5::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links a::before {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}

[dir="rtl"] .footer-links a:hover::before {
  transform: scaleX(-1) translateX(-5px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .contact-info i {
  margin-left: 0.75rem;
  margin-right: 0;
}

[dir="rtl"] .whatsapp-button {
  right: auto;
  left: 30px;
}

[dir="rtl"] .back-to-top {
  left: auto;
  right: 30px;
}

@media (max-width: 767.98px) {
  [dir="rtl"] .whatsapp-button {
    right: auto;
    left: 20px;
  }
  
  [dir="rtl"] .back-to-top {
    left: auto;
    right: 20px;
  }
}

/* ===================================
   Unified All Styles - Modern Clean Theme
   تصميم عصري ومتناسق للهيدر والفوتر والموقع
   =================================== */

/* تحديث متغيرات CSS الأساسية */
:root {
  /* ألوان الهوية */
  --primary-red: #C1272D;
  --primary-blue: #005BA1;
  --primary-yellow: #FFD400;
  --primary-green: #009640;
  --dark-gray: #1C1C1C;
  --light-gray: #F1F1F1;
  --white: #ffffff;
  --black: #000000;

  /* تدرجات حديثة */
  --gradient-primary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-secondary: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);

  /* ظلال عصرية */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.2);

  /* انتقالات سلسة */
  --transition-fast: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* أبعاد */
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ====================
   القواعد الأساسية المحسنة
==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* ===================
   الهيدر العصري المحسن
=================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: var(--transition-fast);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-brand:hover {
  opacity: 0.9;
}

.navbar-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  background: var(--gradient-primary);
  color: white;
}

/* ===================
   الفوتر العصري المحسن
=================== */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 3rem 1rem 1rem;
  text-align: center;
}

.footer h5 {
  font-size: 1.2rem;
  color: var(--primary-yellow);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--primary-yellow);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* زر واتساب محسن */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  z-index: 1000;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .header {
    padding: 0 1rem;
  }

  .whatsapp-button {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
} 

/* ===== HERO VIDEO RESPONSIVE ===== */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
    max-height: 500px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero Slogan Overlay */
.hero-slogan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-slogan {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.desc-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

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

.hero-btns a {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btns a:hover {
    background: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-btns a:first-child {
    background: var(--primary-red);
}

.hero-btns a:first-child:hover {
    background: white;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

@media (max-width: 991.98px) {
    .hero-video-wrapper {
        height: 38vh;
        min-height: 180px;
        max-height: 260px;
    }
    
    .hero-video {
        min-height: 180px;
        max-height: 260px;
    }
    
    .hero-slogan-overlay {
        padding: 1.5rem;
        width: 95%;
    }
    
    .main-slogan {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .desc-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btns {
        gap: 0.75rem;
    }
    
    .hero-btns a {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .hero-video-wrapper {
        height: 50vh;
        min-height: 250px;
    }
    
    .hero-slogan-overlay {
        padding: 1rem;
        width: 98%;
    }
    
    .main-slogan {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .desc-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-btns a {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

/* =============================
   ADMIN PANEL STYLES
   ============================= */

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

/* RTL Support for Admin */
.rtl, [dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.ltr, [dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Admin Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Cairo', 'Inter', sans-serif;
    background-color: var(--admin-gray-50);
    color: var(--admin-gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--admin-sidebar-width);
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: var(--admin-white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--admin-transition);
    box-shadow: var(--admin-shadow-lg);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--admin-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    margin-left: 0.75rem;
    border-radius: var(--admin-border-radius);
    object-fit: cover;
}

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

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--admin-transition);
    border-radius: 0 var(--admin-border-radius) var(--admin-border-radius) 0;
    margin-right: 0.5rem;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--admin-white);
    transform: translateX(-5px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--admin-white);
    font-weight: 600;
    box-shadow: var(--admin-shadow-md);
}

.nav-icon {
    width: 20px;
    margin-left: 0.75rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: var(--admin-gray-50);
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--admin-transition);
}

/* Navbar */
.navbar {
    background: var(--admin-white);
    border-bottom: 1px solid var(--admin-gray-200);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--admin-header-height);
    box-shadow: var(--admin-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-weight: 700;
    color: var(--admin-primary);
    font-size: 1.25rem;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: var(--admin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Content Container */
.container-fluid {
    padding: 1.5rem;
    flex: 1;
}

/* Cards */
.card {
    background: var(--admin-white);
    border: none;
    border-radius: var(--admin-border-radius-lg);
    box-shadow: var(--admin-shadow-sm);
    transition: var(--admin-transition);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.card-header {
    background: var(--admin-white);
    border-bottom: 1px solid var(--admin-gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--admin-dark);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--admin-light);
    border-top: 1px solid var(--admin-gray-200);
    padding: 1rem 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--admin-white);
    border-radius: var(--admin-border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-sm);
    transition: var(--admin-transition);
    border: 1px solid var(--admin-gray-200);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--admin-shadow-md);
    transform: translateY(-3px);
}

.stat-card.primary {
    border-left: 4px solid var(--admin-primary);
}

.stat-card.success {
    border-left: 4px solid var(--admin-success);
}

.stat-card.info {
    border-left: 4px solid var(--admin-info);
}

.stat-card.warning {
    border-left: 4px solid var(--admin-warning);
}

.stat-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin: 0;
    line-height: 1;
}

.stat-info p {
    color: var(--admin-gray-600);
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.stat-info small {
    color: var(--admin-gray-500);
    font-size: 0.875rem;
}

.stat-icon {
    font-size: 3rem;
    color: var(--admin-primary);
    opacity: 0.8;
}

.stat-card.success .stat-icon {
    color: var(--admin-success);
}

.stat-card.info .stat-icon {
    color: var(--admin-info);
}

.stat-card.warning .stat-icon {
    color: var(--admin-warning);
}

/* Buttons */
.btn {
    border-radius: var(--admin-border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--admin-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--admin-primary);
    color: var(--admin-white);
}

.btn-primary:hover {
    background: var(--admin-primary-dark);
    color: var(--admin-white);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--admin-success);
    color: var(--admin-white);
}

.btn-warning {
    background: var(--admin-warning);
    color: var(--admin-white);
}

.btn-danger {
    background: var(--admin-danger);
    color: var(--admin-white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--admin-gray-300);
    color: var(--admin-gray-700);
}

.btn-outline:hover {
    background: var(--admin-gray-100);
    border-color: var(--admin-gray-400);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--admin-gray-300);
    border-radius: var(--admin-border-radius);
    padding: 0.75rem;
    transition: var(--admin-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--admin-gray-700);
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

.table th {
    background: var(--admin-gray-50);
    border-bottom: 2px solid var(--admin-gray-200);
    padding: 1rem;
    font-weight: 600;
    color: var(--admin-gray-900);
    text-align: right;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--admin-gray-200);
    vertical-align: middle;
    color: var(--admin-gray-700);
}

.table tbody tr:hover {
    background-color: var(--admin-gray-50);
    transition: background-color 0.2s ease;
}

.table-responsive {
    border-radius: var(--admin-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--admin-shadow-sm);
    background: var(--admin-white);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--admin-border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--admin-success);
    border-left: 4px solid var(--admin-success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--admin-danger);
    border-left: 4px solid var(--admin-danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--admin-warning);
    border-left: 4px solid var(--admin-warning);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--admin-info);
    border-left: 4px solid var(--admin-info);
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--admin-border-radius-lg);
    box-shadow: var(--admin-shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--admin-gray-200);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--admin-gray-200);
    padding: 1.5rem;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--admin-border-radius);
    box-shadow: var(--admin-shadow-lg);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--admin-gray-700);
    transition: var(--admin-transition);
}

.dropdown-item:hover {
    background: var(--admin-gray-100);
    color: var(--admin-gray-900);
}

/* Pagination */
.pagination {
    margin: 0;
}

.page-link {
    border: none;
    color: var(--admin-gray-600);
    padding: 0.5rem 0.75rem;
    transition: var(--admin-transition);
}

.page-link:hover {
    background: var(--admin-gray-100);
    color: var(--admin-gray-900);
}

.page-item.active .page-link {
    background: var(--admin-primary);
    color: var(--admin-white);
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--admin-sidebar-width);
        position: fixed;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .container-fluid {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .container-fluid {
        padding: 0.75rem;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* RTL Support for Admin */
[dir="rtl"] .nav-link {
    border-radius: var(--admin-border-radius) 0 0 var(--admin-border-radius);
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .nav-link:hover {
    transform: translateX(5px);
}

[dir="rtl"] .sidebar-brand img {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .nav-icon {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .form-check {
    padding-right: 1.5rem;
    padding-left: 0;
}

[dir="rtl"] .form-check-input {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .input-group-text {
    border-radius: 0 var(--admin-border-radius) var(--admin-border-radius) 0;
}

[dir="rtl"] .input-group .form-control {
    border-radius: var(--admin-border-radius) 0 0 var(--admin-border-radius);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utility Classes */
.text-primary { color: var(--admin-primary) !important; }
.text-success { color: var(--admin-success) !important; }
.text-warning { color: var(--admin-warning) !important; }
.text-danger { color: var(--admin-danger) !important; }
.text-info { color: var(--admin-info) !important; }

.bg-primary { background-color: var(--admin-primary) !important; }
.bg-success { background-color: var(--admin-success) !important; }
.bg-warning { background-color: var(--admin-warning) !important; }
.bg-danger { background-color: var(--admin-danger) !important; }
.bg-info { background-color: var(--admin-info) !important; }

.border-primary { border-color: var(--admin-primary) !important; }
.border-success { border-color: var(--admin-success) !important; }
.border-warning { border-color: var(--admin-warning) !important; }
.border-danger { border-color: var(--admin-danger) !important; }
.border-info { border-color: var(--admin-info) !important; }

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--admin-gray-200);
    border-top: 4px solid var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Table Responsive Enhancements */
@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .table th {
        font-size: 0.8rem;
    }
    
    /* Hide less important columns on mobile */
    .table .d-sm-none,
    .table .d-md-none {
        display: none !important;
    }
}

/* Card-based table view for mobile */
@media (max-width: 767px) {
    .table-card-view {
        display: block;
    }
    
    .table-card-view .table,
    .table-card-view .table thead,
    .table-card-view .table tbody,
    .table-card-view .table th,
    .table-card-view .table td,
    .table-card-view .table tr {
        display: block;
    }
    
    .table-card-view .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-card-view .table tr {
        border: 1px solid var(--admin-gray-200);
        border-radius: var(--admin-border-radius);
        margin-bottom: 1rem;
        background: var(--admin-white);
        box-shadow: var(--admin-shadow-sm);
    }
    
    .table-card-view .table td {
        border: none;
        position: relative;
        padding: 0.75rem 1rem;
        padding-right: 50%;
        text-align: right;
        border-bottom: 1px solid var(--admin-gray-100);
    }
    
    .table-card-view .table td:before {
        content: attr(data-label);
        position: absolute;
        right: 1rem;
        width: 45%;
        font-weight: 600;
        color: var(--admin-gray-500);
        font-size: 0.8rem;
    }
    
    .table-card-view .table td:last-child {
        border-bottom: none;
    }
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.table-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Table Status Badges */
.table .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.table .badge.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--admin-success);
}

.table .badge.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--admin-danger);
}

.table .badge.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--admin-warning);
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.table-search {
    flex: 1;
    max-width: 300px;
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 767px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-search {
        max-width: none;
    }
    
    .table-filters {
        justify-content: center;
    }
}

/* Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--admin-gray-200);
}

.pagination-info {
    color: var(--admin-gray-600);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    gap: 0.25rem;
}

.pagination-controls .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--admin-border-radius);
}

@media (max-width: 767px) {
    .table-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination-controls .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Loading and Empty States */
.table-loading {
    text-align: center;
    padding: 2rem;
    color: var(--admin-gray-500);
}

.table-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--admin-gray-300);
    border-radius: 50%;
    border-top-color: var(--admin-primary);
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--admin-gray-500);
}

.table-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.table-empty h4 {
    margin-bottom: 0.5rem;
    color: var(--admin-gray-600);
}

.table-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== MODERN VIDEO CONTROLS ===== */
.video-controls {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 20;
  display: flex;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-video-wrapper:hover .video-controls {
  opacity: 1;
}

.video-controls button {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-controls .svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Video Loading Spinner */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin: 0 auto 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

.scroll-indicator span {
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Video Fallback */
.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

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

/* Animation Classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Video Controls */
@media (max-width: 768px) {
  .video-controls {
    bottom: 20px;
    left: 20px;
    gap: 10px;
  }
  
  .video-controls button {
    width: 40px;
    height: 40px;
  }
  
  .video-controls .svg-icon {
    width: 16px;
    height: 16px;
  }
  
  .scroll-indicator {
    bottom: 80px;
  }
  
  .scroll-arrow {
    width: 25px;
    height: 25px;
  }
}

/* Fix RTL Video Controls */
[dir="rtl"] .video-controls {
  left: auto;
  right: 30px;
}

[dir="rtl"] .scroll-indicator {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

@media (max-width: 768px) {
  [dir="rtl"] .video-controls {
    right: 20px;
  }
}

/* Modern Hero Improvements */
.hero-video-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slogan-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
}

.main-slogan {
  background: linear-gradient(45deg, #FFD400, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Modern Button Styles */
.hero-btns a {
  background: linear-gradient(135deg, var(--primary-blue), #4facfe);
  border: none;
  box-shadow: 0 8px 25px rgba(0, 91, 161, 0.3);
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-btns a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-btns a:hover::before {
  left: 100%;
}

.hero-btns a:first-child {
  background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
  box-shadow: 0 8px 25px rgba(193, 39, 45, 0.3);
}

/* Responsive Improvements */
@media (max-width: 991.98px) {
  .hero-slogan-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
  }
  
  .main-slogan {
    font-size: 2.2rem;
  }
  
  .video-controls button {
    width: 45px;
    height: 45px;
  }
  
  .video-controls .svg-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 767.98px) {
  .hero-slogan-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
  }
  
  .main-slogan {
    font-size: 1.8rem;
  }
  
  .desc-text {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .table-actions,
    .pagination,
    .video-controls,
    .scroll-indicator {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #000 !important;
        padding: 0.5rem !important;
    }
} 