

/* إعداد عام */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  background-color: #eef3fa;
  color: #222;
  overflow-x: hidden;
}

/* 🔵 Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vh;
  background-color: #1e3a8a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}
/* 
/* 🟣 Sidebar 
.sidebar {
  width: 16vw;
  background-color: #1e1e2f;
  color: white;
  padding: 10vh 1.2vw 3vh;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
}

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

.sidebar a {
  text-decoration: none;
  color: #ddd;
  padding: 0.8rem;
  border-radius: 0.8rem;
  transition: 0.3s;
}

.sidebar a:hover {
  background-color: #374151;
  color: #fff;
} */

#translate-btn {
  margin-top: 3vh;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.8rem;
  width: 100%;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

#translate-btn:hover {
  background-color: #1d4ed8;
}

/* 🟢 Main Content */
/* 
.content {
  margin-left: 18vw;
  margin-top: 10vh;
  padding: 2vw;
  flex: 1;
} */

.sidebar {
  display: none;
}

.content {
  margin-left: 0;
  width: 100%;
  padding: 5vw;
}


/* 🎙️ Recorder Section */
.recorder-section {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  margin-bottom: 3vh;
}

.recorder-controls {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.recorder-controls button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

.recorder-controls button:hover {
  background-color: #2563eb;
}

/* 📘 Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  height: 40vh;
  overflow: hidden;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.15);
}

.card button {
  margin-top: 1rem;
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.card button:hover {
  background-color: #172554;
}

/* ❌ Close Button */
.close-btn {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-size: 2rem;
  font-weight: bold;
  color: #f7f7f7;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: crimson;
  transform: scale(1.1);
}

/* ✨ Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 🎨 Buttons */
.beige-btn {
  background-color: #e6d5b8;
  color: #000;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.8rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.15);
}

.beige-btn:hover {
  background-color: #d9c7a8;
  transform: scale(1.05);
  box-shadow: 0 0.6rem 1.2rem rgba(0,0,0,0.2);
}

.zoz {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #f5deb3;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 1rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.zoz:hover {
  background: #f0d49a;
  transform: translateY(-0.2rem);
  box-shadow: 0 0 1.2rem rgba(0, 0, 0, 0.3);
}

.zoz:active {
  transform: scale(0.97);
}

/* 📱 Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 22vw;
    padding: 8vh 2vw;
  }
  .content {
    margin-left: 24vw;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2vh 5vw;
  }
  .content {
    margin-left: 0;
    margin-top: 12vh;
    padding: 5vw;
  }
  .navbar {
    height: 10vh;
    font-size: 1rem;
  }
  .card {
    height: auto;
  }
}

@media (max-width: 480px) {
  .navbar {
    font-size: 0.9rem;
    height: 9vh;
  }
  .sidebar {
    padding: 2vh 4vw;
  }
  .sidebar a {
    font-size: 0.9rem;
  }
  .recorder-section {
    padding: 1.5rem;
  }
  .recorder-controls {
    flex-direction: column;
  }
}



pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 1rem;
  line-height: 1.6;
}
