/* Import modern fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #6366f1;
  --primary-hover: #5855eb;
  --success-color: #10b981;
  --success-light: #d1fae5;
  --danger-color: #ef4444;
  --danger-light: #fee2e2;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #0f172a;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-tertiary: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--background-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text-primary);
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}

/* Navigation */
.navbar {
  background: var(--background-primary) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(99, 102, 241, 0.1);
}

/* Portfolio Performance Header */
.portfolio-performance-header {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.performance-title h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.performance-metrics {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.metric-item {
  text-align: right;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.metric-value.current-value {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.metric-value.positive {
  color: var(--success-color);
}

.metric-value.negative {
  color: var(--danger-color);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-btn.primary {
  background: var(--primary-color);
  color: white;
}

.action-btn.primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.action-btn.secondary {
  background: var(--background-primary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.action-btn.secondary:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

/* Holdings Container */
.holdings-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.holdings-section {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--background-tertiary);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.section-title h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.asset-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--background-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.add-btn:hover {
  background: var(--primary-hover);
  color: white;
  transform: scale(1.05);
}

/* Holdings Table */
.holdings-table {
  display: flex;
  flex-direction: column;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr 1.5fr 1.5fr 0.8fr;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--background-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr 1.5fr 1.5fr 0.8fr;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: background-color 0.2s ease;
}

.table-row:hover {
  background: var(--background-tertiary);
}

.table-row:last-child {
  border-bottom: none;
}

.symbol-info .symbol {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.col-units,
.col-price,
.col-value {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.change-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.change-amount {
  font-weight: 600;
  font-size: 0.875rem;
}

.change-percent {
  font-size: 0.75rem;
  opacity: 0.8;
}

.change-info.positive {
  color: var(--success-color);
}

.change-info.negative {
  color: var(--danger-color);
}

.sell-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--danger-light);
  color: var(--danger-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.sell-btn:hover {
  background: var(--danger-color);
  color: white;
}

/* Mobile Holdings Cards */
.holdings-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.holding-card {
  background: var(--background-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.holding-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.asset-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.asset-info .symbol {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.asset-info .units {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.asset-value {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary-color);
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.detail-row span:first-child {
  color: var(--text-secondary);
}

.detail-row span:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

.detail-row .positive {
  color: var(--success-color);
}

.detail-row .negative {
  color: var(--danger-color);
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.card-actions .sell-btn {
  padding: 0.5rem 1rem;
  width: auto;
  height: auto;
  font-size: 0.875rem;
  gap: 0.5rem;
}

/* Empty Holdings */
.empty-holdings {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-holdings i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--text-muted);
}

.empty-holdings h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.empty-holdings p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-performance-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .performance-title {
    width: 100%;
  }

  .performance-metrics {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .metric-item {
    text-align: center;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portfolio-performance-header {
    padding: 1.5rem;
  }

  .performance-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .metric-item {
    text-align: left;
  }

  .quick-actions {
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .section-header {
    padding: 1rem 1.5rem;
  }

  .holdings-cards {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .performance-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-value {
    font-size: 1rem;
  }

  .metric-value.current-value {
    font-size: 1.125rem;
  }
}

/* Form Elements */
.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color: var(--background-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-danger {
  color: var(--danger-color);
  border-color: var(--danger-color);
  background: transparent;
}

.btn-outline-danger:hover {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.875rem;
  border-left: 4px solid;
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.05);
  color: var(--info-color);
  border-left-color: var(--info-color);
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success-color);
  border-left-color: var(--success-color);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.05);
  color: var(--warning-color);
  border-left-color: var(--warning-color);
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger-color);
  border-left-color: var(--danger-color);
}

/* Cards */
.card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  background-color: var(--background-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.card-header h3,
.card-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.card-body {
  padding: 1.5rem;
}

/* Text Colors */
.text-success {
  color: var(--success-color) !important;
}

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

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

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

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

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

/* Mobile Navigation Styles */
.mobile-top-bar {
  background: var(--background-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-actions .btn {
  border-radius: var(--radius-md);
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--background-primary);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.show .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-header h5 {
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
}

.mobile-menu-items {
  padding: 1rem 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 0.875rem;
}

.mobile-menu-item:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.mobile-menu-item i {
  width: 24px;
  margin-right: 1rem;
  color: var(--text-secondary);
}

.mobile-menu-item:hover i {
  color: var(--primary-color);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 1.5rem;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background-primary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: var(--radius-lg);
  min-width: 60px;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--primary-color);
  background-color: rgba(99, 102, 241, 0.1);
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

.bottom-nav-item:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Mobile Container Padding */
.pb-mobile {
  padding-bottom: 100px !important;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Safe area support for devices with notches */
@supports (padding: max(0px)) {
  .mobile-bottom-nav {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .pb-mobile {
    padding-bottom: max(100px, calc(100px + env(safe-area-inset-bottom))) !important;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.holdings-section {
  animation: fadeIn 0.3s ease;
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--background-secondary);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Dashboard Styles */
.dashboard-header {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.portfolio-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
}

.portfolio-change {
  font-size: 1rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.change-positive {
  color: var(--success-color);
}

.change-negative {
  color: var(--danger-color);
}

.change-icon {
  font-size: 0.875rem;
}

/* Time Range Buttons */
.time-range-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.time-range-buttons {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.time-range-buttons .btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  min-width: 48px;
}

.time-range-buttons .btn:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.time-range-buttons .btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  background: var(--background-primary);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.chart-wrapper {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* Selection Overlay */
.selection-overlay {
  position: absolute;
  background: rgba(99, 102, 241, 0.08);
  border: none;
  border-radius: 0;
  pointer-events: none;
  z-index: 10;
  display: none;
}

/* Google-style Selection Tooltip */
.selection-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 25;
  display: none;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
}

.google-selection-tooltip {
  padding: 12px 16px;
  text-align: center;
}

.google-selection-tooltip .tooltip-change {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.google-selection-tooltip .tooltip-change.positive {
  color: #10b981;
}

.google-selection-tooltip .tooltip-change.negative {
  color: #ef4444;
}

.google-selection-tooltip .tooltip-range {
  font-size: 0.8125rem;
  color: #ccc;
  font-weight: 400;
}

/* Range Info */
.range-info {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Tables */
.table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.table th {
  border-top: none;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 0.75rem;
}

.table td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.table-hover tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04);
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.transaction-summary {
  background: var(--background-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.transaction-summary .row {
  margin-bottom: 0.5rem;
}

.transaction-summary .row:last-child {
  margin-bottom: 0;
}

/* Mobile Transaction Cards */
.mobile-transaction-card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.mobile-transaction-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.transaction-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.transaction-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transaction-details {
  margin-bottom: 0;
}

.transaction-symbol {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.asset-type-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: auto;
}

.transaction-info {
  background: var(--background-tertiary);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.info-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}
