/* SUPREMO TRADERS AI - Main Stylesheet */

/* Dark Theme (Default) */
:root, [data-theme="dark"] {
  --primary-blue: #007bff;
  --secondary-blue: #0056b3;
  --light-blue: #66d9ef;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --dark-gray: #6c757d;
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-yellow: #ffc107;
  --info-cyan: #17a2b8;
  --dark: #343a40;
  
  /* Theme-specific colors */
  --bg-primary: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #243447 50%, #0f1419 100%);
  --bg-card: rgba(26, 35, 50, 0.6);
  --bg-card-hover: rgba(36, 52, 71, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #e9ecef;
  --text-muted: #adb5bd;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Light Theme */
[data-theme="light"] {
  --primary-blue: #007bff;
  --secondary-blue: #0056b3;
  --light-blue: #0088cc;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --dark-gray: #6c757d;
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-yellow: #ffc107;
  --info-cyan: #17a2b8;
  --dark: #343a40;
  
  /* Theme-specific colors */
  --bg-primary: linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 25%, #d4dfe8 50%, #f0f4f8 100%);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Navigation Improvements */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  justify-content: center;
}

.navbar .container-fluid {
  justify-content: center;
  position: relative;
}

.navbar .navbar-nav {
  position: absolute;
  right: 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  margin: 0.125rem;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.15);
  outline: 2px solid rgba(255, 193, 7, 0.5);
  outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  border: none;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
  transform: rotate(20deg);
}

/* Mobile navigation */
.navbar-collapse {
  margin-top: 0.5rem;
}

.navbar-nav {
  gap: 0.25rem;
}

/* Main Content Area */
.main-content {
  margin-top: 76px; /* Account for fixed navbar */
  min-height: calc(100vh - 76px);
  padding-bottom: 2rem;
  background: transparent;
}

/* Control Panel */
.control-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

.control-header h3 {
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-primary);
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 15px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 120px;
  gap: 0.75rem;
}

.control-btn:hover {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2));
  border-color: rgba(0, 123, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  color: var(--text-primary);
}

.control-btn.admin {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 134, 55, 0.1));
  border-color: rgba(40, 167, 69, 0.3);
}

.control-btn.admin:hover {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(32, 134, 55, 0.2));
  border-color: rgba(40, 167, 69, 0.6);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.control-btn.logout {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(90, 98, 104, 0.1));
  border-color: rgba(108, 117, 125, 0.3);
}

.control-btn.logout:hover {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.2), rgba(90, 98, 104, 0.2));
  border-color: rgba(108, 117, 125, 0.6);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.control-btn i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.control-btn span {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* Trading Dashboard Styles */
.main-trading-dashboard {
  padding: 2rem 0;
}

/* Trading Header */
.trading-header {
  background: linear-gradient(135deg, #1a2332 0%, #243447 50%, #2d4259 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.trading-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffc107" fill-opacity="0.05" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  pointer-events: none;
}

.hero-section {
  position: relative;
  z-index: 2;
}

.trading-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.market-status {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Remove old dashboard header styles - replaced with trading-header */

/* Remove old dashboard stats - replaced with trading-stats */

.stat-item {
  display: inline-block;
  margin: 0 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
  color: var(--white);
}

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

/* Trading App Cards */
.trading-apps-section .section-header h2 {
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trading-app-card {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(36, 52, 71, 0.8));
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trading-app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffc107, #007bff, #28a745, #dc3545);
  opacity: 0.8;
}

.trading-app-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3), 0 0 20px rgba(255, 193, 7, 0.2);
}

.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffc107, #007bff, #ffc107);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.trading-app-card:hover .card-glow {
  opacity: 0.3;
}

.app-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.trading-app-card:hover .app-icon-wrapper {
  transform: rotate(10deg) scale(1.1);
}

.app-icon {
  font-size: 2rem;
  color: #1a2332;
}

.app-content {
  flex-grow: 1;
}

.app-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.app-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.app-features {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-badge {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.app-action {
  margin-top: auto;
}

.btn-launch {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-launch::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-launch:hover::before {
  left: 100%;
}

.btn-launch:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  color: white;
  text-decoration: none;
}

/* Coming Soon Banner */
.coming-soon-banner {
  background: linear-gradient(135deg, var(--warning-yellow), #ff8f00);
  color: var(--dark);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Auth Cards */
.auth-card {
  border: none;
  border-radius: 1rem;
  margin-top: 3rem;
}

.auth-card .card-body {
  background: linear-gradient(145deg, var(--white), var(--off-white));
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border: none;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-blue), #003d82);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Tables */
.table {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f1b0b7);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, var(--off-white), var(--light-gray));
  border-bottom: 1px solid var(--light-gray);
  font-weight: 600;
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* Progress Bars */
.progress {
  height: 0.75rem;
  border-radius: 1rem;
  background-color: var(--light-gray);
  overflow: hidden;
}

.progress-bar {
  border-radius: 1rem;
  transition: width 0.6s ease;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Forms */
.form-control {
  border: 2px solid var(--light-gray);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Touch-friendly form inputs */
@media (hover: none) and (pointer: coarse) {
  .form-control {
    min-height: 50px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  select.form-control {
    font-size: 16px;
  }
  
  .form-control.mobile-focused {
    border-color: var(--warning-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  }
}

/* Additional tablet-specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .trading-apps-section .row {
    --bs-gutter-x: 2rem;
  }
  
  .col-xl-4 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .trading-stats {
    justify-content: flex-end;
    gap: 1.5rem;
  }
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark), #2c3e50);
  color: var(--white);
  margin-top: auto;
}

/* ===== RESPONSIVE DESIGN SYSTEM ===== */

/* Mobile First - Base styles for mobile devices */
.container-fluid {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Touch-friendly buttons for mobile */
.btn {
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
}

/* Mobile navigation improvements */
.navbar-toggler {
  border: none;
  padding: 0.375rem 0.75rem;
  font-size: 1.25rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* Trading header responsive */
.trading-header {
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: 1.75rem;
}

.hero-section p {
  font-size: 1rem;
}

/* Trading stats responsive */
.trading-stats {
  align-items: center;
  margin-top: 1.5rem;
}

.stat-card {
  padding: 1rem;
  width: 100%;
  max-width: 280px;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
}

.stat-number {
  font-size: 1.5rem;
}

/* App cards mobile optimization */
.trading-app-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.app-icon-wrapper {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.app-icon {
  font-size: 1.5rem;
}

.app-title {
  font-size: 1.1rem;
}

.app-description {
  font-size: 0.9rem;
}

.feature-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}

/* Control panel mobile */
.control-panel {
  padding: 1.5rem;
}

.control-btn {
  padding: 1rem;
  min-height: 100px;
  font-size: 0.9rem;
}

.control-btn i {
  font-size: 1.25rem;
}

/* Form elements touch optimization */
.form-control {
  padding: 0.75rem;
  font-size: 1rem;
  min-height: 44px;
}

/* Auth card mobile */
.auth-card {
  margin-top: 1rem;
}

.auth-card .card-body {
  padding: 2rem 1.5rem;
}

/* ===== SMALL MOBILE (320px - 479px) ===== */
@media (max-width: 479px) {
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .trading-header {
    padding: 1.5rem 0.75rem;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  .stat-card {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    margin-bottom: 0.5rem;
  }
  
  .trading-app-card {
    padding: 1rem;
  }
  
  .app-icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
  }
  
  .app-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .app-description {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .app-features {
    justify-content: center;
  }
  
  .control-btn {
    padding: 0.75rem;
    min-height: 80px;
  }
  
  .control-btn i {
    font-size: 1.1rem;
  }
  
  .control-btn span {
    font-size: 0.8rem;
  }
}

/* ===== MOBILE LANDSCAPE & SMALL TABLETS (480px - 767px) ===== */
@media (min-width: 480px) and (max-width: 767px) {
  .trading-header {
    padding: 2rem 1.25rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .trading-stats {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-card {
    width: auto;
    flex: 1;
    max-width: none;
  }
  
  .trading-apps-section .row {
    row-gap: 1.5rem;
  }
  
  .control-panel .row {
    justify-content: center;
  }
}

/* ===== TABLETS (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .trading-header {
    padding: 2.5rem 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .trading-stats {
    align-items: flex-end;
    margin-top: 0;
  }
  
  .stat-card {
    margin-bottom: 0;
  }
  
  .trading-app-card {
    padding: 1.75rem;
  }
  
  .app-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  
  .app-icon {
    font-size: 1.75rem;
  }
  
  .app-title {
    font-size: 1.2rem;
  }
  
  .control-btn {
    min-height: 110px;
    padding: 1.25rem;
  }
}

/* ===== DESKTOP (1024px - 1199px) ===== */
@media (min-width: 1024px) and (max-width: 1199px) {
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .main-trading-dashboard {
    padding: 2rem 1rem;
  }
  
  .trading-header {
    padding: 3rem 2.5rem;
  }
  
  .trading-apps-section .row {
    justify-content: center;
  }
  
  .trading-app-card {
    max-width: 350px;
  }
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .main-trading-dashboard {
    padding: 2.5rem 1rem;
  }
  
  .trading-header {
    padding: 3.5rem 3rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section p {
    font-size: 1.25rem;
  }
  
  .trading-app-card {
    max-width: 380px;
  }
}

/* ===== ORIENTATION SPECIFIC STYLES ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .trading-header {
    padding: 1.5rem 2rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .trading-stats {
    margin-top: 0.5rem;
  }
}

/* ===== LOGIN PAGE STYLES ===== */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="trading-bg" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M20,20 L80,60 L40,80 L70,90" stroke="%23007bff" stroke-width="1" opacity="0.1" fill="none"/><circle cx="30" cy="30" r="2" fill="%2328a745" opacity="0.2"/><circle cx="70" cy="70" r="2" fill="%23dc3545" opacity="0.2"/><path d="M10,50 Q50,30 90,50" stroke="%23ffc107" stroke-width="0.5" opacity="0.15" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23trading-bg)"/></svg>');
  z-index: -1;
}

.login-supremo-logo {
  max-height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.login-supremo-logo:hover {
  transform: scale(1.05);
}

.login-logo-container {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(40, 167, 69, 0.1));
  border-radius: 15px;
  border: 2px solid rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-logo-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(40, 167, 69, 0.05) 50%, transparent 70%);
  z-index: -1;
  animation: aiBackgroundPulse 4s ease-in-out infinite;
}

@keyframes aiBackgroundPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Stock Market Background for Login */
body.login-page {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.login-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 135, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 135, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.1) 0%, transparent 30%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 1000"><defs><pattern id="chart-pattern" x="0" y="0" width="200" height="100" patternUnits="userSpaceOnUse"><path d="M0,50 Q50,20 100,50 T200,50" stroke="%2300d4ff" stroke-width="1" opacity="0.3" fill="none"/><path d="M20,80 L40,30 L60,60 L80,20 L100,50 L120,10 L140,40 L160,70 L180,30" stroke="%23ffd700" stroke-width="1.5" opacity="0.2" fill="none"/><circle cx="50" cy="30" r="2" fill="%2328a745" opacity="0.4"><animate attributeName="r" values="2;4;2" dur="2s" repeatCount="indefinite"/></circle><circle cx="150" cy="70" r="2" fill="%23dc3545" opacity="0.4"><animate attributeName="r" values="2;4;2" dur="3s" repeatCount="indefinite"/></circle><text x="10" y="95" fill="%23ffffff" opacity="0.1" font-size="8" font-family="monospace">BTC ETH SOL</text></pattern></defs><rect width="100%" height="100%" fill="url(%23chart-pattern)"/></svg>');
  z-index: -1;
  animation: marketDataFlow 20s linear infinite;
}

@keyframes marketDataFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

/* ===== JARVIS AI LOGO STYLES ===== */
.ai-logo-jarvis {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jarvis-core {
  width: 32px;
  height: 32px;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(45deg, #00d4ff, #0080ff, #4da6ff);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: jarvisGlow 2s ease-in-out infinite alternate;
}

.jarvis-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  opacity: 0.7;
  animation: jarvisRotate 4s linear infinite;
}

.jarvis-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #ffffff, #00d4ff);
  border-radius: 50%;
  animation: jarvisPulse 1.5s ease-in-out infinite;
}

.jarvis-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  opacity: 0;
  animation: jarvisRipple 3s linear infinite;
}

@keyframes jarvisGlow {
  0% {
    box-shadow: 
      0 0 20px rgba(0, 212, 255, 0.6),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(0, 212, 255, 0.9),
      inset 0 0 30px rgba(255, 255, 255, 0.4);
  }
}

@keyframes jarvisRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes jarvisPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes jarvisRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* ===== SUPREMO LOGO POSITIONING ===== */
.supremo-logo-top-left img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.supremo-logo-top-left img:hover {
  transform: scale(1.1);
}

/* Main Content Spacing */
.main-content {
  margin-top: 76px;
  min-height: calc(100vh - 76px);
}


/* ===== DISCLAIMER FOOTER STYLES ===== */
.disclaimer-footer {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 2rem 0 0 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.disclaimer-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.3;
}

.disclaimer-container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.disclaimer-header {
  text-align: center;
  margin-bottom: 2rem;
}

.disclaimer-icon {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.disclaimer-title {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.disclaimer-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.disclaimer-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.disclaimer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.disclaimer-card:hover::before {
  left: 100%;
}

.disclaimer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

.disclaimer-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.disclaimer-card h6 {
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.disclaimer-card p {
  color: #e8e8e8;
  margin-bottom: 0;
  line-height: 1.4;
  font-size: 0.85rem;
}

.disclaimer-footer-text {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 2rem;
}

.disclaimer-footer-text p {
  color: #ffffff;
  margin-bottom: 0;
  font-weight: 500;
}

/* ===== RESPONSIVE DISCLAIMER ===== */
@media (max-width: 768px) {
  .disclaimer-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .disclaimer-card {
    padding: 0.8rem;
  }
  
  .disclaimer-container {
    padding: 1rem;
    margin: 1rem 0.5rem;
  }
  
  .disclaimer-card .card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
  
  .disclaimer-card h6 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  
  .disclaimer-card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .supremo-bottom-logo {
    max-width: 200px;
  }
  
  .ai-logo-jarvis {
    width: 32px;
    height: 32px;
  }
  
  .jarvis-core {
    width: 24px;
    height: 24px;
  }
  
  .main-content {
    margin-top: 66px;
  }
}

@media (max-width: 480px) {
  .disclaimer-content-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .disclaimer-card {
    padding: 0.6rem;
  }
  
  .disclaimer-container {
    padding: 0.8rem;
    margin: 0.5rem;
  }
}

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .jarvis-core {
    animation: none;
  }
  
  .jarvis-ring {
    animation: none;
  }
  
  .jarvis-inner {
    animation: none;
  }
  
  .jarvis-pulse {
    animation: none;
  }
  
  .disclaimer-icon {
    animation: none;
  }
  
  .disclaimer-card::before {
    transition: none;
  }
  
  .disclaimer-card:hover::before {
    left: -100%;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .trading-app-card {
    backdrop-filter: blur(15px);
  }
  
  .stat-card {
    backdrop-filter: blur(15px);
  }
  
  .jarvis-core {
    box-shadow: 
      0 0 25px rgba(0, 212, 255, 0.8),
      inset 0 0 25px rgba(255, 255, 255, 0.3);
  }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .trading-app-card:hover {
    transform: none;
  }
  
  .btn-launch:hover {
    transform: none;
  }
  
  .control-btn:hover {
    transform: none;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .trading-app-card:hover {
    transform: none;
    border-color: rgba(255, 193, 7, 0.6);
  }
  
  .btn-launch:hover {
    transform: none;
  }
  
  .control-btn:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2));
  }
  
  /* Touch feedback */
  .trading-app-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .control-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Loading States */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid var(--light-gray);
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Stock Market Theme Elements */
.market-up {
  color: var(--success-green);
}

.market-down {
  color: var(--danger-red);
}

.market-neutral {
  color: var(--dark-gray);
}

/* Trading Card Specific Styles */
.trading-card {
  background: linear-gradient(145deg, var(--white), var(--off-white));
  border-left: 4px solid var(--primary-blue);
}

.trading-card:hover {
  border-left-color: var(--success-green);
}

/* Icon Enhancements */
.fa {
  transition: all 0.3s ease;
}

.card:hover .fa {
  transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}

/* Text Utilities */
.text-primary {
  color: var(--primary-blue) !important;
}

.text-success {
  color: var(--success-green) !important;
}

.text-danger {
  color: var(--danger-red) !important;
}

.text-warning {
  color: var(--warning-yellow) !important;
}

.text-info {
  color: var(--info-cyan) !important;
}

/* Background Utilities */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)) !important;
}

/* Shadow Utilities */
.shadow-primary {
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.shadow-success {
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

/* Special Effects */
.glow {
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* Chart and Visualization Placeholder Styles */
.chart-placeholder {
  background: linear-gradient(45deg, var(--light-gray) 25%, transparent 25%),
              linear-gradient(-45deg, var(--light-gray) 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, var(--light-gray) 75%),
              linear-gradient(-45deg, transparent 75%, var(--light-gray) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border: 2px dashed var(--primary-blue);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--dark-gray);
}

/* Professional Trading Interface Elements */
.trading-interface {
  background: var(--dark);
  color: var(--white);
  font-family: 'Courier New', monospace;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-blue);
}

.price-ticker {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem;
  border-radius: 0.25rem;
  font-weight: bold;
  font-size: 0.875rem;
}

.price-up {
  background-color: var(--success-green);
  color: var(--white);
}

.price-down {
  background-color: var(--danger-red);
  color: var(--white);
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Indicators */
.btn:focus,
.form-control:focus,
.list-group-item-action:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .sidebar,
  footer,
  .btn {
    display: none !important;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--dark);
  }
}
