/* Kullanıcı Sayfası Stilleri */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #e6f2ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(135deg, #0099ff, #0066cc);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.card-header h1 {
  font-size: 24px;
  font-weight: bold;
}

.gear-icon {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.card-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.user-icon::before {
  content: "👤";
}

input[type="text"] {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.info-text {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #555;
}

.info-circle,
.info-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #3366cc;
  color: white;
  margin-right: 10px;
  font-weight: bold;
}

.preview-container {
  margin: 20px 0;
  text-align: center;
}

.certificate-preview {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Önizleme alanı için stil */
#certificate-preview {
  transition: all 0.3s ease;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

#preview-image {
  transition: all 0.3s ease;
  transform: scale(0.95);
}

#preview-image:hover {
  transform: scale(1);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.preview-btn {
  background-color: #f0f0f0;
  color: #333;
}

.download-btn {
  background-color: #4caf50;
  color: white;
}

.eye-icon::before {
  content: "👁️";
  margin-right: 8px;
}

.download-icon::before {
  content: "⬇️";
  margin-right: 8px;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #c62828;
}

.debug-info {
  margin-top: 30px;
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  max-width: 600px;
}

.debug-info h3 {
  margin-bottom: 10px;
  color: #333;
}

.debug-info p {
  margin: 5px 0;
  font-family: monospace;
}

/* Spinner animasyonu için CSS */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #0066cc;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .card-header h1 {
    font-size: 20px;
  }

  .card-body {
    padding: 20px;
  }
}
