/* Premium Fintech Dark Green Theme */
:root {
  /* COLORS */
  --primary-bg-dark: #021f1a;
  --primary-bg-darker: #062c25;
  --bg-primary: #021f1a;
  --bg-gradient: linear-gradient(135deg, #021f1a 0%, #062c25 100%);
  --card-bg: #1b3431;
  --accent-green: #b7e36a;
  --accent-primary: #b7e36a;
  --dark-input: #1b3431;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a8c1bb;
  --text-muted: #6a8a82;
  --text-placeholder: #6a8a82;
  --success-color: #4ade80;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* TYPOGRAPHY */
  --font-h1: 2rem;
  --font-h2: 1.5rem;
  --font-h3: 1.25rem;
  --font-body: 1rem;
  --font-label: 0.875rem;
  --font-button: 1.1rem;
  
  /* SPACING */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  
  /* RADIUS */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* SHADOWS */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-button: 0 4px 15px rgba(183, 227, 106, 0.3);
  --shadow-button-hover: 0 6px 20px rgba(183, 227, 106, 0.4);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.3);
  
  /* TRANSITIONS */
  --transition: all 0.25s ease;
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.4s ease;
}

/* Updated Global Design System Variables */
:root {
  /* COLORS */
  --primary-bg: #021f1a;
  --primary-bg-darker: #062c25;
  --bg-gradient: linear-gradient(135deg, #021f1a 0%, #062c25 100%);
  --card-bg: #1b3431;
  --accent-green: #b7e36a;
  --accent-primary: #b7e36a;
  --dark-input: #1b3431;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a8c1bb;
  --text-muted: #6a8a82;
  --text-placeholder: #6a8a82;
  --success-color: #4ade80;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;

  /* TYPOGRAPHY SCALES */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 2rem; /* 32px */
  --font-size-4xl: 3rem; /* 48px */

  /* HEADINGS */
  --font-h1: var(--font-size-3xl); /* 32px */
  --font-h2: var(--font-size-2xl); /* 24px */
  --font-h3: var(--font-size-xl); /* 20px */
  --font-h4: var(--font-size-lg); /* 18px */
  --font-body: var(--font-size-base); /* 16px */
  --font-label: var(--font-size-sm); /* 14px */
  --font-button: var(--font-size-base); /* 16px */

  /* SPACING SYSTEM (8px Grid) */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2rem; /* 32px */
  --space-xl: 3rem; /* 48px */
  --space-2xl: 4rem; /* 64px */

  /* RADIUS */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */

  /* SHADOWS */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-button: 0 4px 15px rgba(183, 227, 106, 0.3);
  --shadow-button-hover: 0 6px 20px rgba(183, 227, 106, 0.4);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.3);
  --shadow-accent: 0 4px 15px rgba(183, 227, 106, 0.3);
  --shadow-accent-hover: 0 6px 20px rgba(183, 227, 106, 0.4);

  /* TRANSITIONS */
  --transition: all 0.25s ease;
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--primary-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-y: auto;
  padding: var(--space-sm);
}

/* REUSABLE UI COMPONENTS */

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.main-container {
  padding: 0;
  max-width: 100%;
}

/* Card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Card Title */
.card-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-md) 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Buttons */
.btn {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-button);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.btn-primary {
  background: var(--accent-green);
  color: var(--primary-bg);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: calc(var(--space-xs) * 0.75) var(--space-sm);
  font-size: var(--font-size-sm);
}

.btn-tertiary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Input Fields */
.input-field {
  width: 100%;
  padding: var(--space-sm);
  background: var(--dark-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-body);
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-field::placeholder {
  color: var(--text-placeholder);
}

.input-field:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(183, 227, 106, 0.3);
  outline: none;
}

.select-field {
  width: 100%;
  padding: var(--space-sm);
  background: var(--dark-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-body);
  appearance: none;
  transition: var(--transition);
}

.select-field:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(183, 227, 106, 0.3);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-label);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Navigation */
.navbar {
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  padding: calc(var(--space-xs) * 0.5) var(--space-sm);
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--accent-green);
  background: rgba(183, 227, 106, 0.1);
}

.nav-links a.active {
  color: var(--accent-green);
  background: rgba(183, 227, 106, 0.1);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.notification-icon, .logout-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.notification-icon:hover, .logout-button:hover {
  background: rgba(27, 52, 49, 0.5);
  transform: scale(1.05);
}

.logout-button {
  min-width: 92px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.logout-button:hover {
  color: var(--accent-green);
  border-color: rgba(183, 227, 106, 0.35);
}
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: var(--font-size-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-xs);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: var(--space-sm) var(--space-xs);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-container {
  overflow-x: auto;
}

/* Status Indicators */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.status-active {
  background: rgba(183, 227, 106, 0.1);
  color: var(--accent-green);
}

.status-completed {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-processing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

/* Text Colors */
.text-profit {
  color: var(--success-color);
  font-weight: 600;
}

.text-loss {
  color: var(--danger-color);
  font-weight: 600;
}

/* Page Titles */
.page-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-lg) 0;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dashboard-header {
  margin-bottom: var(--space-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-container, .container {
    padding: var(--space-md);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: var(--space-sm);
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .nav-links {
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    font-size: var(--font-size-sm);
  }
  
  .nav-icons {
    gap: var(--space-sm);
  }
  
  .dashboard-container, .container {
    padding: var(--space-md);
  }
  
  .page-title {
    font-size: var(--font-size-2xl);
  }
  
  .card-title {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .dashboard-container, .container {
    padding: var(--space-sm);
  }

  .page-title {
    font-size: var(--font-size-xl);
  }

  .card-title {
    font-size: var(--font-size-lg);
  }
}

/* Focus States */
input:focus, button:focus, .nav-links a:focus {
  outline: 2px solid rgba(183, 227, 106, 0.5);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

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

::-webkit-scrollbar-track {
  background: var(--primary-bg-darker);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #a6d25a;
}

/* Existing styles for signup page */
.split-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

.left-side {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-bg-dark) 0%, var(--primary-bg-darker) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow-y: auto;
}

.form-wrapper {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
}

.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.5px;
}

.form-content {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.main-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.signup-form {
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 1.25rem;
  position: relative;
}

input {
  width: 100%;
  padding: 1rem 1rem;
  background: var(--dark-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

input::placeholder {
  color: var(--text-placeholder);
}

input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(183, 227, 106, 0.3);
  outline: none;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  outline: none;
}

.password-toggle:focus {
  outline: 2px solid rgba(183, 227, 106, 0.3);
  border-radius: 4px;
}

.password-requirements {
  background: var(--dark-input);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  margin-top: 0.5rem;
}

.password-requirements ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two-column layout on desktop */
  gap: 0.5rem;
}

.requirement {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.requirement:last-child {
  margin-bottom: 0;
}

.checkmark {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 100, 100, 0.2);
  margin-right: 0.5rem;
  text-align: center;
  line-height: 16px;
  font-size: 0.7rem;
}

.requirement.valid .checkmark {
  background: rgba(183, 227, 106, 0.2);
  color: var(--accent-green);
}

.requirement.valid {
  color: var(--accent-green);
}

.cta-button {
  width: 100%;
  padding: 1rem;
  background: var(--accent-green);
  color: var(--primary-bg-dark);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(183, 227, 106, 0.3);
  margin-bottom: 1.5rem;
}

.cta-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 227, 106, 0.4);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.divider span {
  padding: 0 1rem;
}

.google-button {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.google-button:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.google-button svg {
  margin-right: 0.5rem;
}

.signin-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.signin-link a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
}

.signin-link a:hover {
  text-decoration: underline;
}

.terms {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.terms a {
  color: var(--accent-green);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

/* Right Side - Visual Content */
.right-side {
  flex: 1;
  background: linear-gradient(135deg, #1a4a3d 0%, #2a6b57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.visual-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.chart-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 60%;
  width: 100%;
  gap: 8px;
  padding: 2rem;
  position: relative;
}

.chart-line {
  width: 8px;
  height: 40%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.chart-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(183, 227, 106, 0.3), transparent);
  border-radius: 4px;
}

.chart-line.short { height: 25%; }
.chart-line.tall { height: 70%; }
.chart-line.medium { height: 50%; }

.chart-line:hover {
  background: rgba(183, 227, 106, 0.3);
}

.trading-data {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 300px;
  margin-top: 2rem;
}

.data-point {
  text-align: center;
}

.value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.25rem;
}

.label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
  }
  
  .left-side, .right-side {
    flex: none;
    height: 50vh;
  }
  
  .right-side {
    height: 50vh;
  }
  
  .chart-placeholder {
    height: 70%;
  }
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
    height: auto;
  }
  
  .left-side, .right-side {
    height: auto;
    min-height: 100vh;
  }
  
  .form-wrapper {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .password-requirements ul {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  .main-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .left-side {
    padding: 1rem;
  }
  
  .form-wrapper {
    padding: 1rem;
  }
  
  .main-heading {
    font-size: 1.5rem;
  }
  
  .right-side {
    display: none; /* Hide visual content on very small screens */
  }
}

/* Focus states for accessibility */
input:focus,
button:focus {
  outline: 2px solid rgba(183, 227, 106, 0.5);
  outline-offset: 2px;
}