/*

Theme Name: TECP Bootstrap 5

Theme URI: http://tecommandpost.com/

Description: A modern Bootstrap 5 theme for TE Command Post.

Version: 3.0

Author: Josh Abbott

*/


/* ========================================
   CSS Variables & Root Configuration
   ======================================== */
:root {
  /* TECP Brand Colors - Vibrant Blues */
  --tecp-primary: #0066ff;
  --tecp-primary-light: #4d94ff;
  --tecp-primary-dark: #0052cc;
  --tecp-primary-gradient: linear-gradient(135deg, #0066ff 0%, #00a6ff 100%);
  
  /* Secondary & Accent Colors */
  --tecp-secondary: #7c3aed;
  --tecp-accent: #ff4757;
  --tecp-accent-yellow: #ffa502;
  --tecp-accent-pink: #ff6348;
  
  /* Status Colors */
  --tecp-success: #00d68f;
  --tecp-warning: #ffaa00;
  --tecp-danger: #ff3838;
  --tecp-info: #00b8d4;
  
  /* Gamification Colors */
  --tecp-gold: #ffd700;
  --tecp-silver: #c0c0c0;
  --tecp-bronze: #cd7f32;
  --tecp-xp-color: #9c27b0;
  
  /* Background Colors */
  --tecp-bg-light: #f7f9fc;
  --tecp-bg-dark: #1a1d29;
  --tecp-bg-card: #ffffff;
  --tecp-bg-hover: #f0f4f8;
  --tecp-bg-gradient: linear-gradient(180deg, #f7f9fc 0%, #e8f0fe 100%);
  
  /* Text Colors */
  --tecp-text-primary: #212529;
  --tecp-text-secondary: #6c757d;
  --tecp-text-muted: #adb5bd;
  
  /* Spacing */
  --tecp-spacing-xs: 0.25rem;
  --tecp-spacing-sm: 0.5rem;
  --tecp-spacing-md: 1rem;
  --tecp-spacing-lg: 1.5rem;
  --tecp-spacing-xl: 3rem;
  
  /* Border Radius */
  --tecp-radius-sm: 0.25rem;
  --tecp-radius-md: 0.5rem;
  --tecp-radius-lg: 0.75rem;
  --tecp-radius-xl: 1rem;
  
  /* Shadows */
  --tecp-shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  --tecp-shadow-md: 0 0.5rem 1rem rgba(0,0,0,0.15);
  --tecp-shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
  
  /* Transitions */
  --tecp-transition-fast: 0.15s ease-in-out;
  --tecp-transition-base: 0.3s ease-in-out;
  --tecp-transition-slow: 0.5s ease-in-out;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
  --tecp-bg-light: #212529;
  --tecp-bg-card: #2b3035;
  --tecp-bg-hover: #373b3e;
  --tecp-text-primary: #f8f9fa;
  --tecp-text-secondary: #adb5bd;
}

/* ========================================
   Base Styles
   ======================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--tecp-bg-gradient);
  color: var(--tecp-text-primary);
  min-height: 100vh;
}

/* ========================================
   TECP Dashboard Layout
   ======================================== */
.tecp-dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tecp-main-content {
  flex: 1;
  padding: var(--tecp-spacing-lg);
}

/* ========================================
   TECP Cards
   ======================================== */
.tecp-card {
  background-color: var(--tecp-bg-card);
  border: none;
  border-radius: var(--tecp-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all var(--tecp-transition-base);
  margin-bottom: var(--tecp-spacing-lg);
  position: relative;
  overflow: hidden;
}

.tecp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tecp-primary-gradient);
  opacity: 0;
  transition: opacity var(--tecp-transition-base);
}

.tecp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.tecp-card:hover::before {
  opacity: 1;
}

.tecp-card-header {
  background: var(--tecp-primary-gradient);
  color: white;
  padding: var(--tecp-spacing-md) var(--tecp-spacing-lg);
  font-weight: 600;
  position: relative;
}

.tecp-card-body {
  padding: var(--tecp-spacing-lg);
}

/* Stat Cards */
.tecp-stat-card {
  text-align: center;
  padding: var(--tecp-spacing-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--tecp-bg-card);
  border-radius: var(--tecp-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all var(--tecp-transition-base);
  min-width: 140px;
}

/* Reduce padding when in 4-column layout */
.col-md-3 .tecp-stat-card {
  padding: var(--tecp-spacing-md);
}

.col-md-3 .tecp-stat-card .stat-value {
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
}

.tecp-stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.tecp-stat-card .stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--tecp-spacing-md);
  background: var(--tecp-primary-gradient);
  border-radius: var(--tecp-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

.tecp-stat-card .stat-value {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  background: var(--tecp-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: var(--tecp-spacing-sm) 0;
  white-space: nowrap;
  overflow: visible;
  word-break: keep-all;
}

.tecp-stat-card .stat-label {
  color: var(--tecp-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tecp-stat-card .stat-trend {
  display: inline-flex;
  align-items: center;
  gap: var(--tecp-spacing-xs);
  margin-top: var(--tecp-spacing-sm);
  padding: var(--tecp-spacing-xs) var(--tecp-spacing-sm);
  border-radius: var(--tecp-radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
}

.tecp-stat-card .stat-trend.trend-up {
  background: rgba(0, 214, 143, 0.1);
  color: var(--tecp-success);
}

.tecp-stat-card .stat-trend.trend-down {
  background: rgba(255, 56, 56, 0.1);
  color: var(--tecp-danger);
}

/* ========================================
   TECP Navigation
   ======================================== */
.tecp-navbar {
  background-color: var(--tecp-primary) !important;
  box-shadow: var(--tecp-shadow-sm);
  padding: var(--tecp-spacing-sm) 0;
}

.tecp-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: white !important;
}

.tecp-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  padding: var(--tecp-spacing-sm) var(--tecp-spacing-md);
  transition: all var(--tecp-transition-fast);
  border-radius: var(--tecp-radius-sm);
}

.tecp-navbar .nav-link:hover {
  color: white !important;
  background-color: rgba(255,255,255,0.1);
}

.tecp-navbar .nav-link.active {
  color: white !important;
  background-color: rgba(255,255,255,0.2);
}

/* Alert Badge */
.tecp-alert-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  font-size: 0.75rem;
  background-color: var(--tecp-danger);
  color: white;
  padding: 0 6px;
}

/* ========================================
   TECP Tables
   ======================================== */
.tecp-table {
  background-color: var(--tecp-bg-card);
  border-radius: var(--tecp-radius-md);
  overflow: hidden;
  box-shadow: var(--tecp-shadow-sm);
}

.tecp-table thead {
  background-color: var(--tecp-bg-hover);
}

.tecp-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--tecp-text-secondary);
  padding: var(--tecp-spacing-md);
  border-bottom: 2px solid var(--tecp-primary);
}

.tecp-table td {
  padding: var(--tecp-spacing-md);
  vertical-align: middle;
}

.tecp-table tbody tr {
  transition: background-color var(--tecp-transition-fast);
}

.tecp-table tbody tr:hover {
  background-color: var(--tecp-bg-hover);
}

/* Exchange Row Styles */
.tecp-exchange-row {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tecp-exchange-row:last-child {
  border-bottom: none;
}

.tecp-exchange-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: var(--tecp-spacing-sm);
}

.tecp-exchange-name {
  font-weight: 600;
  color: var(--tecp-text-primary);
}

.tecp-exchange-disabled {
  opacity: 0.6;
}

.tecp-exchange-disabled .tecp-exchange-name {
  text-decoration: line-through;
}

/* ========================================
   TECP Buttons
   ======================================== */
.tecp-btn {
  padding: var(--tecp-spacing-sm) var(--tecp-spacing-lg);
  font-weight: 600;
  border-radius: var(--tecp-radius-xl);
  transition: all var(--tecp-transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--tecp-spacing-xs);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tecp-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.tecp-btn:hover::before {
  width: 300px;
  height: 300px;
}

.tecp-btn-primary {
  background: var(--tecp-primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.tecp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.tecp-btn-secondary {
  background: var(--tecp-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.tecp-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.tecp-btn-success {
  background: linear-gradient(135deg, var(--tecp-success) 0%, #00b074 100%);
  color: white;
}

.tecp-btn-accent {
  background: linear-gradient(135deg, var(--tecp-accent) 0%, var(--tecp-accent-pink) 100%);
  color: white;
}

.tecp-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tecp-radius-sm);
}

/* ========================================
   TECP Forms
   ======================================== */
.tecp-form-control {
  border-radius: var(--tecp-radius-sm);
  border-color: #dee2e6;
  padding: var(--tecp-spacing-sm) var(--tecp-spacing-md);
  transition: border-color var(--tecp-transition-fast);
}

.tecp-form-control:focus {
  border-color: var(--tecp-primary);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.tecp-form-label {
  font-weight: 600;
  color: var(--tecp-text-primary);
  margin-bottom: var(--tecp-spacing-xs);
}

/* ========================================
   TECP Badges
   ======================================== */
.tecp-badge {
  padding: var(--tecp-spacing-xs) var(--tecp-spacing-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--tecp-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tecp-badge-success {
  background-color: var(--tecp-success);
  color: white;
}

.tecp-badge-warning {
  background-color: var(--tecp-warning);
  color: #212529;
}

.tecp-badge-danger {
  background-color: var(--tecp-danger);
  color: white;
}

/* ========================================
   TECP Alerts
   ======================================== */
.tecp-alert {
  padding: var(--tecp-spacing-md) var(--tecp-spacing-lg);
  border-radius: var(--tecp-radius-md);
  border-left: 4px solid;
  box-shadow: var(--tecp-shadow-sm);
}

.tecp-alert-info {
  background-color: #cfe2ff;
  border-color: var(--tecp-info);
  color: #084298;
}

.tecp-alert-success {
  background-color: #d1e7dd;
  border-color: var(--tecp-success);
  color: #0f5132;
}

.tecp-alert-warning {
  background-color: #fff3cd;
  border-color: var(--tecp-warning);
  color: #664d03;
}

.tecp-alert-danger {
  background-color: #f8d7da;
  border-color: var(--tecp-danger);
  color: #842029;
}

/* ========================================
   TECP Loading States
   ======================================== */
.tecp-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-left-color: var(--tecp-primary);
  border-radius: 50%;
  animation: tecp-spin 0.8s linear infinite;
}

@keyframes tecp-spin {
  to { transform: rotate(360deg); }
}

.tecp-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: tecp-loading 1.5s infinite;
}

@keyframes tecp-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   TECP Progress Bars
   ======================================== */
.tecp-progress {
  height: 8px;
  background-color: #e9ecef;
  border-radius: var(--tecp-radius-lg);
  overflow: hidden;
}

.tecp-progress-bar {
  background-color: var(--tecp-primary);
  height: 100%;
  transition: width var(--tecp-transition-base);
  position: relative;
  overflow: hidden;
}

.tecp-progress-bar.animated {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,.15) 50%,
    rgba(255,255,255,.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: tecp-progress-animation 1s linear infinite;
}

@keyframes tecp-progress-animation {
  0% { background-position: 0 0; }
  100% { background-position: 1rem 1rem; }
}

/* ========================================
   TECP Tooltips
   ======================================== */
.tecp-tooltip {
  font-size: 0.875rem;
  padding: var(--tecp-spacing-xs) var(--tecp-spacing-sm);
  background-color: var(--tecp-dark);
  color: white;
  border-radius: var(--tecp-radius-sm);
}

/* ========================================
   TECP Utility Classes
   ======================================== */
.tecp-text-primary { color: var(--tecp-primary) !important; }
.tecp-text-secondary { color: var(--tecp-text-secondary) !important; }
.tecp-text-muted { color: var(--tecp-text-muted) !important; }

.tecp-bg-primary { background-color: var(--tecp-primary) !important; }
.tecp-bg-light { background-color: var(--tecp-bg-light) !important; }
.tecp-bg-card { background-color: var(--tecp-bg-card) !important; }

.tecp-rounded-sm { border-radius: var(--tecp-radius-sm) !important; }
.tecp-rounded-md { border-radius: var(--tecp-radius-md) !important; }
.tecp-rounded-lg { border-radius: var(--tecp-radius-lg) !important; }

.tecp-shadow-sm { box-shadow: var(--tecp-shadow-sm) !important; }
.tecp-shadow-md { box-shadow: var(--tecp-shadow-md) !important; }
.tecp-shadow-lg { box-shadow: var(--tecp-shadow-lg) !important; }

/* Spacing utilities */
.tecp-mt-1 { margin-top: var(--tecp-spacing-sm) !important; }
.tecp-mt-2 { margin-top: var(--tecp-spacing-md) !important; }
.tecp-mt-3 { margin-top: var(--tecp-spacing-lg) !important; }

.tecp-mb-1 { margin-bottom: var(--tecp-spacing-sm) !important; }
.tecp-mb-2 { margin-bottom: var(--tecp-spacing-md) !important; }
.tecp-mb-3 { margin-bottom: var(--tecp-spacing-lg) !important; }

/* ========================================
   TECP Animations
   ======================================== */
.tecp-fade-in {
  animation: tecpFadeIn var(--tecp-transition-base);
}

@keyframes tecpFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tecp-slide-in {
  animation: tecpSlideIn var(--tecp-transition-base);
}

@keyframes tecpSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.tecp-zoom-in {
  animation: tecpZoomIn var(--tecp-transition-base);
}

@keyframes tecpZoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.tecp-float {
  animation: tecpFloat 3s ease-in-out infinite;
}

@keyframes tecpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.tecp-shake {
  animation: tecpShake 0.5s ease-in-out;
}

@keyframes tecpShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Hover Effects */
.tecp-hover-grow {
  transition: transform var(--tecp-transition-fast);
}

.tecp-hover-grow:hover {
  transform: scale(1.05);
}

.tecp-hover-lift {
  transition: all var(--tecp-transition-fast);
}

.tecp-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Loading Animations */
.tecp-pulse-bg {
  animation: tecpPulseBg 2s ease-in-out infinite;
}

@keyframes tecpPulseBg {
  0%, 100% { background-color: var(--tecp-bg-card); }
  50% { background-color: var(--tecp-bg-hover); }
}

/* Interactive Elements */
.tecp-interactive {
  position: relative;
  overflow: hidden;
}

.tecp-interactive::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.tecp-interactive:active::after {
  width: 300px;
  height: 300px;
}

/* Smooth Scroll */
.tecp-smooth-scroll {
  scroll-behavior: smooth;
}

/* Particle Effect Background */
.tecp-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.tecp-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--tecp-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: tecpParticleFloat 20s infinite linear;
}

@keyframes tecpParticleFloat {
  from {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  to {
    transform: translateY(-10vh) translateX(100px);
    opacity: 0;
  }
}

/**
 * TECP Responsive Styles
 * 
 * Mobile-first responsive design for TECP Bootstrap 5 theme
 */

/* ========================================
   Mobile Devices (max-width: 576px)
   ======================================== */
@media (max-width: 575.98px) {
  /* Layout adjustments */
  .tecp-main-content {
    padding: var(--tecp-spacing-md);
  }
  
  /* Navigation */
  .tecp-navbar .navbar-brand {
    font-size: 1rem;
  }
  
  /* Cards */
  .tecp-card {
    margin-bottom: var(--tecp-spacing-md);
  }
  
  .tecp-card-header {
    padding: var(--tecp-spacing-sm) var(--tecp-spacing-md);
    font-size: 1rem;
  }
  
  .tecp-card-body {
    padding: var(--tecp-spacing-md);
  }
  
  /* Stat Cards */
  .tecp-stat-card {
    padding: var(--tecp-spacing-lg);
    min-width: 120px;
  }
  
  .tecp-stat-card .stat-value {
    /* Already using clamp() in main styles */
  }
  
  /* Tables - Convert to cards on mobile */
  .tecp-table-responsive {
    border: 0;
  }
  
  .tecp-table-responsive table,
  .tecp-table-responsive thead,
  .tecp-table-responsive tbody,
  .tecp-table-responsive th,
  .tecp-table-responsive td,
  .tecp-table-responsive tr {
    display: block;
  }
  
  .tecp-table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .tecp-table-responsive tr {
    border: 1px solid #dee2e6;
    margin-bottom: var(--tecp-spacing-md);
    border-radius: var(--tecp-radius-md);
    background-color: var(--tecp-bg-card);
    box-shadow: var(--tecp-shadow-sm);
  }
  
  .tecp-table-responsive td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  
  .tecp-table-responsive td:before {
    content: attr(data-label);
    position: absolute;
    left: var(--tecp-spacing-md);
    width: 45%;
    text-align: left;
    font-weight: 600;
    color: var(--tecp-text-secondary);
  }
  
  /* Exchange specific mobile styles */
  .tecp-exchange-mobile {
    padding: var(--tecp-spacing-md);
  }
  
  .tecp-exchange-mobile-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--tecp-spacing-sm);
  }
  
  .tecp-exchange-mobile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tecp-spacing-sm);
    margin-bottom: var(--tecp-spacing-sm);
  }
  
  .tecp-exchange-mobile-actions {
    display: flex;
    gap: var(--tecp-spacing-xs);
    flex-wrap: wrap;
  }
  
  /* Buttons */
  .btn-group-vertical {
    width: 100%;
  }
  
  .tecp-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--tecp-spacing-xs);
  }
  
  /* Forms */
  .tecp-form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Modals */
  .modal-dialog {
    margin: var(--tecp-spacing-sm);
  }
  
  .modal-content {
    border-radius: var(--tecp-radius-md);
  }
  
  /* Hide desktop-only elements */
  .tecp-desktop-only {
    display: none !important;
  }
}

/* ========================================
   Tablets (576px - 768px)
   ======================================== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Stat Cards - 2 columns */
  .tecp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tecp-spacing-md);
  }
  
  /* Tables - Still use card layout */
  .tecp-table-responsive {
    font-size: 0.875rem;
  }
  
  /* Exchange rows */
  .tecp-exchange-row td {
    padding: var(--tecp-spacing-sm);
  }
}

/* ========================================
   Small Laptops (768px - 992px)
   ======================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Sidebar adjustments */
  .tecp-sidebar {
    width: 220px;
  }
  
  /* Stat Cards - 3 columns */
  .tecp-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tecp-spacing-md);
  }
  
  /* Tables - Normal view with smaller padding */
  .tecp-table th,
  .tecp-table td {
    padding: var(--tecp-spacing-sm);
    font-size: 0.875rem;
  }
}

/* ========================================
   Desktops (992px - 1200px)
   ======================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container width adjustments */
  .container-fluid {
    max-width: 960px;
  }
  
  /* Stat Cards - 4 columns */
  .tecp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tecp-spacing-md);
  }
}

/* ========================================
   Large Desktops (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  /* Container width adjustments */
  .container-fluid {
    max-width: 1140px;
  }
  
  /* Enhanced hover effects on desktop */
  .tecp-card {
    transition: all var(--tecp-transition-base);
  }
  
  .tecp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tecp-shadow-lg);
  }
  
  /* Sidebar */
  .tecp-sidebar {
    width: 280px;
  }
}

/* ========================================
   Extra Large Desktops (1400px+)
   ======================================== */
@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1320px;
  }
  
  /* More spacious layout */
  .tecp-main-content {
    padding: var(--tecp-spacing-xl);
  }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .tecp-btn,
  .btn {
    min-height: 44px;
    padding: var(--tecp-spacing-sm) var(--tecp-spacing-lg);
  }
  
  .tecp-btn-icon {
    width: 44px;
    height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .tecp-card:hover {
    transform: none;
    box-shadow: var(--tecp-shadow-sm);
  }
  
  .tecp-table tbody tr:hover {
    background-color: transparent;
  }
  
  /* Improve form inputs */
  .tecp-form-control,
  .form-control {
    min-height: 44px;
    font-size: 16px;
  }
  
  /* Better spacing for touch */
  .tecp-exchange-mobile-actions .btn {
    margin: var(--tecp-spacing-xs);
  }
}

/* ========================================
   Mobile Navigation Enhancements
   ======================================== */
@media (max-width: 991.98px) {
  /* Offcanvas customizations */
  .offcanvas-start {
    width: 300px !important;
  }
  
  .offcanvas-header {
    background-color: var(--tecp-primary);
    color: white;
    padding: 1.25rem;
  }
  
  .offcanvas-header .offcanvas-title {
    font-weight: 600;
    font-size: 1.25rem;
  }
  
  .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
  }
  
  .offcanvas-header .btn-close:hover {
    opacity: 1;
  }
  
  .offcanvas-body {
    padding: 0;
    background-color: var(--tecp-bg-light);
    height: 100%;
    overflow-y: auto;
  }
  
  /* Mobile navbar adjustments */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.125rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
  }
  
  /* Ensure smooth transitions */
  .offcanvas.offcanvas-start {
    transition: transform 0.3s ease-in-out;
  }
  
  /* Backdrop blur effect */
  .offcanvas-backdrop {
    backdrop-filter: blur(4px);
  }
  
  /* Mobile navigation list styling */
  .offcanvas-body .list-group {
    border-radius: 0;
  }
  
  .offcanvas-body .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0.875rem 1.25rem;
  }
  
  .offcanvas-body .list-group-item.bg-primary,
  .offcanvas-body .list-group-item.bg-info,
  .offcanvas-body .list-group-item.bg-secondary {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  }
  
  .offcanvas-body .list-group-item-action {
    transition: all 0.2s ease;
  }
  
  .offcanvas-body .list-group-item-action:active {
    background-color: var(--tecp-primary);
    color: white;
    transform: scale(0.98);
  }
  
  /* Improve touch targets */
  .offcanvas-body a.list-group-item {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  /* Add visual feedback for current page */
  .offcanvas-body .list-group-item-action.active,
  .offcanvas-body .list-group-item-action:focus {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-left: 3px solid var(--tecp-primary);
    padding-left: calc(1.25rem - 3px);
    font-weight: 500;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  /* Hide non-essential elements */
  .tecp-navbar,
  .tecp-sidebar,
  .tecp-footer,
  .btn,
  .tecp-btn,
  .tecp-alert,
  .badge {
    display: none !important;
  }
  
  /* Optimize for printing */
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .tecp-card {
    border: 1px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  .tecp-table {
    border: 1px solid #000;
  }
  
  .tecp-table th,
  .tecp-table td {
    border: 1px solid #000;
    padding: 5pt;
  }
  
  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ========================================
   Accessibility Improvements
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  /* Disable animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tecp-card {
    border-width: 2px;
  }
  
  .tecp-btn {
    border-width: 2px;
  }
  
  .tecp-table th {
    border-bottom-width: 3px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --tecp-bg-light: #1a1a1a;
    --tecp-bg-card: #2d2d2d;
    --tecp-text-primary: #f0f0f0;
    --tecp-text-secondary: #b0b0b0;
  }
}

/* The next 3 sections control various text styles used throughout the LFM Members Area */
.lfm_title {
	font-family: "Arial"; color:#333333; font-size:32px;
}

.lfm_descr {
	font-family: "Arial"; color:#111111; font-size:16px;
}

.lfm_descr_bold {
	font-family: "Arial"; color:#000000; font-size:16px;
	font-weight:700;
}

/* ========================================
   TECP Gamification Components
   ======================================== */

/* Leaderboard Styles */
.tecp-leaderboard {
  background: var(--tecp-bg-card);
  border-radius: var(--tecp-radius-lg);
  box-shadow: var(--tecp-shadow-md);
  overflow: hidden;
}

.tecp-leaderboard-header {
  background: var(--tecp-primary-gradient);
  color: white;
  padding: var(--tecp-spacing-lg);
  text-align: center;
}

.tecp-leaderboard-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.tecp-leaderboard-item {
  display: flex;
  align-items: center;
  padding: var(--tecp-spacing-md);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--tecp-transition-fast);
}

.tecp-leaderboard-item:hover {
  background-color: var(--tecp-bg-hover);
  transform: translateX(5px);
}

.tecp-leaderboard-rank {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: var(--tecp-spacing-md);
}

.tecp-leaderboard-rank.rank-1 {
  background: var(--tecp-gold);
  color: white;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.tecp-leaderboard-rank.rank-2 {
  background: var(--tecp-silver);
  color: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

.tecp-leaderboard-rank.rank-3 {
  background: var(--tecp-bronze);
  color: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
}

.tecp-leaderboard-user {
  display: flex;
  align-items: center;
  flex: 1;
}

.tecp-leaderboard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: var(--tecp-spacing-md);
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--tecp-primary-gradient) border-box;
}

.tecp-leaderboard-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--tecp-text-primary);
}

.tecp-leaderboard-score {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tecp-primary);
  margin-left: auto;
}

/* Achievement Badges */
.tecp-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--tecp-spacing-md);
  padding: var(--tecp-spacing-lg);
}

.tecp-achievement {
  text-align: center;
  padding: var(--tecp-spacing-md);
  background: var(--tecp-bg-card);
  border-radius: var(--tecp-radius-lg);
  box-shadow: var(--tecp-shadow-sm);
  transition: transform var(--tecp-transition-base), box-shadow var(--tecp-transition-base);
  cursor: pointer;
}

.tecp-achievement:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--tecp-shadow-lg);
}

.tecp-achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--tecp-spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 50%;
  background: var(--tecp-bg-hover);
  transition: none;
}

.tecp-achievement.unlocked .tecp-achievement-icon {
  background: var(--tecp-primary-gradient);
  color: white;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.tecp-achievement.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}

.tecp-achievement-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tecp-text-primary);
  margin-bottom: var(--tecp-spacing-xs);
}

.tecp-achievement-desc {
  font-size: 0.8rem;
  color: var(--tecp-text-secondary);
}

/* Goals & Progress */
.tecp-goal-card {
  background: var(--tecp-bg-card);
  border-radius: var(--tecp-radius-lg);
  padding: var(--tecp-spacing-lg);
  box-shadow: var(--tecp-shadow-sm);
  position: relative;
  overflow: hidden;
}

.tecp-goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--tecp-primary-gradient);
}

.tecp-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tecp-spacing-md);
}

.tecp-goal-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--tecp-text-primary);
}

.tecp-goal-reward {
  display: flex;
  align-items: center;
  gap: var(--tecp-spacing-xs);
  background: var(--tecp-accent-yellow);
  color: white;
  padding: var(--tecp-spacing-xs) var(--tecp-spacing-sm);
  border-radius: var(--tecp-radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
}

.tecp-goal-progress {
  margin-bottom: var(--tecp-spacing-sm);
}

.tecp-goal-progress-bar {
  height: 12px;
  background: var(--tecp-bg-hover);
  border-radius: var(--tecp-radius-xl);
  overflow: hidden;
  position: relative;
}

.tecp-goal-progress-fill {
  height: 100%;
  background: var(--tecp-primary-gradient);
  border-radius: var(--tecp-radius-xl);
  transition: width var(--tecp-transition-base);
  position: relative;
  overflow: hidden;
}

.tecp-goal-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 30px;
  animation: tecp-goal-progress 1s linear infinite;
}

@keyframes tecp-goal-progress {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

.tecp-goal-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--tecp-text-secondary);
}

/* XP & Level System */
.tecp-xp-bar {
  background: var(--tecp-bg-card);
  border-radius: var(--tecp-radius-lg);
  padding: var(--tecp-spacing-md);
  box-shadow: var(--tecp-shadow-sm);
  margin-bottom: var(--tecp-spacing-lg);
}

.tecp-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--tecp-spacing-sm);
}

.tecp-xp-level {
  display: flex;
  align-items: center;
  gap: var(--tecp-spacing-sm);
}

.tecp-xp-level-badge {
  width: 40px;
  height: 40px;
  background: var(--tecp-xp-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.tecp-xp-text {
  font-weight: 600;
  color: var(--tecp-text-primary);
}

.tecp-xp-progress {
  height: 20px;
  background: var(--tecp-bg-hover);
  border-radius: var(--tecp-radius-xl);
  overflow: hidden;
  position: relative;
}

.tecp-xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tecp-xp-color) 0%, var(--tecp-secondary) 100%);
  transition: width var(--tecp-transition-slow);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--tecp-spacing-sm);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Fun Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(0, 102, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.8); }
  100% { box-shadow: 0 0 5px rgba(0, 102, 255, 0.5); }
}

.tecp-animate-bounce {
  animation: bounce 2s infinite;
}

.tecp-animate-pulse {
  animation: pulse 2s infinite;
}

.tecp-animate-glow {
  animation: glow 2s infinite;
}