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

* { box-sizing: border-box; }

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero gradient */
.hero-bg {
  background: linear-gradient(135deg, #0F0C29 0%, #302B63 50%, #24243E 100%);
}

/* Card hover */
.card-hover {
  transition: all 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

/* Sidebar */
.sidebar { width: 240px; min-height: 100vh; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 8px;
  color: #6B7280; font-size: 14px; font-weight: 500;
  transition: all 0.15s; text-decoration: none;
}
.sidebar-link:hover { background: #F3F4F6; color: #1F2937; }
.sidebar-link.active-nav, .sidebar-link.active {
  background: #EEF2FF; color: #4F46E5;
}
.sidebar-link.active svg, .sidebar-link.active-nav svg { color: #4F46E5; }

/* Stat card */
.stat-card { background: white; border-radius: 12px; padding: 20px; border: 1px solid #E5E7EB; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }

/* Progress bar */
.progress-bar { height: 6px; border-radius: 3px; background: #E5E7EB; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6366F1, #8B5CF6); transition: width 0.5s ease; }

/* Severity dot */
.sev-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Form */
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 8px;
  font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit; background: white;
}
.form-input:focus { outline: none; border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* Button */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: none; text-decoration: none; }
.btn-primary { background: #4F46E5; color: white; }
.btn-primary:hover { background: #4338CA; }
.btn-secondary { background: white; color: #374151; border: 1px solid #D1D5DB; }
.btn-secondary:hover { background: #F9FAFB; }
.btn-danger { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.btn-danger:hover { background: #FEE2E2; }
.btn-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.btn-success:hover { background: #D1FAE5; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; font-weight: 600; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #E5E7EB; }
.data-table td { padding: 14px 16px; font-size: 14px; color: #374151; border-bottom: 1px solid #F3F4F6; }
.data-table tr:hover td { background: #FAFAFA; }

/* Tag */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; background: #F3F4F6; color: #374151; }

/* Avatar */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; font-size: 13px; }

/* Modal overlay */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: white; border-radius: 16px; max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: #1F2937; color: white; padding: 12px 20px; border-radius: 10px; font-size: 14px; z-index: 100; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Active nav highlight */
.active-nav { background: #EEF2FF !important; color: #4F46E5 !important; }

/* Step circle */
.step-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }

/* Feature card */
.feature-card { padding: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; transition: all 0.2s; }
.feature-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* Chip filter */
.chip { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid #E5E7EB; cursor: pointer; transition: all 0.15s; }
.chip:hover { border-color: #6366F1; color: #4F46E5; }
.chip.active { background: #6366F1; color: white; border-color: #6366F1; }

/* Upload area */
.upload-area { border: 2px dashed #D1D5DB; border-radius: 8px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.15s; }
.upload-area:hover { border-color: #6366F1; background: #F5F3FF; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* Flow arrow */
.flow-arrow { display: flex; align-items: center; color: #9CA3AF; font-size: 20px; }

/* Notification dot */
.notif-dot { width: 8px; height: 8px; background: #EF4444; border-radius: 50%; position: absolute; top: -2px; right: -2px; border: 2px solid white; }

/* Skeleton */
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

/* Landing nav */
.landing-nav { backdrop-filter: blur(20px); background: rgba(15,12,41,0.8); border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Section */
.section { padding: 80px 0; }

/* Divider */
.divider { height: 1px; background: #E5E7EB; margin: 24px 0; }
