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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #0f172a;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar h1 {
  font-size: 24px;
  font-weight: 700;
}

.session-info {
  font-size: 13px;
  opacity: 0.8;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.badge {
  background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: normal;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.actions-center {
  text-align: center;
  margin: 32px 0;
}

button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transition: all 0.3s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  transform: none;
}

.result-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  margin-top: 24px;
}

.result-box.success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
}

.result-box.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
}

.result-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-content {
  font-size: 14px;
  line-height: 1.8;
}

.result-info {
  background: rgba(255,255,255,0.7);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  border-left: 4px solid #3b82f6;
}

.result-info strong {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.result-info .value {
  font-family: monospace;
  font-size: 14px;
  color: #0f172a;
  word-break: break-all;
}

.result-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.result-actions button {
  margin: 0;
  padding: 10px 20px;
  font-size: 14px;
  background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.instructions {
  margin-top: 20px;
  padding: 16px;
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
}

.instructions h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #92400e;
}

.instructions ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #78350f;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .topbar h1 {
    font-size: 20px;
  }
}
