/* ============================================
   MODERN CRYPTO INVESTMENT PLATFORM - THEME 2
   Color Scheme: Emerald Green & Teal
   ============================================ */

:root {
  /* Theme 2 - Emerald Green & Teal */
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary-color: #14b8a6;
  --accent-color: #06b6d4;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #0a1f1a;
  --darker-bg: #051210;
  --card-bg: #1a2e27;
  --card-hover: #2d4a41;
  --text-primary: #f0fdf4;
  --text-secondary: #86efac;
  --border-color: #2d4a41;
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
  }
}
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MODERN CARDS
   ============================================ */
.modern-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}
.modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.5s;
}
.modern-card:hover::before {
  left: 100%;
}
.modern-card:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-xl),
    0 0 25px rgba(16, 185, 129, 0.3);
  border-color: var(--primary-color);
}

.modern-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scaleIn 0.5s ease-out;
}
.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    var(--shadow-xl),
    0 0 30px rgba(16, 185, 129, 0.4);
  border-color: var(--primary-light);
}

.stat-card-gradient-1 {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(20, 184, 166, 0.1) 100%
  );
  border-left: 4px solid var(--primary-color);
}
.stat-card-gradient-2 {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.1) 0%,
    rgba(8, 145, 178, 0.1) 100%
  );
  border-left: 4px solid var(--accent-color);
}
.stat-card-gradient-3 {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(22, 163, 74, 0.1) 100%
  );
  border-left: 4px solid var(--success-color);
}
.stat-card-gradient-4 {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(251, 191, 36, 0.1) 100%
  );
  border-left: 4px solid var(--warning-color);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 0.8s ease-out;
}

.stat-change {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
}
.stat-change.positive {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

/* ============================================
   DASHBOARD BOXES
   ============================================ */
.d-box-one,
.d-box-two,
.d-box-three,
.d-box-four {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.d-box-one:hover,
.d-box-two:hover,
.d-box-three:hover,
.d-box-four:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-xl),
    0 0 25px rgba(16, 185, 129, 0.3);
  border-color: var(--primary-color);
}

.d-box-three .icon,
.d-box-four .icon {
  background: var(--gradient-primary) !important;
}

/* ============================================
   CHARTS
   ============================================ */
.chart-container {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease-out;
}
.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.chart-wrapper {
  position: relative;
  min-height: 300px;
}

/* ============================================
   BUTTONS
   ============================================ */
.sp_btn,
.sp_btn_primary,
.sp_theme_btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}
.sp_btn_primary,
.sp_theme_btn {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  box-shadow: var(--shadow-md);
}
.sp_btn_primary:hover,
.sp_theme_btn:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-lg),
    0 0 20px rgba(16, 185, 129, 0.4) !important;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* ============================================
   MODERN TABLES
   ============================================ */
.modern-table-wrapper {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.6s ease-out;
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.modern-table thead {
  background: var(--gradient-primary);
  border-radius: 12px;
}

.modern-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  border: none;
}

.modern-table thead th:first-child {
  border-top-left-radius: 12px;
}

.modern-table thead th:last-child {
  border-top-right-radius: 12px;
}

.modern-table tbody tr {
  background: rgba(0, 0, 0, 0.015);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
  background: var(--card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.modern-table tbody td {
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  vertical-align: middle;
  border: none;
}

.modern-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.modern-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Modern Badges */
.modern-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  animation: scaleIn 0.3s ease-out;
}

.badge-success {
  background: var(--gradient-success);
  color: white;
}

.badge-pending {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.badge-failed {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.badge-info {
  background: var(--gradient-secondary);
  color: white;
}

/* ============================================
   MODERN FORMS & SEARCH
   ============================================ */
.modern-search-box {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.5s ease-out;
}

.modern-form-group {
  margin-bottom: 1.25rem;
}

.modern-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-form-input,
.modern-form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(0, 0, 0, 0.03);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.modern-form-input:focus,
.modern-form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.modern-form-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* Modern Buttons */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

.modern-btn:active {
  transform: translateY(0);
}

.modern-btn-secondary {
  background: var(--gradient-secondary);
}

.modern-btn-success {
  background: var(--gradient-success);
}

.modern-btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.modern-btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.modern-btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   PROFILE & USER INFO CARDS
   ============================================ */
.profile-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease-out;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.profile-info h3 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ============================================
   ALERT & MESSAGE BOXES
   ============================================ */
.modern-alert {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInLeft 0.5s ease-out;
  box-shadow: var(--shadow-md);
}

.modern-alert-success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(22, 163, 74, 0.1) 100%
  );
  border-left: 4px solid var(--success-color);
  color: var(--text-primary);
}

.modern-alert-warning {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2) 0%,
    rgba(217, 119, 6, 0.1) 100%
  );
  border-left: 4px solid var(--warning-color);
  color: var(--text-primary);
}

.modern-alert-danger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.1) 100%
  );
  border-left: 4px solid var(--danger-color);
  color: var(--text-primary);
}

.modern-alert-info {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2) 0%,
    rgba(8, 145, 178, 0.1) 100%
  );
  border-left: 4px solid var(--accent-color);
  color: var(--text-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.modern-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.modern-pagination a,
.modern-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modern-pagination a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.modern-pagination .active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-secondary);
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.countdown-timer i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .modern-card,
  .stat-card,
  .d-box-one,
  .d-box-two,
  .d-box-three,
  .d-box-four {
    padding: 20px;
  }
  .modern-table-wrapper {
    overflow-x: auto;
  }
  .modern-table {
    min-width: 800px;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .info-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
