/* Shared CSS for all Korrelate apps */
/* This file is served by nginx at /shared/css/common.css */

/* Base typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Brand colors - Experimenting with different schemes */
/* Current: Professional Blue */
/* Alternative 1: Modern Purple */
/* Alternative 2: Warm Orange */
/* Alternative 3: Forest Green */

:root {
  /* Current Professional Blue Scheme */
  --korrelate-primary: #2563eb;    /* Blue-600 */
  --korrelate-secondary: #64748b;  /* Slate-500 */
  --korrelate-accent: #f59e0b;     /* Amber-500 */
  --korrelate-success: #10b981;    /* Emerald-500 */
  --korrelate-warning: #f59e0b;    /* Amber-500 */
  --korrelate-error: #ef4444;      /* Red-500 */

  /* Alternative 1: Modern Purple Scheme */
  /* --korrelate-primary: #7c3aed;    Indigo-600 */
  /* --korrelate-secondary: #64748b;  Slate-500 */
  /* --korrelate-accent: #ec4899;     Pink-500 */
  /* --korrelate-success: #10b981;    Emerald-500 */
  /* --korrelate-warning: #f59e0b;    Amber-500 */
  /* --korrelate-error: #ef4444;      Red-500 */

  /* Alternative 2: Warm Orange Scheme */
  /* --korrelate-primary: #ea580c;    Orange-600 */
  /* --korrelate-secondary: #64748b;  Slate-500 */
  /* --korrelate-accent: #2563eb;     Blue-600 */
  /* --korrelate-success: #10b981;    Emerald-500 */
  /* --korrelate-warning: #f59e0b;    Amber-500 */
  /* --korrelate-error: #ef4444;      Red-500 */

  /* Alternative 3: Forest Green Scheme */
  /* --korrelate-primary: #059669;    Emerald-600 */
  /* --korrelate-secondary: #64748b;  Slate-500 */
  /* --korrelate-accent: #7c3aed;     Indigo-600 */
  /* --korrelate-success: #10b981;    Emerald-500 */
  /* --korrelate-warning: #f59e0b;    Amber-500 */
  /* --korrelate-error: #ef4444;      Red-500 */

  --korrelate-background: #ffffff;
  --korrelate-surface: #f8fafc;
}

/* Common button styles */
.btn-primary {
  background-color: var(--korrelate-primary) !important;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #1d4ed8 !important;
}

.btn-secondary {
  background-color: var(--korrelate-secondary) !important;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #475569 !important;
}

/* Common form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151 !important;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--korrelate-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Common card styles */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827 !important;
  margin: 0;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none; }

/* Responsive utilities */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}