/* متغيرات الألوان والتأثيرات */
:root {
  --darker: #1a1b1e;
  --dark: #1e1f23;
  --border-color: rgba(255, 255, 255, 0.1);
  --primary: #6c5ce7;
  --primary-dark: #5a49d6;
  --success: #2ecc71;
  --danger: #e74c3c;
  --yellow: #f1c40f;
  --gray: #b5bac1;
  --light: #ffffff;
}

/* تأثيرات زجاجية عامة */
.glass-effect {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* تصميم السايدبار */
.sidebar {
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background: linear-gradient(180deg, 
      rgba(26, 27, 30, 0.95) 0%, 
      rgba(30, 31, 35, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 15px rgba(37, 99, 235, 0.5); }
  to { box-shadow: 0 0 25px rgba(37, 99, 235, 0.8); }
}

.avatar-border {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 2px;
  background: var(--darker);
  border: 2px solid rgba(37, 99, 235, 0.3);
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  transition: all 0.3s ease;
  background: var(--darker);
}

.avatar-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--darker);
  box-shadow: 0 0 0 2px #3b82f6;
  z-index: 2;
}

.avatar-status.admin {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.avatar-status.user {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.user-info {
  margin-top: 0.5rem;
}

.user-name-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin: 0;
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(45deg, #22c55e, #16a34a);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: white;
}

.admin-badge i {
  font-size: 0.8rem;
}

/* تنسيقات القائمة */
.sidebar-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--light);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.nav-item.active {
  background: linear-gradient(45deg, 
      rgba(108, 92, 231, 0.2), 
      rgba(90, 73, 214, 0.2)
  );
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.nav-item i {
  width: 24px;
  margin-left: 0.8rem;
  font-size: 1.1rem;
}

.nav-badge {
  position: absolute;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

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

.section-title {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

/* تنسيقات تذييل السايدبار */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* زر القائمة المتحرك للموبايل */
.mobile-floating-menu-btn {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
  transition: all 0.3s ease;
}

.mobile-floating-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-floating-menu-btn.active {
  background: var(--danger);
}

/* طبقة التعتيم للموبايل */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
}

.overlay.active {
  display: block;
}

/* تخطيط المحتوى الرئيسي */
.main-container {
  margin-right: 280px;
  padding: 2rem;
  min-height: 100vh;
  transition: margin-right 0.3s ease;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .mobile-floating-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-container {
    margin-right: 0;
    padding: 1rem;
    padding-bottom: 80px;
  }
}

/* تصميم بطاقات المنتجات */
.product-card {
  background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.product-card:hover::before {
  transform: translateX(100%);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* نسبة 1:1 */
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-title {
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, #fff, #b5bac1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
}

.product-description {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(108, 92, 231, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(108, 92, 231, 0.3);
  z-index: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
}

.buy-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.buy-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.buy-button i {
  font-size: 1rem;
}

/* تصميم شبكة المنتجات */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

/* تأثيرات التحميل التدريجي */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* تأثيرات الإشعارات */
.notification {
  background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: var(--light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification i {
  font-size: 1.2rem;
}

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.success i {
  color: var(--success);
}

.notification.error {
  border-left: 4px solid var(--danger);
}

.notification.error i {
  color: var(--danger);
}

.notification.info {
  border-left: 4px solid var(--primary);
}

.notification.info i {
  color: var(--primary);
}

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

/* تحسين التمرير */
.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* تجاوب مع الشاشات المختلفة */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
  
  .product-card {
    padding: 1rem;
  }
  
  .product-title {
    font-size: 1rem;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
  
  .buy-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* تأثيرات التمرير */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* تنسيقات نوافذ التأكيد */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass-effect);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* نافذة تأكيد الشراء */
.confirmation-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-preview {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

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

.confirmation-title h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, #b5bac1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.confirmation-title p {
  color: var(--gray);
  font-size: 0.95rem;
}

.product-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.product-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--light);
}

.product-price-confirm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.balance-preview {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.current-balance {
  color: var(--primary);
  font-weight: 600;
}

.product-cost {
  color: var(--danger);
  font-weight: 600;
}

.remaining-balance {
  color: var(--success);
  font-weight: 600;
}

.promo-code-container {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.promo-code-input-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gray);
}

.promo-input-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.promo-input-wrapper input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--light);
  font-family: inherit;
}

.apply-promo-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.apply-promo-btn:hover {
  filter: brightness(1.1);
}

.apply-promo-btn .btn-text {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.apply-promo-btn .btn-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.apply-promo-btn.loading .btn-text {
  opacity: 0;
}

.apply-promo-btn.loading .btn-loading {
  opacity: 1;
}

.promo-error {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 8px;
  color: #ff7675;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-success {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 8px;
  color: #55efc4;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.promo-success i, .promo-error i {
  font-size: 1.2rem;
}

.promo-success-details p {
  margin-bottom: 0.3rem;
}

.confirmation-btns {
  display: flex;
  gap: 1rem;
}

.confirm-btn, .cancel-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.confirm-btn {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
}

.confirm-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--light);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* تنسيقات نافذة النجاح والخطأ */
.success-modal, .error-modal, .loading-modal {
  text-align: center;
  padding: 2rem;
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.success-icon {
  background: rgba(46, 204, 113, 0.2);
  color: #55efc4;
  animation: pulse 2s infinite;
}

.error-icon {
  background: rgba(231, 76, 60, 0.2);
  color: #ff7675;
  animation: shake 0.5s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.success-btn, .error-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.success-btn {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
}

.error-btn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

.success-btn:hover, .error-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.loading-spinner {
  margin: 0 auto 1.5rem;
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

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

/* تنسيقات رأس المتجر */
.shop-header {
  position: relative;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background: rgba(26, 27, 30, 0.8);
}

.shop-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(108, 92, 231, 0.2),
    rgba(90, 73, 214, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
}

.shop-title {
  position: relative;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.shop-subtitle {
  position: relative;
  color: var(--gray);
  margin-bottom: 1.5rem;
  z-index: 1;
}

.user-points-container {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-points {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-points i {
  color: #FDCB6E;
  font-size: 1.3rem;
}

.points-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.points-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.shop-filters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-container {
  position: relative;
  margin-right: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.search-input {
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 250px;
  color: var(--light);
  font-family: inherit;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--gray);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--light);
}

/* تحسينات لشبكة المنتجات على الأجهزة المختلفة */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .shop-header {
    padding: 1.5rem;
  }
  
  .shop-title {
    font-size: 1.8rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .search-container {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .search-input {
    width: 100%;
  }
  
  .filter-btn {
    flex: 1;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .confirmation-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-preview {
    width: 100px;
    height: 100px;
  }
  
  .confirmation-btns {
    flex-direction: column;
  }
}

/* تأثيرات التمرير */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* تنسيقات نوافذ التأكيد */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass-effect);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* نافذة تأكيد الشراء */
.confirmation-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-preview {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

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

.confirmation-title h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, #b5bac1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.confirmation-title p {
  color: var(--gray);
  font-size: 0.95rem;
}

.product-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.product-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--light);
}

.product-price-confirm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.balance-preview {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.current-balance {
  color: var(--primary);
  font-weight: 600;
}

.product-cost {
  color: var(--danger);
  font-weight: 600;
}

.remaining-balance {
  color: var(--success);
  font-weight: 600;
}

.promo-code-container {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.promo-code-input-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gray);
}

.promo-input-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.promo-input-wrapper input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--light);
  font-family: inherit;
}

.apply-promo-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.apply-promo-btn:hover {
  filter: brightness(1.1);
}

.apply-promo-btn .btn-text {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.apply-promo-btn .btn-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.apply-promo-btn.loading .btn-text {
  opacity: 0;
}

.apply-promo-btn.loading .btn-loading {
  opacity: 1;
}

.promo-error {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 8px;
  color: #ff7675;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-success {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 8px;
  color: #55efc4;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.promo-success i, .promo-error i {
  font-size: 1.2rem;
}

.promo-success-details p {
  margin-bottom: 0.3rem;
}

.confirmation-btns {
  display: flex;
  gap: 1rem;
}

.confirm-btn, .cancel-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.confirm-btn {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
}

.confirm-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--light);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* تنسيقات نافذة النجاح والخطأ */
.success-modal, .error-modal, .loading-modal {
  text-align: center;
  padding: 2rem;
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.success-icon {
  background: rgba(46, 204, 113, 0.2);
  color: #55efc4;
  animation: pulse 2s infinite;
}

.error-icon {
  background: rgba(231, 76, 60, 0.2);
  color: #ff7675;
  animation: shake 0.5s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.success-btn, .error-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.success-btn {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
}

.error-btn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

.success-btn:hover, .error-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.loading-spinner {
  margin: 0 auto 1.5rem;
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

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

/* تنسيقات رأس المتجر */
.shop-header {
  position: relative;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background: rgba(26, 27, 30, 0.8);
}

.shop-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(108, 92, 231, 0.2),
    rgba(90, 73, 214, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
}

.shop-title {
  position: relative;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.shop-subtitle {
  position: relative;
  color: var(--gray);
  margin-bottom: 1.5rem;
  z-index: 1;
}

.user-points-container {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-points {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-points i {
  color: #FDCB6E;
  font-size: 1.3rem;
}

.points-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.points-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.shop-filters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-container {
  position: relative;
  margin-right: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.search-input {
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 250px;
  color: var(--light);
  font-family: inherit;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--gray);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--light);
}

/* تحسينات لشبكة المنتجات على الأجهزة المختلفة */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .shop-header {
    padding: 1.5rem;
  }
  
  .shop-title {
    font-size: 1.8rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .search-container {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .search-input {
    width: 100%;
  }
  
  .filter-btn {
    flex: 1;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .confirmation-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-preview {
    width: 100px;
    height: 100px;
  }
  
  .confirmation-btns {
    flex-direction: column;
  }
}

/* تنسيقات لوحة إدارة المتجر */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 27, 30, 0.8);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.admin-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(108, 92, 231, 0.1),
    rgba(90, 73, 214, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
}

.admin-title {
  position: relative;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.admin-subtitle {
  position: relative;
  color: var(--gray);
  font-size: 1rem;
  z-index: 1;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
  position: relative;
  z-index: 1;
}

.add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.add-category-btn, .add-coupon-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: 12px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-category-btn:hover, .add-coupon-btn:hover {
  background: rgba(108, 92, 231, 0.3);
  transform: translateY(-2px);
}

/* تنسيقات التبويبات */
.tabs-container {
  background: rgba(26, 27, 30, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--gray);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--light);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tab-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0 6px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(231, 76, 60, 0.5);
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
  display: block;
}

/* تنسيقات الفلاتر */
.table-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-control {
  position: relative;
  min-width: 200px;
}

.filter-control i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--gray);
  z-index: 1;
}

.filter-control input, .filter-control select {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--light);
  font-family: inherit;
}

.filter-control label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.filter-control select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* تنسيقات الجداول */
.table-container {
  background: rgba(26, 27, 30, 0.6);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

table thead {
  background: rgba(0, 0, 0, 0.2);
}

table th {
  padding: 1.2rem 1rem;
  text-align: right;
  color: var(--light);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
}

table td {
  padding: 1rem;
  text-align: right;
  color: var(--gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.product-image-small {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.coupon-code {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

.infinity-stock, .infinity-uses, .no-expiry {
  color: var(--gray);
  font-style: italic;
}

.user-info-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(108, 92, 231, 0.3);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-active {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-inactive {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-pending {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-completed {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-cancelled {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--light);
  border: none;
  font-size: 0.9rem;
}

.action-btn:hover {
  transform: translateY(-3px);
}

.edit-btn {
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.4);
  color: var(--primary);
}

.delete-btn {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

.view-btn {
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.4);
  color: #3498db;
}

.complete-btn {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.cancel-btn {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

/* تنسيقات نماذج الإدخال */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--light);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--light);
  font-family: inherit;
  font-size: 1rem;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray);
  font-size: 0.8rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  transition: .4s;
  border-radius: 34px;
  margin: 0;
}

.toggle-switch label:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 3px;
  background-color: var(--gray);
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + label {
  background-color: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
}

.toggle-switch input:checked + label:before {
  transform: translateX(26px);
  background-color: var(--primary);
}

.file-upload {
  position: relative;
  margin-top: 0.5rem;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  color: var(--gray);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

.file-upload:hover label {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--light);
}

.file-preview {
  margin-top: 1rem;
  text-align: center;
}

.file-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.submit-btn {
  flex: 1;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.cancel-btn {
  flex: 1;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--gray);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
}

/* تنسيقات متوافقة مع الموبايل */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tabs-container {
    padding: 1rem;
  }
  
  .tab-buttons {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
  }
  
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.7rem 1rem;
  }
  
  .table-container {
    overflow-x: auto;
    max-width: 100%;
  }
  
  table {
    min-width: 800px;
  }
  
  .admin-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .filter-control {
    min-width: 100%;
  }
} 