/* Movmint Template Library — Base Styles */

:root {
  --brand-primary: #6C5CE7;
  --brand-secondary: #A29BFE;
  --brand-accent: #00CEC9;
  --brand-text: #2D3436;
  --brand-bg: #FFFFFF;
  --brand-surface: #F8F9FA;
  --brand-border: #E0E0E0;
  --brand-error: #D63031;
  --brand-success: #00B894;
  --brand-warning: #FDCB6E;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Typography */
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: #636E72; }
.text-center { text-align: center; }

/* Cards */
.card {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-header { margin-bottom: 16px; }
.card-body { margin-bottom: 16px; }
.card-footer { padding-top: 16px; border-top: 1px solid var(--brand-border); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-primary);
  color: white;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  background: var(--brand-surface);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
}
.btn-secondary:hover { background: var(--brand-border); }
.btn-accent {
  background: var(--brand-accent);
  color: white;
}
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-block { width: 100%; justify-content: center; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--brand-text);
}
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--brand-bg);
  color: var(--brand-text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Tags / Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-primary { background: var(--brand-primary); color: white; }
.badge-accent { background: var(--brand-accent); color: white; }
.badge-success { background: var(--brand-success); color: white; }
.badge-warning { background: var(--brand-warning); color: #2D3436; }
.badge-error { background: var(--brand-error); color: white; }

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-active { background: var(--brand-success); }
.status-paused { background: var(--brand-warning); }
.status-disabled { background: var(--brand-error); }
.status-pending { background: var(--brand-border); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--brand-border);
}
th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #636E72;
}

/* Header */
.app-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 32px;
}
.app-header .logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

/* Sections */
.section { padding: 32px 0; }
.section-title { margin-bottom: 24px; }

/* Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.hidden { display: none !important; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--brand-border);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}
.toast-success { background: var(--brand-success); }
.toast-error { background: var(--brand-error); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } }

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
