/* monitoring.css */
.monitoring-content {
  padding: 20px;
  padding-top: 40px;
  margin-bottom: 60px; /* 네비게이션 바 높이만큼 여백 */
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 헤더 스타일 */
.monitoring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 0px;
  border-bottom: 1px solid #e0e0e0;
}

.stock-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.search-insights-icon {
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-insights-icon:hover {
  background-color: #f5f5f5;
  color: #333;
}

/* 탭 컨테이너 스타일 */
.tab-container {
  margin-bottom: 7px;
}

.tab-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 0;
}

.tab-list li {
  flex: 1;
}

.tab-button {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.tab-button:hover {
  color: #333;
  background-color: #f8f9fa;
}

.tab-button.active {
  color: #FF6B6B;
  border-bottom-color: #FF6B6B;
  font-weight: 600;
}

/* 탭 콘텐츠 스타일 */
.tab-content {
  min-height: 300px;
  padding: 7px 0;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.tab-panel p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .monitoring-content {
    padding: 15px;
    padding-top: 40px;
    font-size: 15px;
  }
  
  .monitoring-header {
    margin-bottom: 10px;
    padding-bottom: 0px;
  }
  
  .tab-button {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  .tab-content {
    padding: 7px 0;
  }
}

@media (max-width: 480px) {
  .monitoring-content {
    padding: 10px;
    padding-top: 40px;
    font-size: 15px;
  }
  
  .tab-button {
    padding: 8px 10px;
    font-size: 15px;
  }
  
  .stock-name {
    font-size: 15px;
  }
  
  .search-insights-icon {
    font-size: 18px;
    padding: 6px;
  }
}

.stock-input-wrap {
  position: relative;
  display: inline-block;
}

.stock-input {
  border: none;
  outline: none;
  background: #fff;
  font-size: 15px;
  width: 120px;
  padding: 4px 8px;
}

.search-insights-in-input {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #666;
  cursor: pointer;
  z-index: 2;
  background: transparent;
  padding: 0;
}

.monitoring-trade-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0px;
  font-size: 15px;
}

.monitoring-trade-table th, .monitoring-trade-table td {
  border: 1px solid #e0e0e0;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.monitoring-trade-table th {
  background: #fafbfc;
  font-weight: 600;
  color: #333;
}

.monitoring-trade-table tr:last-child td {
  border-bottom: 1px solid #e0e0e0;
}

/* 2행 헤더 테이블 스타일 */
.monitoring-trade-table thead th {
  border-right: 1px solid #e0e0e0;
  vertical-align: middle;
}

.monitoring-trade-table thead th:first-child {
  border-left: none;
}

.monitoring-trade-table thead th:last-child {
  border-right: none;
}

.monitoring-trade-table tbody td {
  border-right: 1px solid #e0e0e0;
}

.monitoring-trade-table tbody td:first-child {
  border-left: none;
}

.monitoring-trade-table tbody td:last-child {
  border-right: none;
}

/* 매매가격과 손익률은 우측 정렬 */
.monitoring-trade-table td:nth-child(3) {
  text-align: right;
}

.monitoring-trade-table th:nth-child(3) {
  text-align: center;
}

/* 손익률(3열의 두 번째 행) 우측 정렬 */
.monitoring-trade-table tbody tr:nth-child(even) td:last-child {
  text-align: right;
}

/* 기존 monitoring 피드 탭 피드 리스트 스타일 (사용하지 않음) */
/*
.monitoring-feed-item {
  padding: 3px 0 12px 0;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}
.monitoring-feed-item:last-child {
  border-bottom: none;
}
.monitoring-feed-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  word-break: break-all;
  text-align: left;
}
.monitoring-feed-date {
  color: #888;
  font-size: 14px;
  margin-top: 2px;
  text-align: left;
}
*/

/* 모니터링 피드 리스트 스타일 (대시보드와 동일) */
.dashboard-feed-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 12px;
}

.dashboard-feed-item {
  padding: 10px 14px 10px 14px;
  border-radius: 12px;
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid #e9ecef;
  color: #fff;
}

.dashboard-feed-item:last-child {
  border-bottom: none;
}

.dashboard-feed-item:nth-child(5n+1) { background: #1E3D59; }
.dashboard-feed-item:nth-child(5n+2) { background: #FF6EC7; }
.dashboard-feed-item:nth-child(5n+3) { background: #228B22; }
.dashboard-feed-item:nth-child(5n+4) { background: #7B8C9F; }
.dashboard-feed-item:nth-child(5n)   { background: #6552D0; }

/* 리뷰 피드 또는 feedType이 없는 피드 스타일 */
.review-feed {
  background: #fff !important;
  border: 2px solid #333 !important;
  color: #333 !important;
}

.review-feed .dashboard-feed-title,
.review-feed .dashboard-feed-date {
  color: #333 !important;
}
.review-feed .dashboard-feed-stock {
  color: #FF6B6B !important;
}

.review-feed .dashboard-feed-divider {
  border-top: 1.5px solid #333 !important;
}

.dashboard-feed-title {
  font-size: 15px;
  font-weight: bold;
  color: #fff !important;
  margin-bottom: 0px;
  line-height: 1.3;
  text-align: left;
}

.dashboard-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 5px;
}

.dashboard-feed-date {
  color: #fff !important;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
  line-height: 1;
  text-align: left;
}

.dashboard-feed-stocks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  word-break: break-all;
  flex: 1 1 0%;
  line-height: 0.7;
}

.dashboard-feed-stock {
  color: #fff !important;
  font-weight: 500;
  font-size: 15px;
  line-height: 0.7;
  margin: 1px 0;
}

.dashboard-feed-divider {
  border: none;
  border-top: 1.5px solid #fff;
  margin: 8px 0 8px 0;
}