/*
 * Curve.fi Inspired Elements
 * Modern glassmorphism and gradient effects
 */

/* Glassmorphic Cards */
.curve-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.curve-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 16px 48px 0 rgba(31, 38, 135, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

/* Windows 95 Text Styles - No Gradients */
.curve-gradient-text,
.curve-gradient-text-alt,
.curve-gradient-text-cyan {
  color: #000080; /* Classic Windows 95 navy blue */
  font-weight: 700;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

/* Animated Gradient Buttons */
.curve-button {
  position: relative;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.4);
}

.curve-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transition: left 0.3s ease;
}

.curve-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.6);
}

.curve-button:hover::before {
  left: 0;
}

.curve-button span {
  position: relative;
  z-index: 1;
}

/* Input Fields - Windows 95 Style */
.curve-input {
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
  padding: 8px 12px;
  color: #000000;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: inset 1px 1px 0 #000000, inset -1px -1px 0 #dfdfdf;
}

.curve-input:focus {
  outline: 1px dotted #000000;
  outline-offset: -3px;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
}

.curve-input::placeholder {
  color: #808080;
}

/* Badge/Pill */
.curve-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  color: #a0b0ff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.curve-badge:hover {
  background: rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Stats/Metric Card */
.curve-stat {
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.curve-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.curve-stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tooltip */
.curve-tooltip {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Progress Bar */
.curve-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.curve-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.curve-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Toggle Switch */
.curve-toggle {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.curve-toggle.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.curve-toggle-handle {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.curve-toggle.active .curve-toggle-handle {
  left: 26px;
}

/* Dropdown */
.curve-dropdown {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.curve-dropdown-item {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.curve-dropdown-item:hover {
  background: rgba(102, 126, 234, 0.2);
  color: white;
}

/* Alert/Notification */
.curve-alert {
  background: rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.curve-alert-success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.curve-alert-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.curve-alert-error {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Skeleton Loader */
.curve-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tab Pills */
.curve-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.curve-tab {
  padding: 10px 24px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.curve-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.curve-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Divider */
.curve-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 24px 0;
}

/* Floating Action Button */
.curve-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.curve-fab:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.curve-fab:active {
  transform: scale(0.95);
}

/* Chip/Tag - Windows 95 Style */
.curve-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #000000;
  transition: all 0.2s ease;
  text-decoration: none;
}

.curve-chip:hover {
  background: #000080;
  color: #ffffff;
  border-color: #ffffff #808080 #808080 #ffffff;
  transform: none;
}

/* Pagination */
.curve-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.curve-page {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.curve-page:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.curve-page.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
