/* ============== OPS Common CSS Variables ============== */
/* Shared design tokens for review.css and designer.css */

:root {
  /* Primary colors */
  --primary: #334155;
  --primary-dark: #1e293b;
  --primary-light: #475569;

  /* Accent colors */
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --accent-light: #06b6d4;

  /* Semantic colors */
  --success: #059669;
  --success-light: #10b981;
  --warning: #d97706;
  --danger: #e11d48;
  --danger-light: #f43f5e;

  /* Gray scale */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition: all 0.2s ease;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  --gradient-warning: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  --gradient-info: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  --gradient-success: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  --gradient-danger: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);

  /* Background and surface colors for theming */
  --bg-primary: #e2e8f0;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-color-strong: #cbd5e1;
}

/* Common base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* Common toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--gray-800);
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s ease;
}

.toast.success {
  background: var(--success);
}
.toast.error {
  background: var(--danger);
}
.toast.warning {
  background: var(--warning);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Common login styles */
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: white;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--gray-200);
}

.login-card h2 {
  color: var(--gray-900);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 28px;
}

.login-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 14px;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 2px solid var(--gray-300);
  font-size: 15px;
  transition: var(--transition);
  background: var(--gray-50);
  font-family: inherit;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  background: white;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(51, 65, 85, 0.3);
}

.login-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #fca5a5;
}

/* ============== Utility Classes ============== */
/* Display utilities */
.hidden {
  display: none !important;
}

/* Margin utilities */
.mt-24 {
  margin-top: 24px;
}
.mb-24 {
  margin-bottom: 24px;
}

/* Padding utilities */
.p-0 {
  padding: 0;
}
.p-16 {
  padding: 16px;
}

/* Text alignment */
.text-center {
  text-align: center;
}

/* Overflow utilities */
.overflow-y-auto {
  overflow-y: auto;
}

/* Grid utilities */
.full-width {
  grid-column: 1 / -1;
}

/* Height utilities */
.h-350 {
  height: 350px;
}

/* Home Button */
.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
  margin-right: 12px;
}

.home-btn:hover {
  background: var(--gray-200);
  transform: scale(1.05);
}

/* Login Home Button */
.login-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding: 12px 20px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  background: var(--gray-50);
}
.login-home-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(8, 145, 178, 0.06);
  transform: translateY(-1px);
}
