@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Innova brand colors */
  --innova-dark: #1B2B4B;
  --innova-mid: #2171B5;
  --innova-light: #4DA8D8;
  --innova-accent: #0088FF;

  --bg: #f0f4f8;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1B2B4B;
  --text-muted: #64748b;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Logo */
.logo-header {
  text-align: center;
  padding: 2rem 0;
}

.logo-header img {
  max-width: 300px;
  height: auto;
}

/* Layout */
.app-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(27, 43, 75, 0.08);
}

/* Header */
.header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--innova-dark);
  margin-bottom: 0.25rem;
}

.header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--innova-dark);
}

.header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--innova-dark);
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--innova-mid);
  box-shadow: 0 0 0 3px rgba(33, 113, 181, 0.15);
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Character counter */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: right;
}

.char-counter.at-limit {
  color: red;
}

/* Preview */
.preview-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.canvas-wrapper {
  width: 100%;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.loading-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.loading-msg.hidden {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--innova-mid), var(--innova-light));
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--innova-dark), var(--innova-mid));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 113, 181, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
