/* =========================================================
   GLOBAL SETTINGS
========================================================= */
body {
  font-family: 'Pretendard', sans-serif;
  background-color: #f8f9fb;
  margin: 0;
  padding: 0;
}

/* 카드 및 기본 요소 */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
  color: #f6314e;
}

.table th, .table td {
  vertical-align: middle !important;
}

/* 버튼 */
.btn-outline-success {
  border-radius: 6px;
  font-size: 13px;
  padding: 8px 15px;
  border: 1px solid #28a745;
  color: #28a745;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: #fff;
}

/* 탭 & 배지 */
.nav-tabs .nav-link {
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  color: #f6314e;
  border-color: #f6314e #f6314e #fff;
}

.badge {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 8px;
}

/* =========================================================
   SIDEBAR (PC Version)
========================================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  z-index: 1000;
}

/* 로고 */
.sidebar .logo {
  font-size: 22px;
  font-weight: 700;
  color: #f6314e;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

/* 메뉴 목록 */
.sidebar .menu {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar .menu li {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

/* 메뉴 링크 */
.sidebar .menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  transition: 0.3s;
  border-radius: 5px;
  margin: 0 15px;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
  background-color: #f6314e;
  color: #fff;
}

/* 본문 */
body {
  padding-left: 230px; /* 사이드바 공간 확보 */
}

/* =========================================================
   CONTENT
========================================================= */
.container {
  padding-top: 40px;
}

/* alert & table spacing */
.alert {
  border-radius: 8px;
}

.table {
  border-radius: 8px;
  overflow: hidden;
}

/* =========================================================
   MOBILE RESPONSIVE (max-width: 768px)
========================================================= */
@media (max-width: 768px) {

  /* 사이드바 → 상단바로 변환 */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .sidebar .logo {
    font-size: 18px;
    margin-bottom: 0;
  }

  .sidebar .menu {
    display: flex;
    gap: 15px;
    margin: 0;
  }

  .sidebar .menu li {
    margin: 0;
  }

  .sidebar .menu a {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
  }

  /* 본문 상단 여백 */
  body {
    padding-left: 0;
    padding-top: 80px;
  }

  .container {
    padding: 15px;
  }
}

/* =========================================================
   ADDITIONAL UI TWEAKS
========================================================= */
input.form-control {
  border-radius: 6px;
}

.input-group .btn {
  border-radius: 6px;
  border-color: #f6314e;
  color: #f6314e;
}

.input-group .btn:hover {
  background-color: #f6314e;
  color: #fff;
}

h4, h5, h6 {
  font-weight: 700;
}

.text-primary {
  color: #f6314e !important;
}

.text-secondary {
  color: #555 !important;
}

/* hover 효과 부드럽게 */
* {
  transition: all 0.2s ease-in-out;
}

/* =========================================================
   DASHBOARD CARD STYLE (SNS모아형)
========================================================= */
.dashboard-card {
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px 30px;
}

.card-header {
  border-bottom: 2px solid #f6314e;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.card-header h4,
.card-header h5 {
  color: #f6314e;
  font-weight: 700;
  margin: 0;
}

.card-header .desc {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}

.card-section {
  margin-bottom: 25px;
}

.card-section h6 {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

/* 버튼 기본 색상 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
  color: #fff !important;
}

.input-group .btn-accent {
  background-color: #f6314e !important;
  border: none !important;
  color: #fff !important;
}

.input-group .btn-accent:hover {
  background-color: #d82841 !important;
}


/* 테이블 헤더 강조 */
.table-accent {
  background-color: #f6314e;
}

/* 반응형 */
@media (max-width: 768px) {
  .dashboard-card {
    padding: 20px;
  }
}



/* =========================================================
   LOGIN PAGE STYLE
========================================================= */

.login-wrapper {
  min-height: 70vh;
  background-color: #f8f9fb;
}

.login-card {
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 입력창 */
.login-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.login-card .form-control:focus {
  border-color: #f6314e;
  box-shadow: 0 0 0 0.2rem rgba(246, 49, 78, 0.15);
}

/* 버튼 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
}

.btn-outline-accent {
  border: 1px solid #f6314e !important;
  color: #f6314e !important;
  font-weight: 600;
  background-color: #fff !important;
}

.btn-outline-accent:hover {
  background-color: #f6314e !important;
  color: #fff !important;
}

.text-accent {
  color: #f6314e !important;
}

/* 모바일 */
@media (max-width: 768px) {
  .login-card {
    margin: 0 20px;
    padding: 30px 25px;
  }
}

/* =========================================================
   REGISTER PAGE STYLE
========================================================= */
.register-wrapper {
  min-height: 100vh;
  background-color: #f8f9fb;
}

.register-card {
  background-color: #fff;
  width: 100%;
  max-width: 420px;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.register-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 입력창 */
.register-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.register-card .form-control:focus {
  border-color: #f6314e;
  box-shadow: 0 0 0 0.2rem rgba(246, 49, 78, 0.15);
}

/* 버튼 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
}

.btn-outline-accent {
  border: 1px solid #f6314e !important;
  color: #f6314e !important;
  font-weight: 600;
  background-color: #fff !important;
}

.btn-outline-accent:hover {
  background-color: #f6314e !important;
  color: #fff !important;
}

.text-accent {
  color: #f6314e !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .register-card {
    margin: 0 20px;
    padding: 30px 25px;
  }
}

/* =========================================================
   RESET PASSWORD PAGE STYLE
========================================================= */
.reset-wrapper {
  min-height: 100vh;
  background-color: #f8f9fb;
}

.reset-card {
  background-color: #fff;
  width: 100%;
  max-width: 420px;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.reset-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 입력창 */
.reset-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.reset-card .form-control:focus {
  border-color: #f6314e;
  box-shadow: 0 0 0 0.2rem rgba(246, 49, 78, 0.15);
}

/* 버튼 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
}

.btn-outline-accent {
  border: 1px solid #f6314e !important;
  color: #f6314e !important;
  font-weight: 600;
  background-color: #fff !important;
}

.btn-outline-accent:hover {
  background-color: #f6314e !important;
  color: #fff !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .reset-card {
    margin: 0 20px;
    padding: 30px 25px;
  }
}

/* =========================================================
   MEMBER INFO PAGE
========================================================= */
.member-wrapper {
  min-height: 100vh;
  background-color: #f8f9fb;
}

.member-card {
  background-color: #fff;
  width: 100%;
  max-width: 420px;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.member-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 입력창 */
.member-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.member-card .form-control:focus {
  border-color: #f6314e;
  box-shadow: 0 0 0 0.2rem rgba(246, 49, 78, 0.15);
}

/* 버튼 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
}

.btn-outline-accent {
  border: 1px solid #f6314e !important;
  color: #f6314e !important;
  font-weight: 600;
  background-color: #fff !important;
}

.btn-outline-accent:hover {
  background-color: #f6314e !important;
  color: #fff !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .member-card {
    margin: 0 20px;
    padding: 30px 25px;
  }
}
/* =========================================================
   ORDERS PAGE STYLE (포인트 카드 추가 포함)
========================================================= */
.orders-wrapper {
  background-color: #f8f9fb;
  min-height: 100vh;
  padding: 40px 0;
}

.orders-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.orders-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ✅ 요약 카드 */
.summary-card {
  background-color: #fff5f6;
  border: 1px solid #fcd1d7;
  transition: all 0.3s ease;
}
.summary-card:hover {
  background-color: #ffecee;
}
.summary-icon {
  background-color: #f6314e;
  color: #fff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 20px;
}

/* 테이블 스타일 */
.table-accent {
  background-color: #f6314e;
}

.table thead th {
  font-weight: 600;
  vertical-align: middle;
}

.table td {
  font-size: 14px;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: #fff5f6;
}

/* 버튼 스타일 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
}

.btn-outline-accent {
  border: 1px solid #f6314e !important;
  color: #f6314e !important;
  font-weight: 600;
  background-color: #fff !important;
}

.btn-outline-accent:hover {
  background-color: #f6314e !important;
  color: #fff !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .orders-card {
    margin: 0 20px;
    padding: 25px;
  }
  .table td, .table th {
    font-size: 13px;
  }
}

/* 페이지네이션 스타일 */
.pagination .page-item.active .page-link {
  background-color: #f6314e;
  border-color: #f6314e;
  color: #fff;
}

.pagination .page-link {
  color: #f6314e;
  border: 1px solid #fcd1d7;
  margin: 0 3px;
  border-radius: 6px;
  transition: 0.2s;
}

.pagination .page-link:hover {
  background-color: #ffecee;
  border-color: #f6314e;
}

/* =========================================================
   WITHDRAW PAGE STYLE
========================================================= */
.withdraw-wrapper {
  background-color: #f8f9fb;
  min-height: 100vh;
  padding: 40px 0;
}

.withdraw-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.withdraw-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ✅ 요약 카드 */
.summary-card {
  background-color: #fff5f6;
  border: 1px solid #fcd1d7;
  transition: all 0.3s ease;
}
.summary-card:hover {
  background-color: #ffecee;
}
.summary-icon {
  background-color: #f6314e;
  color: #fff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 20px;
}

/* 입력 폼 */
.withdraw-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.withdraw-card .form-control:focus {
  border-color: #f6314e;
  box-shadow: 0 0 0 0.2rem rgba(246, 49, 78, 0.15);
}

/* 버튼 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent:hover {
  background-color: #d82841 !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .withdraw-card {
    margin: 0 20px;
    padding: 25px;
  }
}

/* =========================================================
   WITHDRAW PAGE (신청 이력 포함)
========================================================= */
.withdraw-wrapper {
  background-color: #f8f9fb;
  min-height: 100vh;
  padding: 40px 0;
}

.withdraw-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.withdraw-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* 요약 카드 */
.summary-card {
  background-color: #fff5f6;
  border: 1px solid #fcd1d7;
  transition: all 0.3s ease;
}
.summary-card:hover {
  background-color: #ffecee;
}
.summary-icon {
  background-color: #f6314e;
  color: #fff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 20px;
}

/* 테이블 */
.table-accent {
  background-color: #f6314e;
}

.table-hover tbody tr:hover {
  background-color: #fff5f6;
}

/* 입력 폼 */
.withdraw-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.withdraw-card .form-control:focus {
  border-color: #f6314e;
  box-shadow: 0 0 0 0.2rem rgba(246, 49, 78, 0.15);
}

/* 버튼 */
.btn-accent {
  background-color: #f6314e !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  transition: 0.3s;
}
.btn-accent:hover {
  background-color: #d82841 !important;
}

/* 모바일 */
@media (max-width: 768px) {
  .withdraw-card {
    margin: 0 20px;
    padding: 25px;
  }
  .table td, .table th {
    font-size: 13px;
  }
}


/* =========================================================
   TOAST MESSAGE (공용)
========================================================= */
.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-10px);
  z-index: 9999;
  font-size: 14px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.success { background: #28a745; }
.toast-message.error { background: #dc3545; }
.toast-message.warning { background: #ffc107; color: #000; }
@media (max-width: 768px) {
  .toast-message {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    font-size: 13px;
    width: auto;
    max-width: 90%;
    text-align: center;
  }
  .toast-message.show {
    transform: translateX(50%) translateY(0);
  }
}
/* =========================================================
   ADMIN DASHBOARD
========================================================= */
.admin-dashboard {
  border: 1px solid #eee;
  border-top: 5px solid #f6314e;
  background-color: #fff;
}

.table-accent {
  background-color: #f6314e;
}

.table-hover tbody tr:hover {
  background-color: #fff4f5;
}

.admin-dashboard .btn-outline-success {
  color: #f6314e;
  border-color: #f6314e;
}
.admin-dashboard .btn-outline-success:hover {
  background-color: #f6314e;
  color: #fff;
}

.admin-dashboard .nav-tabs .nav-link.active {
  border-bottom: 3px solid #f6314e;
  color: #f6314e;
  font-weight: 700;
}
.admin-dashboard .nav-tabs .nav-link {
  color: #444;
}
.admin-dashboard .nav-tabs .nav-link:hover {
  color: #f6314e;
}

.badge.bg-success { background-color: #28a745 !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #333 !important; }

/* Responsive */
@media (max-width: 768px) {
  .admin-dashboard {
    padding: 20px;
  }
  .table td, .table th {
    font-size: 13px;
  }
}

/* 관리자 요약 카드 */
.summary-card {
  background-color: #fff5f6;
  border: 1px solid #fcd1d7;
  transition: 0.3s;
}
.summary-card:hover {
  background-color: #ffe9eb;
}
.text-accent { color: #f6314e !important; }

/* 숫자 페이지네이션 */
.pagination-wrapper ul.pagination {
  margin: 0;
}
.page-link {
  color: #f6314e;
  font-weight: 500;
}
.page-item.active .page-link {
  background-color: #f6314e;
  border-color: #f6314e;
  color: #fff;
}
.page-link:hover {
  background-color: #ffe8ea;
}
