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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  background: #fafafa;
  color: #37352f;
  line-height: 1.6;
  font-size: 13px;
}

.header {
  background: #ffffff;
  color: #37352f;
  padding: 10px 0;
  border-bottom: 1px solid #e1e5e9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #37352f;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-btn {
  background: #f7f6f3;
  border: 1px solid #e1e5e9;
  color: #37352f;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.logout-btn:hover {
  background: #f1f1ef;
  border-color: #d1d5d9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.section {
  background: #ffffff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 0;
  border: 1px solid #e1e5e9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section h2 {
  color: #37352f;
  margin-bottom: 10px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.section h3 {
  color: #37352f;
  margin: 10px 0 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-left: 10px;
  border-left: 3px solid #e1e5e9;
}

.info-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.info-card {
  background: #f8fafc;
  padding: 10px;
  border-radius: 0;
  border: 1px solid #e1e5e9;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.info-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
  color: #1e293b;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.info-card p {
  margin-bottom: 0;
  line-height: 1.6;
  color: #475569;
  font-size: 13px;
}

.pros-cons {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pros,
.cons {
  background: #ffffff;
  padding: 10px;
  border-radius: 0;
  border: 1px solid #e1e5e9;
  margin-bottom: 0;
  position: relative;
}

.pros {
  border-left: 4px solid #059669;
}

.cons {
  border-left: 4px solid #dc2626;
}

.pros h4 {
  color: #059669;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.pros h4::before {
  content: "✅";
  margin-right: 8px;
}

.cons h4 {
  color: #dc2626;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.cons h4::before {
  content: "⚠️";
  margin-right: 8px;
}

.pros ul,
.cons ul {
  list-style: none;
}

.pros li,
.cons li {
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
  color: #475569;
  font-size: 13px;
}

.pros li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
  font-size: 13px;
}

.cons li:before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: bold;
  font-size: 13px;
}

.pros li:last-child,
.cons li:last-child {
  margin-bottom: 0;
}

.comment-section {
  background: none;
  padding: 0;
  margin-top: 20px;
  border: none;
}

.comment-form {
  display: block;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #d1d5d9;
  border-radius: 0;
  font-size: 13px;
  background: #ffffff;
  color: #37352f;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 200px;
  font-family: inherit;
}

.submit-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.comments-list {
  margin-top: 20px;
}

.comment-item {
  background: #f8fafc;
  padding: 10px;
  border-radius: 0;
  margin-bottom: 10px;
  border: 1px solid #e1e5e9;
  transition: all 0.2s ease;
}

.comment-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.completion-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.completion-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #007bff;
}

.completion-checkbox label {
  font-size: 11px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.comment-content {
  color: #374151;
  line-height: 1.6;
  font-size: 13px;
}

.message {
  padding: 10px;
  border-radius: 0;
  margin: 10px 0;
  display: none;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 메인 콘텐츠 레이아웃 */
.main-content {
  display: flex;
  height: calc(100vh - 80px); /* 헤더 높이 제외 */
  gap: 10px;
  padding: 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.report-section {
  flex: 2;
  overflow-y: auto;
  padding-right: 10px;
  background: #fafafa;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.comment-panel {
  flex: 1;
  min-width: 380px;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #e1e5e9;
  display: flex !important; /* flex가 확실히 적용되도록 !important 추가 */
  flex-direction: column;
  max-height: calc(100vh - 80px); /* 최대 높이 제한으로 스크롤 활성화 */
  overflow: hidden !important; /* 부모 컨테이너에서 오버플로우 숨김 - !important 추가 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-panel-header {
  padding: 10px;
  border-bottom: 1px solid #e1e5e9;
  background: #fafafa;
  border-radius: 0;
}

.comment-panel-header h3 {
  margin: 0;
  color: #37352f;
  font-size: 13px;
  font-weight: 600;
}

.comment-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0; /* flex: 1이 제대로 작동하도록 설정 */
  max-height: 100%; /* 부모 컨테이너의 높이를 넘지 않도록 제한 */
  scrollbar-width: thin; /* Firefox 스크롤바 스타일 */
  scrollbar-color: #cbd5e1 #f1f5f9; /* Firefox 스크롤바 색상 */
}

/* Webkit 브라우저 스크롤바 스타일 */
.comment-panel-content::-webkit-scrollbar {
  width: 8px;
}

.comment-panel-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.comment-panel-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.comment-panel-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 모바일 탭 인터페이스 */
.mobile-tabs {
  display: none;
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e1e5e9;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  background: none;
  border: none;
  color: #6b7280;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #f8fafc;
}

.tab-btn:hover {
  color: #37352f;
  background: #f8fafc;
}

/* 탭 콘텐츠 - 데스크톱에서는 항상 표시 */
.tab-content {
  display: block; /* 데스크톱에서는 기본적으로 표시 */
}

/* 모바일에서만 탭 기능 적용 */
@media (max-width: 768px) {
  .tab-content {
    display: none !important; /* 모바일에서 기본적으로 숨김 */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .tab-content.active {
    display: block !important; /* 모바일에서 active 클래스가 있는 탭만 표시 */
    opacity: 1;
    transform: translateY(0);
  }

  /* comment-panel에 대한 더 구체적인 선택자 */
  .comment-panel.tab-content {
    display: none !important;
  }

  .comment-panel.tab-content.active {
    display: block !important;
  }
}

/* 데스크톱에서는 탭 버튼 클릭 효과 무시 */
@media (min-width: 769px) {
  .tab-content {
    display: block !important; /* 데스크톱에서는 active 클래스와 관계없이 항상 표시 */
  }
}

/* 로그인 페이지 스타일 */
body.login-page {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid #333;
}

.login-container .logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.subtitle {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 13px;
}

.login-container .form-group {
  margin-bottom: 10px;
  text-align: left;
}

.login-container label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 500;
}

.login-container input {
  width: 100%;
  padding: 10px;
  border: 2px solid #333;
  border-radius: 0;
  font-size: 13px;
  background: #2d2d2d;
  color: #fff;
  transition: border-color 0.3s ease;
}

.login-container input:focus {
  outline: none;
  border-color: #666;
  background: #333;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #333 0%, #666 100%);
  color: white;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.login-btn:hover {
  /* transform 효과 제거 */
}

.error-message {
  color: #e74c3c;
  margin-top: 10px;
  font-size: 13px;
  display: none;
}

.success-message {
  color: #27ae60;
  margin-top: 10px;
  font-size: 13px;
  display: none;
}

@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  /* 모바일에서 탭 인터페이스 표시 */
  .mobile-tabs {
    display: flex;
  }

  /* 모바일에서 좌우 분할 레이아웃 해제 */
  .main-content {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .report-section {
    flex: none;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .comment-panel {
    flex: none;
    min-width: auto;
    margin-top: 20px;
    height: 600px; /* 모바일에서 더 여유있는 높이 설정 */
  }

  /* 모바일에서 탭 콘텐츠 전체 너비 사용 */
  .tab-content {
    width: 100%;
  }

  /* 모바일에서 헤더 높이 조정 */
  .header {
    padding: 15px 0;
  }

  .header-content {
    padding: 0 15px;
  }

  .logo {
    font-size: 20px;
  }

  /* 모바일에서 폼 요소 크기 조정 */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
    font-size: 13px; /* iOS에서 줌 방지 */
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* 새로 추가된 스타일 */
.highlight-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.highlight-box h4 {
  color: #007bff;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.highlight-box p {
  color: #495057;
  margin: 0;
  line-height: 1.5;
}

/* 카드 상태별 스타일 */
.info-card.warning {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.info-card.warning h4 {
  color: #856404;
}

.info-card.warning p {
  color: #856404;
}

.info-card.security {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.info-card.security h4 {
  color: #155724;
}

.info-card.security p {
  color: #155724;
}

.info-card.success {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.info-card.success h4 {
  color: #0c5460;
}

.info-card.success p {
  color: #0c5460;
}

.info-card.info {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.info-card.info h4 {
  color: #0d47a1;
}

.info-card.info p {
  color: #0d47a1;
}

.info-card.contact {
  border-left: 4px solid #9c27b0;
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.info-card.contact h4 {
  color: #4a148c;
}

.info-card.contact p {
  color: #4a148c;
}

/* 타임라인 스타일 */
.timeline {
  position: relative;
  margin: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  padding-left: 60px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-date {
  font-weight: 600;
  color: #007bff;
  font-size: 13px;
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: #37352f;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

.timeline-content p {
  color: #6c757d;
  margin: 0;
  font-size: 13px;
}

/* 모바일 반응형 타임라인 */
@media (max-width: 768px) {
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-item::before {
    left: 6px;
    width: 18px;
    height: 18px;
  }
}
