/* update-panel.css */
.update-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: all;
}

.update-panel-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 30px;
  max-width: 90%;
  color: #2c3e50;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.6s ease;
  position: relative;
}

.update-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c3e50;
  cursor: pointer;
  transition: color 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: #ffec3d;
}

body.dark .close-button {
  color: #e0e0ff;
}

body.dark .close-button:hover {
  color: #ffec3d;
}

.update-panel-content h2 {
  color: #666600;
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.update-panel-content p {
  margin: 15px 0;
  font-weight: 600;
  text-align: right;
  direction: rtl;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.update-panel-content p::before {
  content: "•";
  font-size: 1.2rem;
  color: #ffec3d;
}

.update-panel-content p:last-child {
  margin-top: 25px;
  font-style: italic;
  color: #7f8c8d;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.updates-button {
  position: fixed;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 8px 15px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  color: #ac9307;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.updates-button:hover {
  background: rgba(255, 107, 107, 0.15);
  transform: translateY(-2px);
}

body.dark .update-panel-content {
  background: linear-gradient(135deg, #000524 0%, #2a2a30 100%);
  color: #e0e0ff;
  transform: translateY(-2px);
}

body.dark .update-panel-content p {
  color: #ffffff
}

body.dark .update-panel-content h2 {
  color: #ffec3d
}

body.dark .updates-button {
  background: rgba(26, 31, 54, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffec3d;
}

body.dark .updates-button:hover {
  background: rgba(255, 107, 107, 0.15);
}