@font-face {
  font-family: "AktivGrotesk";
  src: url("assets/fonts/AktivGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "AktivGrotesk";
  src: url("assets/fonts/AktivGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0f0f0f;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

.app {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.panel {
  flex: 1;
}

.form-panel {
  max-width: 400px;
}

.preview-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#canvas {
  width: 100%;
  max-width: 540px;
  border-radius: 8px;
  background: #1a1a1a;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.header-logo {
  display: block;
  height: 40px;
  width: auto;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  padding: 4px 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: #888;
  color: #ccc;
}

.lang-btn.active {
  background: #F5C800;
  border-color: #F5C800;
  color: #111;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.subtitle {
  color: #888;
  margin-bottom: 32px;
  font-size: 14px;
}

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

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #F5C800;
}

.dropzone {
  position: relative;
  width: 100%;
  height: 160px;
  border: 2px dashed #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: #F5C800;
  background: rgba(245, 200, 0, 0.05);
}

.dropzone-text {
  color: #666;
  font-size: 14px;
  pointer-events: none;
}

.photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.theme-buttons {
  display: flex;
  gap: 8px;
}

.theme-btn-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.theme-hint {
  font-size: 10px;
  color: #888;
  text-align: center;
  line-height: 1.2;
}

.theme-btn {
  width: 100%;
  padding: 10px 0;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
}

.theme-btn:hover {
  transform: scale(1.03);
}

.theme-btn.active {
  border-color: #fff;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  font-size: 14px;
  color: #ccc;
}

.toggle-label input {
  width: 18px;
  height: 18px;
  accent-color: #F5C800;
}

.progress-bar {
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #F5C800;
  border-radius: 2px;
  transition: width 0.3s;
  animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #F5C800;
  color: #111;
}

.btn-download {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}

@media (max-width: 900px) {
  .app {
    flex-direction: column;
    padding: 20px 16px;
    gap: 24px;
  }
  .form-panel {
    max-width: 100%;
  }
  #canvas {
    max-width: 100%;
  }
}
