body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
  margin: 0;
  padding: 0;
}

.hero, .features, .cta, .footer, nav {
  transition: opacity 0.5s ease;
}

.hero {
  background-color: #0d6efd;
  color: white;
  padding: 100px 30px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.25rem;
}

.features {
  padding: 60px 30px;
}

.feature-box {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  text-align: center;
  height: 100%;
}

.cta {
  background-color: #343a40;
  color: white;
  padding: 60px 30px;
  text-align: center;
}

.footer {
  background-color: #212529;
  color: white;
  text-align: center;
  padding: 20px;
}

#aiWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  z-index: 1050;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

#toggleWidget {
  position: fixed;
  bottom: 20px;
  right: 390px;
  z-index: 1051;
}

#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
}

.loader-cubes {
  display: flex;
  gap: 10px;
}

.cube {
  width: 20px;
  height: 20px;
  background-color: #0d6efd;
  animation-name: jump;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  border-radius: 4px;
}

.cube1 {
  background-color: #0d6efd;
  animation-delay: 0s;
}

.cube2 {
  background-color: #198754;
  animation-delay: 0.2s;
}

.cube3 {
  background-color: #dc3545;
  animation-delay: 0.4s;
}

@keyframes jump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

#generatedContent {
  min-height: 100vh;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.uploaded-image {
  position: relative;
  margin: 20px 0;
}

.uploaded-image .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

.uploaded-image:hover .delete-btn {
  display: block;
}

.file-badge {
  margin-right: 10px;
}

[dir="rtl"] .navbar-brand {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

[dir="rtl"] .uploaded-image .delete-btn {
  right: auto;
  left: 10px;
}

[dir="rtl"] .file-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}