/* 현대적인 디자인을 위한 CSS 스타일링 */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
}

h1 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 요약 카드 영역 */
#summary-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
}

.card h3 {
  margin: 0;
  font-size: 14px;
  color: #7f8c8d;
  text-transform: uppercase;
}

.card p {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

/* 컨트롤 영역 */
#controls {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

input[type="text"], select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

input[type="text"] { flex-grow: 1; }
select { min-width: 150px; }

button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

button:hover { background-color: #2980b9; }

/* 테이블 스타일링 */
.table-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #fdfdfd;
  color: #2c3e50;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

th:hover { background-color: #f1f1f1; }
th::after {
  content: '↕';
  position: absolute;
  right: 5px;
  color: #ccc;
}

tr:hover { background-color: #f1f7fd; }
