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

:root {
  /* Color Palette - Vibrant */
  --primary-color: #FF6B35;
  --primary-hover: #F25B24;
  --secondary-color: #FF3B30;
  --secondary-hover: #E6352B;
  
  --accent-yellow: #FFD166;
  --accent-blue: #118AB2;
  --accent-green: #06D6A0;
  --accent-purple: #8338EC;
  
  --text-dark: #2B2D42;
  --text-grey: #5C677D;
  --text-light: #8D99AE;
  
  --bg-main: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --success: #06D6A0;
  --warning: #FFD166;
  --danger: #EF476F;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Shadows & Borders - Softer and larger */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(255, 107, 53, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.04);
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1.25rem;
  --border-radius-xl: 2rem;
  --border-radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(17, 138, 178, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-grey);
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

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

.min-h-screen {
  min-height: 100vh;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-bounce);
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.95);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-main);
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
  background-color: #FFFFFF;
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Custom Checkbox/Radio */
.radio-custom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  border: 1px solid #E5E7EB;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}

.radio-custom:hover {
  border-color: var(--primary-color);
  background-color: rgba(255, 122, 0, 0.02);
}

.radio-custom input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-mark {
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.checkbox-mark {
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.radio-custom:hover input ~ .radio-mark,
.radio-custom:hover input ~ .checkbox-mark {
  border-color: var(--primary-color);
}

.radio-custom input:checked ~ .radio-mark {
  border-color: var(--primary-color);
  border-width: 6px;
}

.radio-custom input:checked ~ .checkbox-mark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.radio-custom input:checked ~ .checkbox-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio-custom input:checked ~ .radio-label {
  color: var(--primary-color);
  font-weight: 500;
}

.radio-custom.selected {
  border-color: var(--primary-color);
  background-color: rgba(255, 122, 0, 0.05);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 2.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-4 { padding: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-grey { color: var(--text-grey); }
.text-dark { color: var(--text-dark); }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-success { border-color: var(--success) !important; }
.border-danger { border-color: var(--danger) !important; }

/* Loading Spinner */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EB;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Slide-in animation for notifications */
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.animate-slide-in { animation: slideIn 0.3s ease forwards; }


/* Grid */
.grid {
  display: grid;
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

th {
  background-color: #F9FAFB;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #F9FAFB;
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-primary { background: rgba(255, 122, 0, 0.1); color: var(--primary-color); }
.badge-purple { background: rgba(131, 56, 236, 0.1); color: var(--accent-purple); }
.badge-outline { background: transparent; border: 1px solid #D1D5DB; color: var(--text-grey); }

/* Alerts / Toasts */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-danger { background-color: #FEF2F2; color: #B91C1C; border: 1px solid #F87171; }
.alert-success { background-color: #ECFDF5; color: #047857; border: 1px solid #34D399; }

/* Custom Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float-delayed {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.animate-float-delayed {
  animation: float-delayed 4.5s ease-in-out infinite 1s;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* New Badges & Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-heading);
}

.chip-primary { background-color: rgba(255, 107, 53, 0.15); color: var(--primary-color); }
.chip-yellow { background-color: rgba(255, 209, 102, 0.2); color: #D4A017; }
.chip-blue { background-color: rgba(17, 138, 178, 0.15); color: var(--accent-blue); }
.chip-green { background-color: rgba(6, 214, 160, 0.15); color: #04A77D; }
.chip-purple { background-color: rgba(131, 56, 236, 0.15); color: var(--accent-purple); }

/* Blob Backgrounds for Landing Page */
.bg-blob {
  position: absolute;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.5;
  border-radius: 50%;
}
.blob-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: var(--primary-color); }
.blob-2 { bottom: -10%; right: -5%; width: 500px; height: 500px; background: var(--accent-yellow); }
.blob-3 { top: 40%; left: 50%; width: 300px; height: 300px; background: var(--accent-blue); }
