* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f0 100%);
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}
header h1 {
  font-size: 2.5rem;
  color: #1a56e0;
  margin-bottom: 10px;
}
header p {
  color: #666;
  font-size: 1.1rem;
}

.upload-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.drop-area {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafcff;
}
.drop-area:hover {
  border-color: #1a56e0;
  background: #eef5ff;
}
.drop-area i {
  font-size: 48px;
  color: #1a56e0;
  display: block;
  margin-bottom: 15px;
}
.drop-area p {
  font-size: 1.1rem;
  color: #555;
}
.hint {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
}

.options {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

#generateBtn {
  width: 100%;
  background: #1a56e0;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
#generateBtn:hover {
  background: #0d47a1;
}

#resultSection {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 选址 0 8px 20px rgba(0,0,0,0.05);
}

.result-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
#resultCanvas {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f9f9f9;
}

.btn-download {
  background: #28a745;
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-download:hover {
  background: #1e7e34;
}

/* استجابة للجوّال */
@media (max-width: 768px) {
  header h1 { font-size: 2rem; }
  .drop-area { padding: 25px 15px; }
  #resultCanvas { max-width: 100%; }
}