/* ============================================================
   Agent OS - Premium Component Styles
   ============================================================ */

/* ------------------------------------------------------------
   1. Premium Cards
   ------------------------------------------------------------ */

.card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), transparent, rgba(236,72,153,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.card-premium:hover::before {
  opacity: 1;
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px rgba(99,102,241,0.1);
}

/* ------------------------------------------------------------
   2. Premium Buttons
   ------------------------------------------------------------ */

.btn-premium {
  position: relative;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.6);
}

.btn-premium-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-premium-primary:hover::after {
  transform: translateX(100%);
}

/* ------------------------------------------------------------
   3. Premium Stats Cards
   ------------------------------------------------------------ */

.stat-card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-card-premium:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 30px rgba(99,102,241,0.1);
}

.stat-card-premium .stat-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card-premium .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ------------------------------------------------------------
   4. Premium Input Fields
   ------------------------------------------------------------ */

.input-premium {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: #f1f3f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #1e293b;
  outline: none;
  transition: all 0.3s;
}

.input-premium:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.input-premium::placeholder {
  color: #94a3b8;
}

/* ------------------------------------------------------------
   5. Premium Sidebar
   ------------------------------------------------------------ */

.sidebar-premium {
  background: #ffffff;
  backdrop-filter: blur(20px);
  border-right: 1px solid #e2e8f0;
}

.sidebar-link-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #64748b;
  transition: all 0.3s;
  position: relative;
}

.sidebar-link-premium:hover {
  color: #1e293b;
  background: #f1f3f9;
}

.sidebar-link-premium.active {
  color: #6366f1;
  background: rgba(99,102,241,0.08);
}

.sidebar-link-premium.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 0 4px 4px 0;
}

/* ------------------------------------------------------------
   6. Premium Tables
   ------------------------------------------------------------ */

.table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-premium th {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table-premium td {
  padding: 16px 20px;
  font-size: 15px;
  color: #1e293b;
  border-bottom: 1px solid #f1f3f9;
}

.table-premium tr:hover td {
  background: #f8f9fc;
}

/* ------------------------------------------------------------
   7. Premium Badges
   ------------------------------------------------------------ */

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.badge-premium-success {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.2);
}

.badge-premium-warning {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.2);
}

.badge-premium-error {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
}

/* ------------------------------------------------------------
   8. Premium Modal
   ------------------------------------------------------------ */

.modal-premium-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-premium {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  animation: slideUp 0.3s;
}

/* ------------------------------------------------------------
   9. Premium Toast Notifications
   ------------------------------------------------------------ */

.toast-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.toast-premium-success { border-left: 3px solid #10b981; }
.toast-premium-error { border-left: 3px solid #ef4444; }
.toast-premium-info { border-left: 3px solid #6366f1; }

/* ------------------------------------------------------------
   10. Premium Execute Input
   ------------------------------------------------------------ */

.execute-premium {
  display: flex;
  gap: 16px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s;
}

.execute-premium:focus-within {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 30px rgba(99,102,241,0.1);
}

.execute-premium input {
  flex: 1;
  padding: 14px 18px;
  font-size: 17px;
  background: transparent;
  border: none;
  color: #1e293b;
  outline: none;
}

.execute-premium button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.execute-premium button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

/* ------------------------------------------------------------
   11. Premium Progress Bar
   ------------------------------------------------------------ */

.progress-premium {
  height: 6px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}

.progress-premium-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  border-radius: 100px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ------------------------------------------------------------
   Supporting Keyframe Animations
   ------------------------------------------------------------ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
