body.dark {
  background-color: #0d0d0d;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light {
  background-color: #f5f5f5;
  color: #222;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo {
  width: 80px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

header,
footer {
  text-align: center;
  margin-bottom: 20px;
}

select,
textarea,
button,
#result {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #444;
  font-size: 16px;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 59, 59, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* الوضع الداكن */
body.dark textarea,
body.dark select,
body.dark button,
body.dark #result {
  background-color: #1a1a1a;
  color: #fff;
  border-color: #ff3b3b;
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.2);
}

/* الوضع الفاتح */
body.light textarea,
body.light select,
body.light button,
body.light #result {
  background-color: #fff;
  color: #222;
  border-color: #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* زر الترجمة بالأحمر القوي */
#translateBtn {
  background-color: #ff3b3b;
  color: white;
  font-weight: bold;
  border: none;
}

#translateBtn:hover {
  background-color: #ff5555;
  box-shadow: 0 0 12px #ff3b3b;
}

.actions button {
  background-color: #2c2c2c;
  color: white;
  border: 1px solid #555;
  border-radius: 8px;
}

.actions button:hover {
  background-color: #ff3b3b;
  color: #fff;
  box-shadow: 0 0 12px #ff3b3b;
}

footer p {
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.6;
}

.actions a {
  display: inline-block;
  margin: 10px 5px;
  text-decoration: none;
  color: #ff3b3b;
  font-weight: bold;
  transition: color 0.3s ease;
}

.actions a:hover {
  color: #ff6666;
  text-shadow: 0 0 6px #ff3b3b;
}

.theme-switcher button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 0 6px rgba(255, 59, 59, 0.3);
}

/* تأثيرات عامة */
label,
select,
textarea,
button,
#result {
  backdrop-filter: blur(2px);
}

main > * {
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.01);
}

body.dark main > * {
  background: rgba(255, 59, 59, 0.04);
}

body.light main > * {
  background: rgba(0, 0, 0, 0.02);
}
