/* AlejandroVR Brand Variables */
:root {
  /* Logo colors */
  --logo-dark: #1E293B;
  --logo-light: #FFFFFF;
  
  /* Brand palette */
  --primary: #0066FF;
  --secondary: #10B981;
  --accent: #F59E0B;
  --dark: #1E293B;
  --text: #374151;
  --text-light: #6B7280;
  --background: #F9FAFB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  
  /* Semantic colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #0066FF;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Borders & Shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  width: 48px;
  height: 48px;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: var(--font-semibold);
  color: var(--dark);
  margin-bottom: 0.25rem;
}

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

.status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-text {
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--text);
}

/* Main Layout */
.main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  flex: 1;
}

/* Form Container */
.form-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.activity-form {
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  color: var(--dark);
  margin-bottom: var(--space-xs);
}

.label-hint {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--font-regular);
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-textarea::placeholder {
  color: var(--text-light);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  min-width: 120px;
  height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #0052CC;
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--background);
  border-color: var(--text-light);
}

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: var(--space-xs);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Response Container */
.response-container {
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  position: relative;
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.response-header h3 {
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
}

.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  opacity: 0.8;
}

.response-content {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Stats Sidebar */
.stats-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.stats-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stats-card h3 {
  font-size: 1rem;
  font-weight: var(--font-semibold);
  color: var(--dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.stat-value {
  font-size: 0.875rem;
  font-weight: var(--font-semibold);
  color: var(--primary);
}

.example-item {
  font-size: 0.75rem;
  color: var(--text-light);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  cursor: pointer;
  transition: all 0.2s;
}

.example-item:hover {
  background: var(--background);
  color: var(--text);
}

.example-item:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .stats-sidebar {
    order: -1;
  }
  
  .header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* Success/Error States */
.status.success .status-indicator {
  background: var(--success);
}

.status.error .status-indicator {
  background: var(--error);
}

.status.processing .status-indicator {
  background: var(--warning);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
  /* Will implement if needed */
}