/* ================================================
   1. ROOT VARIABLES (Matches Dashboard Studio Black)
   ================================================ */
:root {
  --color-primary: #5a189a;
  --color-secondary: #ffc300;
  --color-background: #f4f7f9;
  --color-text: #333333;
  --color-soft-gray: #6b7280;
  --color-light-gray: #e5e7eb;
  --color-error: #dc3545;
  --color-success: #28a745;

  /* Glass Vars */
  --bg-body: var(--color-background);
  --bg-glass-panel: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  --border-color: #c0c0c0;
  --shadow-glass: 0 8px 30px rgba(90, 24, 154, 0.05);
  
  --font-family-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
}

/* DARK MODE (Studio Black) */
body.dark {
  --bg-body: #050505; 
  --bg-glass-panel: #141414; 
  --bg-input: #1f1f1f; 
  --color-text: #ffffff;
  --color-soft-gray: #a3a3a3;
  --border-color: #3c096c; 
  --color-secondary: #ffd60a; 
}

/* ================================================
   2. GLOBAL LAYOUT
   ================================================ */
body {
  margin: 0;
  font-family: var(--font-family-sans);
  background: var(--bg-body);
  color: var(--color-text);
  display: flex;
  flex-direction: column; 
  align-items: center;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* HEADER */
header {
  width: 100%;
  padding: 20px;
  /* Glass Header */
  background: var(--bg-glass-panel);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.back-arrow {
  font-size: 1.5em;
  color: var(--color-primary);
  cursor: pointer;
  position: absolute;
  left: 0;
  padding: 10px;
  transition: transform 0.2s;
}
.back-arrow:hover { transform: translateX(-3px); }
body.dark .back-arrow { color: var(--color-secondary); }

.header-title {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

/* ================================================
   3. MAIN CARD
   ================================================ */
.container {
  width: 90%;
  max-width: 500px;
  margin-top: 40px; /* Space from header */
  margin-bottom: 40px;
}

.card {
  background: var(--bg-glass-panel);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-glass);
  text-align: center;
}

/* Dark Mode Glow */
body.dark .card {
  box-shadow: 0 0 20px rgba(90, 24, 154, 0.15);
}

/* ================================================
   4. FORM ELEMENTS
   ================================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1em;
  transition: 0.3s;
  box-sizing: border-box; /* Fix width issues */
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(90, 24, 154, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  padding: 14px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

button:hover {
  background: #4a148c; /* Darker purple */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

body.dark button {
  background: var(--color-secondary);
  color: #3E1F47; /* Dark text on gold button */
}
body.dark button:hover {
  background: #ffdb4d;
}

#statusMessage {
  margin-top: 15px;
  font-size: 0.9em;
  min-height: 20px;
}
