body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

h2 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
}

form {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.form-group {
  width: 100%;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group.row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="file"] {
  display: none;
}

.upload-label {
  background: #00c6ff;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  text-align: center;
}

.upload-label:hover {
  background: #007f9f;
  color: white;
}

#fileName {
  margin-top: 5px;
  font-size: 14px;
  color: #ccc;
}

textarea,
input[type="color"],
input[type="number"] {
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  height: 100px;
}

input[type="color"] {
  padding: 0;
  width: 100%;
  height: 40px;
  cursor: pointer;
}

.row input[type="number"] {
  width: 100%;
}

button {
  background: #00c6ff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  align-self: center;
  transition: 0.3s;
}

button:hover {
  background: #007f9f;
  color: white;
}

#canvasWrapper {
  margin-top: 30px;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

canvas {
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px;
}

a#downloadLink {
  display: none;
  margin: 5px 0 30px 0;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

a#downloadLink:hover {
  background: #ddd;
}
#loader {
  display: none;
  margin: 20px auto;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #00c6ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
select {
padding: 10px;
border-radius: 8px;
border: none;
font-size: 16px;
width: 100%;
box-sizing: border-box;
}
#manageLogosBtn {
  background: #00c6ff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  margin-top: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block; /* العرض على قد المحتوى */
  width: auto !important; /* إجبار العرض على auto */
  align-self: flex-start; /* يمنعه من التمدد بعرض الفورم */
}

#manageLogosBtn:hover {
  background: #007f9f;
  color: white;
}