/*!
 * 
 *                 // Memorix Production Build
 *                 // Build Date: 2025-05-10T15:09:00.894Z
 *                 // API URL: https://memorix-backend-wn9o.onrender.com/api
 *                 // NODE_ENV: production
 *
 */
@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap);
/* ProfileDropdown.css */

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 55px;
  background-color: #1e1e2f;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-width: 170px;
  z-index: 2000;
  animation: fadeSlideDown 0.3s ease forwards;
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu a,
.dropdown-menu button {
  display: block;
  padding: 12px 16px;
  color: #ffffffcc;
  background: none;
  text-decoration: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background-color: #29293d;
  color: #ffd700;
}

.dropdown-menu .admin-link {
  background-color: rgba(142, 68, 173, 0.2); /* Light purple with transparency */
  border-left: 3px solid #8E44AD;
  color: #ffffff;
  font-weight: bold;
}

.dropdown-menu .admin-link:hover {
  background-color: rgba(142, 68, 173, 0.4); /* Darker purple on hover */
  color: #ffffff;
}

/* NotificationDropdown.css */

.notifications-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.notifications-icon {
  background: #3498db; /* Blue background for better visibility */
  border: none;
  color: #ffffff;
  font-size: 1.25rem; /* Slightly larger icon */
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.notifications-icon:hover {
  background-color: #2980b9; /* Darker blue on hover */
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  font-size: 0.8rem; /* Slightly larger font */
  min-width: 20px; /* Slightly larger badge */
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid #ffffff; /* White border for contrast */
  transform: translate(25%, -25%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow */
  animation: pulse 2s infinite; /* Add subtle animation */
}

/* Subtle pulse animation for the badge */
@keyframes pulse {
  0% { transform: translate(25%, -25%) scale(1); }
  50% { transform: translate(25%, -25%) scale(1.1); }
  100% { transform: translate(25%, -25%) scale(1); }
}

.notifications-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 500px;
  background: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* For dark mode */
body.dark .notifications-menu {
  background: #2a2a3a;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eaeaea;
}

body.dark .notifications-header {
  border-bottom-color: #3a3a4a;
}

.notifications-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

body.dark .notifications-header h3 {
  color: #fff;
}

.mark-all-read {
  background: transparent;
  border: none;
  color: #3498db;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.mark-all-read:hover {
  color: #2980b9;
  text-decoration: underline;
}

body.dark .mark-all-read {
  color: #5dade2;
}

body.dark .mark-all-read:hover {
  color: #3498db;
}

.notifications-list {
  overflow-y: auto;
  max-height: 350px;
  padding: 0;
}

.empty-notifications {
  padding: 40px 0;
  text-align: center;
  color: #7f8c8d;
}

body.dark .empty-notifications {
  color: #a7b3be;
}

.notification-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.2s;
  cursor: default;
  position: relative;
  align-items: flex-start;
}

body.dark .notification-item {
  border-bottom-color: #3a3a4a;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background-color: #f9f9f9;
}

body.dark .notification-item:hover {
  background-color: #34344c;
}

.notification-item.unread {
  background-color: #f0f8ff;
}

body.dark .notification-item.unread {
  background-color: #2c314a;
}

.notification-item.unread:hover {
  background-color: #e7f3fe;
}

body.dark .notification-item.unread:hover {
  background-color: #33395a;
}

.notification-icon {
  margin-right: 15px;
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #f1f1f1;
  border-radius: 50%;
}

body.dark .notification-icon {
  background-color: #3a3a4a;
}

.notification-content {
  flex: 1;
}

.notification-message {
  margin: 0 0 5px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}

body.dark .notification-message {
  color: #eaeaea;
}

.notification-time {
  font-size: 0.8rem;
  color: #7f8c8d;
  display: block;
}

body.dark .notification-time {
  color: #a7b3be;
}

.unread-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3498db;
  margin-left: 10px;
  flex-shrink: 0;
  align-self: center;
}

.notifications-footer {
  padding: 12px 15px;
  text-align: center;
  border-top: 1px solid #eaeaea;
}

body.dark .notifications-footer {
  border-top-color: #3a3a4a;
}

.notifications-footer a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.notifications-footer a:hover {
  color: #2980b9;
  text-decoration: underline;
}

body.dark .notifications-footer a {
  color: #5dade2;
}

body.dark .notifications-footer a:hover {
  color: #3498db;
}

@media screen and (max-width: 768px) {
  .notifications-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    margin-top: 0;
    border-radius: 0;
  }
}

/* LanguageSelector.css */

.language-selector {
  position: relative;
  margin: 0 5px;
}

.language-button {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background-color 0.2s ease;
}

.language-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-flag {
  font-size: 1rem;
  margin-right: 2px;
}

.language-code {
  font-size: 0.8rem;
  font-weight: 500;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000;
  min-width: 180px;
  animation: scaleIn 0.2s ease-in-out;
  transform-origin: top right;
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dark mode styling */
body.dark .language-dropdown {
  background-color: #2a2a3a;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.language-option {
  display: flex;
  align-items: center;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #333;
}

body.dark .language-option {
  color: #eaeaea;
}

.language-option:hover {
  background-color: #f5f5f5;
}

body.dark .language-option:hover {
  background-color: #34344c;
}

.language-option.active {
  background-color: #f0f7ff;
  font-weight: 500;
}

body.dark .language-option.active {
  background-color: #2c314a;
}

.language-name {
  margin-left: 10px;
}

/* RTL Support */
[dir="rtl"] .language-flag {
  margin-right: 0;
  margin-left: 2px;
}

[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

[dir="rtl"] .language-name {
  margin-left: 0;
  margin-right: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .language-code {
    display: none;
  }
  
  .language-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  body.dark .language-dropdown {
    border-bottom-color: #3a3a4a;
  }
}

/* ThemeToggle.css */

.theme-toggle {
  margin: 0 5px;
}

.theme-toggle-button {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.theme-toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle-button svg {
  transition: transform 0.3s ease;
}

.theme-toggle-button:hover svg {
  transform: rotate(12deg);
}

.theme-text {
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
  .theme-text {
    display: none;
  }
}

/* Animation for theme toggle */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body.light .theme-toggle-button svg {
  animation: spin 0.5s ease-in-out;
}

body.dark .theme-toggle-button svg {
  animation: spin 0.5s ease-in-out;
}

/* Navbar.css */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e); /* Royal colors */
  padding: 1rem 2rem;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  height: 70px;
  width: 80%;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
}

/* Dark mode styles */
body.dark .navbar {
  background: linear-gradient(to right, #000428, #004e92);
}

/* Light mode styles */
body.light .navbar {
  background: linear-gradient(to right, #2980b9, #2c3e50);
}

/* Brand logo on left */
.navbar-brand {
  flex: 0 0 auto;
  z-index: 2;
}

.navbar-brand a {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 70px;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand a:hover {
  color: #ffd700; /* Gold */
}

.navbar-brand a:hover .navbar-logo {
  transform: scale(1.05);
}

/* Center navigation links */
.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.navbar-links > a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  padding: 5px 0;
}

.navbar-links > a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.navbar-links > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: #ffd700;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-links > a:hover::after {
  width: 100%;
}

/* Right side controls */
.navbar-right {
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 2;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Auth links for non-logged in users */
.auth-links {
  display: flex;
  gap: 15px;
  margin-left: 5px;
}

.login-link, .register-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
}

.login-link {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.register-link {
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  color: white;
  font-weight: 600;
}

.register-link:hover {
  background: linear-gradient(90deg, #fc00ff, #00dbde);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Subscription Plan Badge */
.plan-badge {
  background: linear-gradient(90deg, #ffdd00, #fbb034);
  color: #333;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 15px;
  margin-right: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-badge:before {
  content: '✦';
  margin-right: 4px;
  font-size: 0.9rem;
}

/* Colors for Premium plan */
.plan-badge[data-plan="premium"] {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
}

/* Colors for Lifetime plan */
.plan-badge[data-plan="lifetime"] {
  background: linear-gradient(90deg, #fc00ff, #00dbde);
  color: white;
}

/* Special styling for active subscriptions */
.plan-badge[data-status="active"] {
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

/* Special styling for lifetime status */
.plan-badge[data-status="lifetime"] {
  animation: glow 2s ease-in-out infinite alternate;
  box-shadow: 0 0 15px rgba(252, 0, 255, 0.6);
}

/* Special styling for expired subscriptions */
.plan-badge[data-status="expired"] {
  opacity: 0.7;
  background: linear-gradient(90deg, #888, #555);
  box-shadow: none;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(252, 0, 255, 0.6);
  }
  to {
    box-shadow: 0 0 20px rgba(0, 219, 222, 0.8);
  }
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* RTL Support for Arabic language */
[dir="rtl"] .navbar-brand {
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif; /* Ensure consistent font in RTL */
}

[dir="rtl"] .navbar-links {
  gap: 1.8rem; /* Slightly closer spacing for Arabic */
}

[dir="rtl"] .navbar-links > a {
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif; /* Ensure consistent font in RTL */
  letter-spacing: normal; /* Remove letter-spacing for Arabic */
  padding: 5px 2px; /* Extra padding for Arabic text */
}

[dir="rtl"] .auth-links {
  gap: 10px; /* Adjust spacing for auth links in Arabic */
}

[dir="rtl"] .login-link, 
[dir="rtl"] .register-link {
  padding: 8px 18px; /* Slightly wider buttons for Arabic text */
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .navbar-links > a::after {
    bottom: -3px;
  }
  
  .navbar-center {
    position: relative;
    left: auto;
    transform: none;
  }
  
  .navbar {
    justify-content: space-between;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 1rem;
    display: none; /* Hide the entire navbar on mobile */
  }

  .navbar-brand a {
    font-size: 1.5rem;
  }
  
  .navbar-center {
    display: none;
  }
  
  .navbar-right {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }
}

/* Sidebar.css */

.sidebar {
  position: fixed;
  top: 0;
  right: -320px; /* Initially hidden */
  height: 100%;
  width: 300px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  transition: right 0.4s ease-in-out, box-shadow 0.4s ease;
  z-index: 1500;
  overflow-y: auto;
}

/* Dark mode styles */
body.dark .sidebar {
  background: linear-gradient(145deg, #111122, #16213e);
}

/* Light mode styles */
body.light .sidebar {
  background: linear-gradient(145deg, #2980b9, #2c3e50);
}

.sidebar.open {
  right: 0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
}

.sidebar-logo {
  height: 50px;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.05);
}

.sidebar-close {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sidebar-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Theme and Language controls */
.sidebar-controls {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-control-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: background 0.3s;
}

.sidebar-control-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.control-label {
  flex: 0 0 80px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* Links section */
.sidebar-links {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex-grow: 1;
}

/* Admin link styling */
.admin-link {
  background: rgba(255, 50, 50, 0.15); /* Slight red tint for admin items */
  color: #ff9f43 !important; /* Warm orange color for admin links */
  font-weight: 500;
  border-left: 3px solid #ff9f43;
}

.admin-link:hover {
  background: rgba(255, 50, 50, 0.25) !important;
  color: #ffd32a !important;
  border-left: 3px solid #ffd32a;
}

.sidebar-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: all 0.3s;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  padding-left: 20px;
}

.sidebar-section-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 10px;
  padding: 0 15px;
  font-weight: 600;
}

/* Auth buttons */
.sidebar-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.sidebar-login,
.sidebar-register {
  display: flex;
  justify-content: center;
  padding: 14px !important;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s !important;
}

.sidebar-login {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-login:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-3px) !important;
  padding-left: 15px !important;
}

.sidebar-register {
  background: linear-gradient(90deg, #00dbde, #fc00ff) !important;
  color: white !important;
}

.sidebar-register:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding-left: 15px !important;
}

/* Footer */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.sidebar-footer p {
  margin: 0 0 10px;
}

.sidebar-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.sidebar-social-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s, transform 0.3s;
  margin-bottom: 0;
}

.sidebar-social-links a:hover {
  color: white;
  transform: translateY(-3px);
}

/* RTL support */
[dir="rtl"] .sidebar {
  right: auto;
  left: -320px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .sidebar.open {
  right: auto;
  left: 0;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
}

[dir="rtl"] .sidebar-links a:hover {
  transform: translateX(-5px);
  padding-left: 15px;
  padding-right: 20px;
}

[dir="rtl"] .sidebar-close:hover {
  transform: rotate(-90deg);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .sidebar {
    width: 100%;
    right: -100%;
  }
  
  .sidebar.open {
    right: 0;
  }
  
  [dir="rtl"] .sidebar {
    left: -100%;
    right: auto;
  }
  
  [dir="rtl"] .sidebar.open {
    left: 0;
    right: auto;
  }
}

/* Footer.css */

.footer {
  background-color: #1b1b2f;
  color: #ddd;
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 1px solid #2c2c3f;
  font-family: 'Inter', sans-serif;
}

.footer-links,
.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-links a,
.footer-social a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #ffd700;
}

.footer p {
  font-size: 0.85rem;
  color: #888;
  margin-top: 15px;
  user-select: none;
}

/* NetworkStatus Component Styles */

.network-status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  max-width: 90%;
  width: 340px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Dark mode styling */
body.dark .network-status {
  background-color: #252538;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Show the status when visible */
.network-status.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Different status colors */
.network-status.good {
  border-left: 4px solid #4CAF50;
}

.network-status.medium {
  border-left: 4px solid #FFC107;
}

.network-status.poor {
  border-left: 4px solid #FF9800;
}

.network-status.offline {
  border-left: 4px solid #F44336;
}

/* Status icon styles */
.status-icon {
  font-size: 20px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status message styles */
.status-message {
  flex: 1;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

body.dark .status-message {
  color: #e0e0e0;
}

/* Close button styles */
.status-close {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.status-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #666;
}

body.dark .status-close {
  color: #aaa;
}

body.dark .status-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Retry button */
.retry-button {
  background-color: transparent;
  border: 1px solid #F44336;
  color: #F44336;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s ease;
}

.retry-button:hover {
  background-color: rgba(244, 67, 54, 0.1);
}

body.dark .retry-button {
  border-color: #ff6659;
  color: #ff6659;
}

body.dark .retry-button:hover {
  background-color: rgba(255, 102, 89, 0.15);
}

/* Mobile styling */
@media (max-width: 768px) {
  .network-status {
    width: calc(100% - 40px);
    bottom: 10px;
    padding: 12px 15px;
  }
  
  .status-message {
    font-size: 13px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.network-status.offline .status-icon,
.network-status.poor .status-icon {
  animation: pulse 2s infinite;
}

/* MobileNavbar.css */
.mobile-navbar {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0 10px;
  
  /* Flex layout for the nav items - will be enabled in media query */
  justify-content: space-around;
  align-items: center;
}

/* Container for each nav item */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 0;
  color: #95a5a6;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

/* Active state styling */
.mobile-nav-item.active {
  color: #8e44ad; /* Royal Purple */
}

.mobile-nav-item.active .mobile-nav-icon {
  color: #8e44ad; /* Royal Purple */
  transform: translateY(-2px);
}

/* Special styling for create button - make it stand out */
.mobile-nav-item .create-icon {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
  border-radius: 50%;
  padding: 2px;
}

/* Special styling for admin icon */
.mobile-nav-item .admin-icon {
  color: #e74c3c; /* Red for admin */
  background: rgba(231, 76, 60, 0.1);
  padding: 3px;
  border-radius: 50%;
}

.mobile-nav-item.active .admin-icon {
  color: white; /* White icon when active */
  background: #e74c3c; /* Red background */
  transform: translateY(-3px); /* Extra lift for emphasis */
  box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4); /* Subtle shadow */
}

/* Icon styling */
.mobile-nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

/* Text label styling */
.mobile-nav-label {
  font-size: 10px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

/* Enhanced admin label */
.mobile-nav-item .admin-label {
  font-weight: bold;
  color: #e74c3c;
}

.mobile-nav-item.active .admin-label {
  color: #e74c3c;
}

/* Hover effect */
.mobile-nav-item:hover {
  color: #8e44ad; /* Royal Purple */
}

.mobile-nav-item:hover .mobile-nav-icon {
  transform: translateY(-2px);
}

/* Admin hover effect */
.mobile-nav-item:hover .admin-icon {
  background: rgba(231, 76, 60, 0.2);
}

/* Active indicator dot */
.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #8e44ad; /* Royal Purple */
}

/* Special active indicator for admin */
.mobile-nav-item.active:has(.admin-icon)::after {
  background-color: #e74c3c; /* Red for admin */
  width: 6px; /* Slightly larger */
  height: 6px;
}

/* Dark mode adjustments */
body.dark .mobile-navbar {
  background: #1a1a2e;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark .mobile-nav-item {
  color: #95a5a6;
}

body.dark .mobile-nav-item.active,
body.dark .mobile-nav-item:hover {
  color: #9b59b6; /* Lighter purple for dark mode */
}

body.dark .mobile-nav-item.active .mobile-nav-icon {
  color: #9b59b6;
}

body.dark .mobile-nav-item.active::after {
  background-color: #9b59b6;
}

body.dark .mobile-nav-item .admin-icon {
  background: rgba(231, 76, 60, 0.15);
}

body.dark .mobile-nav-item.active .admin-icon {
  background: #e74c3c;
}

body.dark .mobile-nav-item.active:has(.admin-icon)::after {
  background-color: #e74c3c;
}

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

/* Media query to show only on mobile */
@media (max-width: 768px) {
  .mobile-navbar {
    display: flex;
  }
  
  /* Add padding to the page content to prevent it from being hidden behind the navbar */
  body {
    padding-bottom: 60px;
  }
  
  /* Hide the regular navbar on mobile */
  .navbar {
    display: none;
  }

  /* Admin dashboard specific mobile adjustments */
  .admin-dashboard {
    padding-bottom: 70px; /* Extra padding for admin dashboard */
  }

  /* Fix chart containers on small screens */
  .admin-dashboard .chart-container {
    overflow: hidden; /* Prevent horizontal scrolling within charts */
  }
}

/* For really small screens */
@media (max-width: 350px) {
  .mobile-nav-label {
    display: none; /* Hide text labels on very small screens */
  }
  
  .mobile-nav-icon {
    margin-bottom: 0;
  }
  
  .mobile-navbar {
    height: 50px; /* Make the navbar shorter */
  }
  
  body {
    padding-bottom: 50px;
  }

  /* Adjust admin dashboard on very small screens */
  .admin-dashboard {
    padding-bottom: 60px;
  }
}

/* Alternative mobile layouts when admin link is present (6 items) */
@media (max-width: 768px) {
  .mobile-navbar:has(.admin-icon) {
    /* When there are 6 items including admin, reduce padding */
    padding: 0 5px;
  }

  .mobile-navbar:has(.admin-icon) .mobile-nav-item {
    padding: 8px 5px;
  }
}

/* Transition when switching between pages */
.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item.active .mobile-nav-label {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Home.css - Enhanced Version */

/* Base Styles */
.home-page {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #ffffff;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

section {
  padding: 100px 5%;
  position: relative;
}

h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-height: 95vh;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(76, 0, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 205, 0.15) 0%, transparent 40%);
  position: relative;
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.2rem;
  color: #cbd5e0;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  animation: fadeIn 1.2s ease-out;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.capsule-preview-container {
  perspective: 1000px;
  width: 300px;
  height: 400px;
}

.capsule-preview {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(15deg) rotateX(10deg);
  animation: float 6s ease-in-out infinite;
  background: linear-gradient(45deg, rgba(0, 219, 222, 0.3), rgba(252, 0, 255, 0.3));
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.capsule-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 0 50px rgba(0, 219, 222, 0.6), 0 0 100px rgba(252, 0, 255, 0.4);
  opacity: 0.7;
  animation: pulse 3s ease-in-out infinite alternate;
}

/* Stats Counter */
.stats-counter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.stat-item {
  padding: 0 30px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  color: #000;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button.primary {
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  color: #000;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid #00dbde;
  color: #ffffff;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.primary:hover {
  background: linear-gradient(90deg, #fc00ff, #00dbde);
}

.cta-button.secondary:hover {
  background: rgba(0, 219, 222, 0.1);
  border-color: #fc00ff;
}

.cta-button.medium {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.cta-button.large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.text-link {
  color: #00dbde;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

.text-link:hover {
  color: #fc00ff;
  text-decoration: underline;
}

/* Features */
.features {
  text-align: center;
  padding: 100px 5%;
  animation: fadeIn 1.2s ease-in-out;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 219, 222, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-card p {
  font-size: 1rem;
  color: #cbd5e0;
  flex-grow: 1;
}

/* How It Works */
.how-it-works {
  padding: 100px 5%;
  background: linear-gradient(135deg, #0d0b24, #1e1a48);
  position: relative;
  text-align: center;
}

.steps-container {
  position: relative;
  margin: 70px auto;
  max-width: 900px;
}

.steps-visual {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00dbde, #fc00ff);
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 4px;
}

.steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.step {
  display: flex;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
  background: linear-gradient(135deg, #00dbde, #fc00ff);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-content {
  flex-grow: 1;
}

.step h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.step p {
  color: #cbd5e0;
  line-height: 1.6;
}

.steps-cta {
  margin-top: 50px;
}

/* Use Cases */
.use-cases {
  padding: 100px 5%;
  text-align: center;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.use-case-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.use-case-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.use-case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.use-case-card p {
  color: #cbd5e0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Testimonials */
.testimonial-preview {
  padding: 100px 5%;
  text-align: center;
  background: linear-gradient(135deg, #1e1e2f, #111118);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.testimonial-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.15rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-box.featured {
  background: linear-gradient(135deg, rgba(0, 219, 222, 0.1), rgba(252, 0, 255, 0.1));
  transform: scale(1.03);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
}

.testimonial-box.featured:hover {
  transform: translateY(-8px) scale(1.03);
}

.testimonial-rating {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-box p {
  color: #e0e0e0;
  margin-bottom: 20px;
  font-style: italic;
  flex-grow: 1;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00dbde, #fc00ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: bold;
  color: #fff;
}

.testimonial-author span {
  color: #cbd5e0;
  font-size: 0.95rem;
}

.testimonial-cta {
  margin-top: 30px;
}

/* Ratings Showcase */
.ratings-showcase {
  padding: 100px 5%;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ratings-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto 50px;
}

.overall-rating {
  text-align: center;
  padding: 30px;
}

.rating-number {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

.rating-stars {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 10px;
}

.rating-count {
  font-size: 1rem;
  color: #cbd5e0;
}

.rating-categories {
  flex: 1;
  min-width: 280px;
}

.rating-category {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: space-between;
}

.rating-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  flex: 1;
  margin: 0 15px;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  border-radius: 5px;
}

.ratings-cta {
  margin-top: 40px;
}

/* Call to Action Final */
.cta-final {
  padding: 120px 5% 150px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 219, 222, 0.1), rgba(252, 0, 255, 0.1));
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z%27 fill=%27%23ffffff%27 fill-opacity=%270.05%27 fill-rule=%27evenodd%27/%3E%3C/svg%3E");
  z-index: 0;
}

.cta-final h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.cta-final p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

@keyframes float {
  0%, 100% {
    transform: rotateY(15deg) rotateX(10deg) translateY(0);
  }
  50% {
    transform: rotateY(15deg) rotateX(10deg) translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    box-shadow: 0 0 30px rgba(0, 219, 222, 0.4), 0 0 60px rgba(252, 0, 255, 0.2);
  }
  100% {
    opacity: 0.8;
    box-shadow: 0 0 50px rgba(0, 219, 222, 0.6), 0 0 100px rgba(252, 0, 255, 0.4);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  section {
    padding: 70px 20px;
  }
  
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 50px;
    padding-right: 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.3rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .overall-rating {
    padding: 15px;
  }
  
  .rating-number {
    font-size: 3.5rem;
  }
}

/* Styles for the Pricing page */
.pricing-page {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  padding: 50px 20px;
  text-align: center;
  color: #333;
}

.pricing-page h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.pricing-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 50px;
}

.pricing-table {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.plan {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan.selected {
  border: 3px solid #4285f4;
  transform: scale(1.05);
}

.plan.featured-plan {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(66, 133, 244, 0.3);
  z-index: 2;
}

.plan.featured-plan:hover {
  transform: translateY(-5px) scale(1.05);
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #4285f4;
  color: white;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: bold;
  border-bottom-left-radius: 8px;
}

.plan-header {
  padding: 30px 20px;
  background: linear-gradient(to right, #f7f7f9, #eef2ff);
  border-bottom: 1px solid #eaeaea;
}

.plan h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 15px;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4285f4;
  margin: 0;
}

.billing-cycle {
  font-size: 1rem;
  color: #777;
  margin: 5px 0 0;
}

.plan-features {
  padding: 30px 20px;
  flex: 1;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 1rem;
  text-align: left;
}

.plan ul li {
  margin-bottom: 12px;
  padding-left: 5px;
}

.plan button {
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 20px 20px;
}

.plan button:hover:not(:disabled) {
  background-color: #45a049;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.plan button:disabled {
  background-color: #cccccc;
  cursor: default;
}

.plan button.current-plan {
  background-color: #777;
}

.featured-button {
  background-color: #4285f4 !important;
}

.featured-button:hover:not(:disabled) {
  background-color: #3367d6 !important;
}

.vip-button {
  background-color: #9B59B6 !important;
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 20px 20px;
}

.vip-button:hover:not(:disabled) {
  background-color: #8E44AD !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pricing-guarantee {
  background-color: #fff;
  max-width: 800px;
  margin: 50px auto 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-guarantee h4 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: #4CAF50;
}

.pricing-guarantee p {
  margin: 0;
  color: #666;
}

.pricing-faq {
  max-width: 800px;
  margin: 50px auto;
  text-align: left;
}

.pricing-faq h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.faq-item {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #333;
}

.faq-item p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .pricing-table {
    gap: 20px;
  }
  
  .plan {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .pricing-table {
    flex-direction: column;
    align-items: center;
  }
  
  .plan {
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
  }
  
.plan.featured-plan {
    order: -1;
  }
}

/* Payment options and processing styles */
.payment-options {
  padding: 0 20px 20px;
  width: 100%;
}

.paypal-button-container {
  width: 100%;
  margin-top: 10px;
}

.payment-processing {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 15px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 400px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  border-top-color: #4285f4;
  animation: spin 1s ease-in-out infinite;
  margin-right: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.payment-error {
  background-color: #ffeeee;
  border-left: 4px solid #ff4757;
  color: #d63031;
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px auto;
  max-width: 600px;
  font-weight: 500;
}

.payment-error p {
  margin: 0;
  display: flex;
  align-items: center;
}

body.dark .payment-processing {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark .payment-error {
  background-color: rgba(255, 0, 0, 0.1);
  border-left-color: #ff6b6b;
  color: #ff6b6b;
}

/* Payment Success & Failed Pages */
.payment-result-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.payment-result-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  z-index: 10;
}

.payment-result-card.success {
  border-top: 5px solid #4CAF50;
}

.payment-result-card.failed {
  border-top: 5px solid #ff4757;
}

.payment-result-card h1 {
  margin: 20px 0;
  color: #333;
  font-size: 2rem;
}

.payment-result-card p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.payment-result-card .subscription-details {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.payment-result-card .error-message {
  color: #ff4757;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  justify-content: space-evenly;
  gap: 15px;
  margin-top: 20px;
}

.result-logo {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.payment-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.icon-container {
  position: relative;
  height: 80px;
  width: 80px;
  margin: 0 auto;
}

/* Success Icon Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4CAF50;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
}

.icon-line {
  height: 5px;
  background-color: #4CAF50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: white;
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

/* Error Icon */
.error-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #ff4757;
  margin: 0 auto;
}

.error-x, .error-y {
  position: absolute;
  height: 5px;
  width: 40px;
  background-color: #ff4757;
  top: 37px;
  left: 20px;
  border-radius: 2px;
}

.error-x {
  transform: rotate(45deg);
}

.error-y {
  transform: rotate(-45deg);
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 20px;
  background-color: #4CAF50;
  top: -20px;
  animation: confetti-fall 5s ease-in-out infinite;
  z-index: -1;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 20px)) rotate(720deg) scale(0.8);
    opacity: 0;
  }
}

/* Dark mode support */
body.dark .payment-result-card {
  background-color: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark .payment-result-card h1 {
  color: #f1f1f1;
}

body.dark .payment-result-card p {
  color: #d1d1d1;
}

body.dark .payment-result-card .subscription-details {
  background-color: #333;
  color: #f1f1f1;
}

body.dark .icon-fix {
  background-color: #2a2a2a;
}

@media (max-width: 768px) {
  .payment-result-card {
    padding: 30px 20px;
    max-width: 90%;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ستايل صفحة تسجيل الدخول */
.login-form {
  background-color: #FFFFFF; /* White background */
  color: #2C3E50; /* Midnight Blue */
  max-width: 400px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* العنوان الرئيسي في صفحة تسجيل الدخول */
.login-form h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #2C3E50; /* Midnight Blue */
}

/* تنسيق الحقول في النموذج */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #2C3E50; /* Midnight Blue */
}

.form-group input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #BDC3C7; /* Light gray border */
  border-radius: 5px;
  background-color: #F4F6F7; /* Soft Silver */
  color: #2C3E50; /* Midnight Blue */
  margin-top: 8px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #8E44AD; /* Royal Purple */
  outline: none;
}

/* زر تسجيل الدخول */
button {
  background-color: #8E44AD; /* Royal Purple */
  color: #ECF0F1; /* Soft White */
  padding: 14px 20px;
  font-size: 1rem;
  width: 100%;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
}

button:hover {
  background-color: #9B59B6; /* Lighter Purple */
}

button:disabled {
  background-color: #D2B4DE; /* Lighter Purple, more faded */
  cursor: not-allowed;
}

/* رسالة التنبيه عند حدوث خطأ */
.alert {
  background-color: #E74C3C; /* Luxury Red */
  color: #ECF0F1; /* Soft White */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
}

/* Error message styling */
.error-message {
  background-color: #E74C3C10; /* Light red with transparency */
  color: #E74C3C; /* Red text */
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border-left: 4px solid #E74C3C;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Error message link styling */
.error-link {
  color: #2980b9;
  text-decoration: underline;
  margin-top: 8px;
  margin-left: 4px;
  font-weight: 500;
  display: inline-block;
  cursor: pointer;
  transition: color 0.2s;
}

.error-link:hover {
  color: #3498db;
  text-decoration: underline;
}

.error-link:active {
  color: #1c6394;
}

/* Retry connection button specific styling */
.retry-button {
  background-color: transparent;
  border: 1px solid #3498DB; /* Blue */
  color: #3498DB;
  font-size: 0.8rem;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  width: auto; /* Override full width from general button style */
  transition: all 0.2s ease;
}

.retry-button:hover {
  background-color: #3498DB; /* Blue */
  color: #FFFFFF;
}

/* Offline mode styling */
button.offline-mode {
  background-color: #F39C12; /* Orange */
  color: #FFFFFF;
}

button.offline-mode:hover {
  background-color: #F5B041; /* Lighter Orange */
}

.offline-note {
  background-color: #F39C1210; /* Light orange with transparency */
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #F39C12; /* Orange */
  text-align: center;
  border: 1px dashed #F39C12;
}

/* لينك "نسيت كلمة المرور" أو روابط إضافية */
.login-form .forgot-password {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: #8E44AD; /* Royal Purple */
  font-size: 1rem;
  text-decoration: none;
}

.login-form .forgot-password:hover {
  text-decoration: underline;
}

/* النمط العام للنموذج */
.register-form {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

/* المسافات بين العناصر داخل النموذج */
.form-group {
  margin-bottom: 20px;
}

/* النصوص داخل النماذج */
label {
  display: block;
  font-size: 16px;
  color: #2C3E50; /* النص الأسود المزرق */
  margin-bottom: 8px;
}

/* حقول الإدخال */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #BDC3C7;
  border-radius: 5px;
  background-color: #F4F6F7;
  font-size: 16px;
  color: #2C3E50;
}

/* تنسيق حقل اختيار الملفات */
input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

/* تنسيق معاينة الصورة */
.image-preview {
  margin-top: 10px;
  text-align: center;
}

.image-preview img {
  border: 2px solid #BDC3C7;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* عند التركيز على الحقول */
input:focus {
  border-color: #8E44AD; /* اللون البنفسجي */
  outline: none;
}

/* تنسيق الزر */
button[type="submit"] {
  background-color: #8E44AD; /* اللون البنفسجي */
  color: #FFFFFF;
  padding: 15px;
  width: 100%;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* تأثير التحويم على الزر */
button[type="submit"]:hover {
  background-color: #6F2A8E; /* ظل أفتح من اللون البنفسجي */
}

/* تنسيق مربع الاختيار */
input[type="checkbox"] {
  margin-top: 10px;
  margin-right: 10px;
}

/* النصوص التحذيرية */
.alert {
  background-color: #E74C3C; /* اللون الأحمر */
  color: #ECF0F1; /* اللون الأبيض الناعم */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

/* النصوص العادية */
p {
  font-size: 14px;
  color: #2C3E50;
}

/* تعديل التنسيق عند الوضع الداكن */
body.dark-mode .register-form {
  background-color: #121212; /* اللون الأسود الفحم */
  color: #ECF0F1; /* اللون الأبيض الناعم */
}

body.dark-mode .form-group label {
  color: #ECF0F1; /* النص الأبيض في الوضع الداكن */
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="file"] {
  background-color: #2C3E50; /* خلفية داكنة */
  border-color: #BDC3C7;
  color: #ECF0F1;
}

body.dark-mode .image-preview img {
  border-color: #667788;
}

body.dark-mode button[type="submit"] {
  background-color: #8E44AD;
}

body.dark-mode button[type="submit"]:hover {
  background-color: #6F2A8E;
}

/* CapsuleCard.css */
.capsule-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  overflow: hidden;
}

body.dark .capsule-card {
  background-color: #2a2a3a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.capsule-card.expanded {
  padding-bottom: 30px;
}

.capsule-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Header with user info */
.capsule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 30px;
  transition: background-color 0.2s ease;
}

.user-info:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark .user-info:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00dbde, #fc00ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.user-name {
  font-weight: 500;
  color: #333;
}

body.dark .user-name {
  color: #f0f0f0;
}

/* Capsule actions */
.capsule-actions {
  display: flex;
  gap: 10px;
}

.expand-toggle {
  background: transparent;
  border: none;
  color: #777;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
  transition: transform 0.3s ease;
}

body.dark .expand-toggle {
  color: #aaa;
}

.expand-toggle:hover {
  color: #333;
}

body.dark .expand-toggle:hover {
  color: #fff;
}

.expanded .expand-toggle {
  transform: rotate(180deg);
}

/* Capsule content */
.capsule-title {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: #2c3e50;
}

body.dark .capsule-title {
  color: #ecf0f1;
}

.capsule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 15px;
}

body.dark .capsule-meta {
  color: #bdc3c7;
}

.capsule-description {
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 20px;
}

body.dark .capsule-description {
  color: #ecf0f1;
}

/* Media content styles */
.capsule-media {
  margin-bottom: 20px;
}

.capsule-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.capsule-images img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.capsule-images img:hover {
  transform: scale(1.05);
}

.video-container {
  margin-bottom: 15px;
}

.video-container video {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.audio-container {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

body.dark .audio-container {
  background: rgba(255, 255, 255, 0.05);
}

.audio-container audio {
  width: 100%;
}

.audio-container p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: #7f8c8d;
}

body.dark .audio-container p {
  color: #bdc3c7;
}

/* Tag styles */
.capsule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

body.dark .tag {
  background-color: rgba(52, 152, 219, 0.2);
}

.tag:hover {
  background-color: rgba(52, 152, 219, 0.2);
  transform: translateY(-2px);
}

body.dark .tag:hover {
  background-color: rgba(52, 152, 219, 0.3);
}

/* Rating section */
.rating-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark .rating-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.average-rating, .user-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.star-rating {
  display: inline-flex;
}

.star {
  font-size: 1.4rem;
  cursor: default;
  transition: all 0.2s ease;
}

.user-rating .star {
  cursor: pointer;
}

.star.filled {
  color: #f39c12;
}

.star.empty {
  color: #bdc3c7;
}

body.dark .star.empty {
  color: #555;
}

.user-rating .star:hover {
  transform: scale(1.2);
}

.rating-value {
  font-size: 1rem;
  color: #7f8c8d;
}

body.dark .rating-value {
  color: #bdc3c7;
}

/* Comments section */
.comments-section {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark .comments-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.toggle-comments {
  background: transparent;
  border: none;
  color: #3498db;
  cursor: pointer;
  padding: 5px 0;
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: left;
}

body.dark .toggle-comments {
  color: #5dade2;
}

.comments-list {
  margin-bottom: 20px;
}

.no-comments {
  color: #7f8c8d;
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

body.dark .no-comments {
  color: #bdc3c7;
}

.comment {
  padding: 15px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.02);
  margin-bottom: 15px;
}

body.dark .comment {
  background-color: rgba(255, 255, 255, 0.03);
}

.comment-user {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.comment-avatar, .comment-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-avatar-placeholder {
  background: linear-gradient(135deg, #00dbde, #fc00ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
}

.comment-username {
  font-weight: 500;
  font-size: 0.95rem;
}

.comment-text {
  margin: 0 0 8px;
  line-height: 1.5;
  color: #34495e;
  font-size: 0.95rem;
}

body.dark .comment-text {
  color: #ecf0f1;
}

.comment-time {
  display: block;
  font-size: 0.8rem;
  color: #95a5a6;
  text-align: right;
}

body.dark .comment-time {
  color: #7f8c8d;
}

.add-comment {
  display: flex;
  gap: 10px;
}

.add-comment textarea {
  flex-grow: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

body.dark .add-comment textarea {
  background-color: #2a2a3a;
  color: #ecf0f1;
  border-color: #444;
}

.add-comment textarea:focus {
  outline: none;
  border-color: #3498db;
}

.add-comment button {
  padding: 0 20px;
  background: linear-gradient(90deg, #00dbde, #fc00ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.add-comment button:hover:not(:disabled) {
  background: linear-gradient(90deg, #fc00ff, #00dbde);
  transform: translateY(-2px);
}

.add-comment button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* RTL Support */
[dir="rtl"] .user-avatar {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .comment-avatar, 
[dir="rtl"] .comment-avatar-placeholder {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .toggle-comments {
  text-align: right;
}

[dir="rtl"] .comment-time {
  text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {
  .capsule-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .rating-section {
    flex-direction: column;
  }
  
  .capsule-images {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .add-comment {
    flex-direction: column;
  }
  
  .add-comment button {
    align-self: flex-end;
  }
}

/* General Dashboard Styles */
.dashboard-container {
  font-family: 'Arial', sans-serif;
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px;
  color: #2C3E50;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.welcome-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 0;
}

.dashboard-subtitle {
  color: #7F8C8D;
  font-size: 1.1rem;
  margin: 5px 0 0 0;
}

.create-capsule-btn {
  background-color: #8E44AD;
  color: white;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(142, 68, 173, 0.2);
}

.create-capsule-btn:hover {
  background-color: #703688;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(142, 68, 173, 0.3);
}

/* Stats Section */
.dashboard-stats-container {
  margin-bottom: 35px;
}

.stats-card {
  display: flex;
  justify-content: space-between;
  padding: 25px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-card .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 15px 0;
  position: relative;
}

.stats-card .stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #ecf0f1;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #8E44AD;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: #7F8C8D;
  font-weight: 500;
}

/* Dashboard Content */
.dashboard-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

/* Recent Capsules Section */
.recent-capsules-section, .shared-capsules-section, .quick-actions-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  color: #2C3E50;
  font-size: 1.4rem;
  margin: 0;
}

.view-all-link {
  color: #3498DB;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #2980B9;
  text-decoration: underline;
}

/* Capsules Grid */
.capsules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.capsule-card-container {
  background-color: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  position: relative;
}

/* Shared capsules styling */
.capsule-card-container.shared {
  border-left: 4px solid #3498DB;
}

.shared-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #3498DB;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 1;
}

.capsule-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.capsule-card {
  padding: 20px;
}

.capsule-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #34495E;
}

.capsule-card p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #7F8C8D;
}

.card-actions {
  padding: 12px 20px;
  background-color: #f1f3f5;
  border-top: 1px solid #e9ecef;
}

.view-btn {
  background-color: transparent;
  color: #3498DB;
  border: 1px solid #3498DB;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.view-btn:hover {
  background-color: #3498DB;
  color: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  grid-column: 1 / -1;
}

.empty-state p {
  color: #95A5A6;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.create-first-btn {
  background-color: #8E44AD;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  max-width: 250px;
  margin: 0 auto;
}

.create-first-btn:hover {
  background-color: #703688;
}

/* Quick Actions Section */
.quick-actions-section h2 {
  margin-bottom: 20px;
}

.actions-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
}

.action-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
}

.action-card:hover {
  background-color: #f1f3f5;
  transform: translateX(5px);
}

.action-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.action-card h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: #2C3E50;
}

.action-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #7F8C8D;
}

/* Loading State */
.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #8E44AD;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.dashboard-loading p {
  color: #7F8C8D;
  font-size: 1.1rem;
}

/* Error State */
.dashboard-error {
  background-color: #FADBD8;
  color: #C0392B;
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #E74C3C;
}

.dashboard-error p {
  margin: 0 0 15px 0;
}

.dashboard-error button {
  background-color: #E74C3C;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dashboard-error button:hover {
  background-color: #C0392B;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .dashboard-content {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard-header .welcome-section {
    margin-bottom: 20px;
  }
}

/* Import Montserrat font for consistent look */

/* Global styles */
body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

body.light {
  background-color: #f5f8fa;
  color: #333;
}

body.dark {
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

/* Global Button Styles */
button {
  cursor: pointer;
  font-family: inherit;
}

/* Link styles */
a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.3s ease;
}

body.dark a {
  color: #5dade2;
}

a:hover {
  color: #2980b9;
}

body.dark a:hover {
  color: #3498db;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Input fields */
input, textarea, select {
  font-family: inherit;
}

/* RTL Language Support */
[dir="rtl"] {
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
}

[dir="rtl"] * {
  letter-spacing: normal;
}

/* Add consistent spacing for Arabic text */
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6,
[dir="rtl"] p {
  line-height: 1.6;
}

/* Adjust form elements for RTL */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
}

/* Loading page for lazy-loaded components */
.loading-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 100%;
  text-align: center;
  font-size: 18px;
  color: #666;
  position: relative;
}

.loading-page:after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  display: block;
  margin-top: 20px;
  animation: spin 1s linear infinite;
}

body.dark .loading-page {
  color: #bbb;
}

body.dark .loading-page:after {
  border-color: #2a2a3a;
  border-top-color: #3498db;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .content {
    padding: 15px;
    padding-bottom: 75px; /* Extra padding at the bottom for the mobile navbar */
  }
  
  /* Adjust footer on mobile to not overlap with mobile navbar */
  .app-container > footer {
    margin-bottom: 60px;
  }
}

