/* ===== ACTIVE POSITIONS TRACKING STYLES ===== */

.positions-summary {
  display: flex;
  justify-content: space-around;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  margin-bottom: 20px;
  color: white;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.summary-item .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.summary-item .value {
  font-size: 1.2rem;
  font-weight: 700;
}

.summary-item .value.positive {
  color: #22c55e;
}

.summary-item .value.negative {
  color: #ef4444;
}

/* Position Cards */
.position-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 15px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.position-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.position-card.profit {
  border-left-color: #22c55e;
  background: linear-gradient(to right, #22c55e05, white);
}

.position-card.loss {
  border-left-color: #ef4444;
  background: linear-gradient(to right, #ef444405, white);
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.position-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-type {
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.signal-type.ce {
  background: #22c55e20;
  color: #22c55e;
}

.signal-type.pe {
  background: #ef444420;
  color: #ef4444;
}

.strike {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #22c55e20;
  color: #22c55e;
}

.status-badge.waiting {
  background: #f59e0b20;
  color: #f59e0b;
}

.position-time {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Position Body */
.position-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row,
.pnl-row,
.targets-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.price-item,
.pnl-item,
.target-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-item .label,
.pnl-item .label,
.target-item .label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.price-item .value,
.pnl-item .value,
.target-item .value {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.ltp-highlight {
  background: #3b82f610;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid #3b82f6;
}

.ltp-highlight .value {
  color: #3b82f6;
  font-size: 1.2rem;
}

.value.profit {
  color: #22c55e;
}

.value.loss {
  color: #ef4444;
}

.distance {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

.pnl-row {
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
}

.pnl-item .value {
  font-size: 1.3rem;
}

.trailing-active {
  background: linear-gradient(135deg, #f59e0b20, #f59e0b10);
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
  text-align: center;
}

/* No Positions/Signals */
.no-positions,
.no-signals {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Recent Signals */
.signal-item {
  background: white;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.signal-item.ce {
  border-left-color: #22c55e;
}

.signal-item.pe {
  border-left-color: #ef4444;
}

.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.signal-details {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #64748b;
}

.signal-details span {
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .positions-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .price-row,
  .targets-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .price-item,
  .target-item {
    flex-direction: row;
    justify-content: space-between;
  }
}
