/* Import shared styles from dashboard.css for consistency */
@import url('dashboard.css?v=20260215mobile5');

/* ================================
   Portfolio Specific Styles
   ================================ */

.subtitle {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 1rem;
}

/* Progress Bar for Performance Column */
.progress-bar {
  position: relative;
  width: 100%;
  height: 30px;
  background: rgba(0, 200, 150, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s ease;
  animation: fillAnimation 1s ease-out forwards;
}

.progress-fill.text-success {
  background: linear-gradient(90deg, var(--success), #66bb6a);
}

.progress-fill.text-danger {
  background: linear-gradient(90deg, var(--danger), #ef5350);
}

.progress-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: bold;
  color: var(--text-secondary);
  z-index: 1;
}

@keyframes fillAnimation {
  from {
    width: 0 !important;
  }
}

/* Text color helpers */
.text-success {
  color: var(--success);
}

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

/* Badge styles (match Historie/Dashboard) */
.badge-success {
  background: var(--success);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  min-width: 70px;
  text-align: center;
  line-height: 1.2;
}

.badge-danger {
  background: var(--danger);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  min-width: 70px;
  text-align: center;
  line-height: 1.2;
}

/* Coin List Table Enhancements - now using .mtx-table */
.coin-list .mtx-table tbody tr {
  cursor: pointer;
}

.coin-list .mtx-table tbody tr:hover {
  background: rgba(0, 200, 150, 0.08);
  transform: scale(1.01);
}

/* Charts customization */
.charts-grid .chart-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.charts-grid .chart-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow);
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .progress-bar {
    height: 25px;
  }

  .progress-text {
    font-size: 0.85rem;
  }
  
  /* Mobile table adjustments now handled by .mtx-table in style.css */
}

/* ================================
   Portfolio Responsive Design v1.9.0-pre
   ================================ */

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .portfolio-card {
    padding: 16px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .portfolio-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-portfolio {
    width: 100%;
    margin: 4px 0;
  }

  .progress-bar {
    height: 25px;
  }

  .progress-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    padding: 8px;
  }

  .portfolio-card {
    padding: 12px;
  }

  .progress-bar {
    height: 20px;
  }

  .progress-text {
    font-size: 0.7rem;
  }

  .btn-portfolio {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
