.mypage-container {
  display: flex;
  margin-top: 40px;
  font-family: 'Pretendard', sans-serif;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 30px;
  align-items: flex-start;  /* ✅ 핵심 */
}

.mypage-sidebar {
  width: 200px;               /* service.css와 동일 */
  min-width: 180px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.mypage-sidebar h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #222;
}

.mypage-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mypage-menu li {
  margin-bottom: 12px;
}

.mypage-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;             /* 둥글게 */
  transition: background 0.2s;
}

.mypage-menu a:hover,
.mypage-menu a.active {
  background-color: #eef5ff;
  color: #007bff;
  font-weight: 650;
}

.mypage-content {
  flex-grow: 1;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #ddd;
  min-height: 600px;
  box-sizing: border-box;
}

.mypage-section {
  margin-bottom: 40px;
}

.mypage-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}

.mypage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #fff;
}

.mypage-table th,
.mypage-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

.mypage-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.pagination {
  text-align: center;
  margin: 20px 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 10px;
  margin: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.pagination .current {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
.pagination .ellipsis {
  padding: 6px 10px;
  color: #999;
}

/* 보안 설정 - NSCoach 스타일 */
.security-form-wrapper {
  max-width: 640px;
  margin: 40px auto;
  padding: 40px;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Pretendard', sans-serif;
}

.security-form-wrapper h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.security-form-wrapper .form-group {
  margin-bottom: 24px;
}

.security-form-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #222;
  font-size: 15px;
}

.security-form-wrapper input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  transition: border-color 0.3s ease;
}

.security-form-wrapper input[type="password"]:focus {
  border-color: #007bff;
  outline: none;
  background-color: #fff;
}

.security-form-wrapper .submit-button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.security-form-wrapper .submit-button:hover {
  background-color: #0056b3;
}


/* 회원정보 수정 폼 전체 카드 */
.profile-form-card {
  max-width: 600px;
  margin: 30px auto;
  padding: 36px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Pretendard', sans-serif;
}

.profile-form-card .form-section {
  margin-bottom: 40px;
}

.profile-form-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 10px;
}

.profile-form-card .form-group {
  margin-bottom: 20px;
}

.profile-form-card label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 15px;
  color: #444;
}

.profile-form-card input[type="text"],
.profile-form-card input[type="email"],
.profile-form-card input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: border-color 0.3s, background-color 0.3s;
}

.profile-form-card input:focus {
  border-color: #007bff;
  background-color: #fff;
  outline: none;
}

.profile-form-card .submit-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.profile-form-card .submit-button:hover {
  background-color: #0056b3;
}


@media (max-width: 1024px) {
  .mypage-container {
    flex-direction: column;     /* 사이드바를 위로 */
    gap: 20px;
  }

  .mypage-sidebar {
    width: 100%;
    min-width: auto;
  }

  .mypage-content {
    padding: 24px;
  }

  .mypage-table th,
  .mypage-table td {
    padding: 10px;
    font-size: 14px;
  }

  .mypage-section h2 {
    font-size: 20px;
  }
}


@media (max-width: 767px) {
  .mypage-sidebar h3 {
    font-size: 18px;
    text-align: center;
  }

  .mypage-menu a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .mypage-content {
    padding: 20px;
    min-height: auto;
  }

  .mypage-section h2 {
    font-size: 18px;
  }

  .mypage-table th,
  .mypage-table td {
    font-size: 13px;
    padding: 8px;
  }

  .pagination a,
  .pagination span {
    font-size: 13px;
    padding: 5px 8px;
  }

  .security-form-wrapper,
  .profile-form-card {
    padding: 24px;
    margin: 20px 10px;
  }

  .security-form-wrapper h2,
  .profile-form-card h3 {
    font-size: 20px;
  }

  .security-form-wrapper label,
  .profile-form-card label {
    font-size: 14px;
  }

  .profile-form-card input,
  .security-form-wrapper input[type="password"] {
    font-size: 13px;
    padding: 10px 12px;
  }

  .submit-button,
  .security-form-wrapper .submit-button,
  .profile-form-card .submit-button {
    font-size: 14px;
    padding: 12px;
  }
}
