.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #3498db;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 9999;
}

.floating-btn:hover {
  background-color: #2980b9;
  transform: scale(1.1);
}

@media (prefers-color-scheme: dark) {
  .floating-btn {
    background-color: #576574;
    box-shadow: 0 4px 8px rgba(0,0,0,0.7);
  }

  .floating-btn:hover {
    background-color: #8395a7;
  }
}

@media (max-width: 480px) {
  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}

.custom-footer {
  width: 100%;
  background-color: #f0f2f5;
  color: #333;
  text-align: center;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: default;
  user-select: none;
  margin-top: auto;
}

.custom-footer:hover {
  background-color: #3498db;
  color: white;
  box-shadow: 0 -4px 12px rgba(52, 152, 219, 0.7);
}

.custom-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.custom-footer .footer-time {
  color: #555;
}

body.dark-mode .custom-footer {
  background-color: #1e1e2f;
  color: #eee;
  box-shadow: 0 -2px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .custom-footer:hover {
  background-color: #2980b9;
  box-shadow: 0 -4px 12px rgba(41, 128, 185, 0.8);
  color: #fff;
}

body.dark-mode .footer-time {
  color: #ccc;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
/* استايل الوضع الداكن لما يكون مضاف على <html> */
.dark-mode {
  --background-color: #121212;
  --text-color: #ffffff;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* لو عايز تستهدف عناصر تانية */
.dark-mode header,
.dark-mode main,
.dark-mode footer {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* مثال لو عندك عناصر فيها ألوان مختلفة */
.dark-mode .card {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444;
}
