@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Emblue Brand Colors */
  --primary-deep: #020381;
  --primary-vibrant: #2874fc;
  --primary-cyan: #0693e3;
  --primary-gradient: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-vibrant) 100%);
  
  /* Light Mode Base */
  --bg-light: #f5f7fb;
  --bg-panel: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.6);
  --border-glass: rgba(0, 0, 0, 0.05);
  --border-glow: rgba(40, 116, 252, 0.4);
  
  /* Typography Colors */
  --text-main: #1a202c;
  --text-muted: #718096;
  
  /* Utilities */
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-glow: 0 0 20px rgba(40, 116, 252, 0.2);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  /* Premium subtle background glow effects for light mode */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(2, 3, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(6, 147, 227, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(6, 147, 227, 0.15);
  background: #ffffff;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 3, 129, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 116, 252, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Secondary Button for forms */
.btn-secondary {
  background: #ffffff;
  color: var(--primary-vibrant);
  border: 2px solid var(--primary-vibrant);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(40, 116, 252, 0.05);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Status Badges */
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.badge-new { background: rgba(6, 147, 227, 0.1); color: var(--primary-vibrant); border: 1px solid rgba(6, 147, 227, 0.2); }
.badge-warning { background: rgba(252, 185, 0, 0.15); color: #d69e00; border: 1px solid rgba(252, 185, 0, 0.3); }
.badge-success { background: rgba(0, 208, 130, 0.15); color: #00a065; border: 1px solid rgba(0, 208, 130, 0.3); }

/* Headings */
h1, h2, h3 {
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tables / Kanban */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
}

.table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.table tbody tr {
  transition: background 0.3s ease;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Field Builder Card */
.field-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: #fafbcc; /* Slight off-white or just white */
  background: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
