.student-generator-layout {
  display: flex;
  margin: 20px auto;
  max-width: 100%; /* 전체 넓이 사용 */
}

.left-panel {
  flex: 0 0 320px; /* 고정 폭: 최소 280px, 최대 400px */
  min-width: 280px;
  max-width: 400px;
}

.right-panel {
  flex: 1; /* 나머지 공간 전부 사용 */
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee; /* 밑줄을 header 전체에 적용 */
  padding-bottom: 8px; /* 밑줄과 콘텐츠 사이 간격 */
  margin-bottom: 10px; /* header와 아래 내용 사이 여백 */
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}


.card-actions {
  display: flex;
  gap: 6px; /* 아이콘 사이 여백 줄임 */
  align-items: center; /* 세로 정렬 */
}

.icon-btn {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.icon-btn:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.icon-btn:active {
  background: #d0d0d0;
}



.student-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
}

.student-list li {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

.student-list li:hover {
  background-color: #f9f9f9;
}

.right-panel select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

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

.table-section th,
.table-section td {
  border: 1px solid #ddd;
  padding: 10px;
}

.table-section th {
  background-color: #f8f8f8;
}

#addStudentForm {
  display: flex;
  flex-wrap: wrap; /* 너무 좁으면 줄바꿈 */
  gap: 4px;         /* input들 사이 간격 */
  margin-bottom: 10px;
}


#addStudentForm input {
  flex: 1 1 auto;       /* 공간을 나눠서 한 줄 유지 */
  margin: 2px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#addStudentForm button {
  margin-left: 4px;
  padding: 4px 10px;
  border: none;
  background-color: #4cafef;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

#addStudentForm button:hover {
  background-color: #45a1de;
}



/* 반응형 */
@media (max-width: 768px) {
  .student-generator-layout {
    flex-direction: column;
  }

  .left-panel {
    max-width: 100%;
    padding-bottom: 20px;
  }

  .right-panel {
    padding-left: 0;
  }
}








.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#contentTable input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}


/*삭제*/
.deleteStudentBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.deleteStudentBtn:hover {
  color: #ff0000;
  font-weight: bold;
}

/*결과*/
.extra-request {
  width: 100%;
  min-height: 40px;
  margin-bottom: 4px;
}

.sendAiBtn {
  display: block;
  width: 100%;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
}

.sendAiBtn:hover {
  background: #45a049;
}

.ai-response {
  font-size: 0.95rem;
  color: #333;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
}




/*프로그래스바*/
.progress-bar {
  width: 100%;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 5px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: #4cafef;
  animation: progressAnim 2s linear infinite;
}
@keyframes progressAnim {
  0% { width: 0%; }
  50% { width: 50%; }
  100% { width: 100%; }
}
.progress-text {
  font-size: 0.8em;
  color: #666;
  margin-top: 3px;
}
