body {
  font-family: Arial, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
 }
 
 .hidden {
  display: none !important;
 }
 
 /* 폼 스타일 */
 .form-group {
  margin-bottom: 15px;
  width: 100%;
 }
 
 label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
 }
 
 input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
 }
 
 /* 버튼 기본 스타일 */
 button {
  padding: 10px 20px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  width: auto;
 }

 button:not(:first-child) {
  margin-top: 5px;
 }
 
 button:hover {
  background: #0052a3;
 }
 
 /* 테이블 스타일 */
 table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
 }
 
 th, td {
  padding: 12px 8px;
  border: 1px solid #ddd;
  text-align: left;
  word-break: break-all;
  text-wrap: balance;
  /* max-width: 200px; */
 }
 
 /* 헤더 스타일 */
 .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
 }
 
 .header h2 {
  margin: 0;
  font-size: 20px;
 }
 
 .header button {
  width: auto;
  padding: 8px 16px;
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  font-size: 14px;
 }
 
 .header button:hover {
  background-color: #dc3545;
  color: white;
 }
 
 /* 메인 액션 버튼 */
 .primary-action {
  padding: 10px 20px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  width: auto;
 }
 
 /* 모달 관련 스타일 */
 .modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  width: 80%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
 }
 
 .modal h3 {
  margin-top: 0;
  font-size: 18px;
 }
 
 .modal button {
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
 }
 
 .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
 }
 
 .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  border-radius: 12px;
 }
 
 /* 버튼 그룹 */
 .button-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
 }
 
 .button-group button {
  min-width: 80px;
 }
 
 /* 삭제 버튼 */
 .delete-btn {
  padding: 6px 12px;
  font-size: 13px;
  background: #dc3545;
  width: auto;
 }
 
 .delete-btn:hover {
  background: #c82333;
 }
 
 /* 등록 정보 */
 .registration-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
 }
 
 .registration-info strong {
  color: #0066cc;
 }
 
 /* 정보 테이블 */
 .info-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
 }
 
 .info-table th,
 .info-table td {
  padding: 10px;
  border: 1px solid #ddd;
  word-break: break-all;
 }
 
 .info-table th {
  background-color: #f8f9fa;
  width: 35%;
  text-align: left;
  font-weight: normal;
  color: #666;
 }
 
 .info-table td {
  color: #0066cc;
  font-weight: bold;
 }
 
 /* 스피너 */
 .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
 }

 #dcNickname {
  font-weight: bold;
 }
 
 @keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
 }
 
 /* 반응형 스타일 */
 @media screen and (max-width: 600px) {
  /* 테이블 반응형 */
  table:not(.info-table), thead:not(.info-table), tbody:not(.info-table), th:not(.info-table), td:not(.info-table), tr:not(.info-table) {
    display: block;
  }
  
  thead tr:not(.info-table) {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tr:not(.info-table) {
    border: 1px solid #ddd;
    margin-bottom: 10px;
  }
  
  td:not(.info-table) {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    text-align: right;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  td:not(.info-table):before {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    content: attr(data-label);
    font-weight: bold;
    width: 45%;
    text-align: left;
    padding-right: 10px;
  }
  
  td:not(.info-table):last-child {
    border-bottom: 0;
  }
 
  .info-table th,
  .info-table td {
    padding: 8px;
  }
 
  /* 모바일 버튼 */
  .modal button {
    width: 100%;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .primary-action {
    width: 100%;
  }
 }