/* css/prep-style.css */

/* 1. ±âÁ¸ º¯¼ö ¹× ÃÊ±âÈ­ (À¯Áö) */
:root {
  --primary: #2c3e50;
  --accent: #6c5ce7;
  --success: #8e44ad;
  --warning: #e67e22;
  --border: #dee2e6;
  --bg-light: #f4f7f6;
}

body {
  font-family:
    "Pretendard",
    -apple-system,
    sans-serif;
  background: var(--bg-light);
  margin: 0;
}

/* 2. ·¹ÀÌ¾Æ¿ô ±¸Á¶ (È­¸é ÀÌÅ» ¹æÁö º¸°­) */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%; /* ÀüÃ¼ ³Êºñ °íÁ¤ */
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* ³»ºÎ ¿ä¼Ò°¡ ºÎ¸ð¸¦ ¹Ð¾î³»Áö ¸øÇÏ°Ô ¹æ¾î */
}

/* 3. »ó´Ü ÅÇ ³×ºñ°ÔÀÌ¼Ç (À¯Áö) */
.top-nav {
  display: flex !important;;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #7f8c8d;
  font-size: 13px;
  transition: all 0.2s;
  text-align: center;
  border-bottom: 3px solid transparent;
}
.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: bold;
  background: rgba(108, 92, 231, 0.05);
}

/* 4. µµ¿ò¸» ¹× °¡ÀÌµå (À¯Áö) */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #e3f2fd;
  color: #1976d2;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
}
.filter-guide {
  display: none;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 0.9em;
  line-height: 1.6;
  color: #444;
  border-left: 4px solid #1976d2;
}
.filter-guide.active {
  display: block;
}

/* 5. ? µ¥ÀÌÅÍ Å×ÀÌºí °¡µ¶¼º ¹× ½ºÅ©·Ñ ÃÖÀûÈ­ (¼öÁ¤µÊ) ? */
.scroll-table {
  width: 100%;
  max-height: 450px; /* ¼¼·Î ³ôÀÌ ÀûÀýÈ÷ Á¶Àý */
  overflow: auto; /* °¡·Î, ¼¼·Î ½ºÅ©·Ñ ¸ðµÎ Çã¿ë */
  margin-top: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  min-width: 1000px; /* µ¥ÀÌÅÍ°¡ ¸¹À¸¹Ç·Î ÃÖ¼Ò ³Êºñ È®º¸ */
}

th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 10;
  border-bottom: 2px solid #dee2e6;
  padding: 12px;
  white-space: nowrap;
  text-align: center;
}

td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap; /* ±ÛÀÚ°¡ ¹ØÀ¸·Î ¶³¾îÁöÁö ¾Ê°Ô °íÁ¤ */
  text-align: left;
}

/* 6. ·¹ÀÌ¾Æ¿ô ¹öÆ° ¹× ¼½¼Ç (À¯Áö) */
.flex-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}
.flex-btn-group .btn-execute {
  flex: 1;
}
.label-text {
  font-size: 0.85em;
  color: #666;
  text-align: left;
  margin-bottom: 5px;
  display: block;
  font-weight: bold;
}

.step-section {
  display: none;
  padding: 20px;
}
.step-section.active {
  display: block;
}

.content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 15px !important;
  box-sizing: border-box !important;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden; /* Ä«µå°¡ ¶Õ¸®´Â °Í ¹æÁö */
}

.icon-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #eee;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* 7. ÀÔ·Â Æû ¹× ¹öÆ° µðÀÚÀÎ (À¯Áö) */
.filter-input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  font-size: 14px;
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-execute {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.btn-execute:hover {
  opacity: 0.9;
}
.btn-execute:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.btn-success {
  background: var(--success);
}
.btn-primary {
  background: var(--primary);
}
.btn-secondary {
  background: #95a5a6;
}

/* 8. »óÅÂ ¹Ú½º ¹× ·Î±× (À¯Áö) */
#status-box {
  padding: 20px;
  background: #e8f6f3;
  color: var(--success);
  border-radius: 10px;
  border: 1px solid #d1f2eb;
  margin-top: 15px;
  font-weight: bold;
}

#analysis-log {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 8px;
  height: 100px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
  margin-top: 15px;
}
