@charset "UTF-8";

/* ========================================
   Components Styles
   공통 컴포넌트 스타일 (재사용 가능한 UI 요소들)
   - 페이지네이션
   - 버튼
   - 모달
   - 폼 요소
   - 기타 공통 컴포넌트
   ======================================== */

/* ========================================
   Pagination Component
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #6c757d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.pagination-btn.active {
  background: #3498db;
  border-color: #3498db;
  color: #fff;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: #6c757d;
  font-size: 14px;
  padding: 0 5px;
}

.pagination-info {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

/* 템플릿 전용 페이지네이션 컨테이너 */
.template-pagination {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Contact Manual Pagination */
.contact-manual-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 15px 0;
}

.contact-manual-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-manual-page-btn.active {
  background: #3498db;
  border-color: #3498db;
  color: white;
  font-weight: 600;
}

/* My Messages Pagination */
.my-messages-pagination-container {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  background: #fff;
  text-align: center;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.my-messages-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-pagination-prev,
.btn-pagination-next,
.btn-pagination-number,
.btn-pagination-current {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-pagination-prev:hover,
.btn-pagination-next:hover,
.btn-pagination-number:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.btn-pagination-current {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.my-messages-pagination-info {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-weight: 500;
}

/* All Addressbooks Pagination */
.all-addressbooks-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 15px;
}

.all-addressbooks-pagination button {
  padding: 6px 12px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.3s ease;
}

.all-addressbooks-pagination button:hover {
  border-color: #5e42ec;
  color: #5e42ec;
}

.all-addressbooks-pagination button.active {
  background: #5e42ec;
  border-color: #5e42ec;
  color: white;
}

.all-addressbooks-pagination button:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

.all-addressbooks-pagination-info {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
}

/* Contacts Modal Pagination */
.contacts-modal-pagination {
  display: flex;
  gap: 8px;
}

.contacts-modal-pagination button {
  padding: 6px 12px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.3s ease;
}

.contacts-modal-pagination button:hover {
  border-color: #5e42ec;
  color: #5e42ec;
}

.contacts-modal-pagination button.active {
  background: #5e42ec;
  border-color: #5e42ec;
  color: white;
}

.contacts-modal-pagination button:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

/* 반응형 페이지네이션 */
@media (max-width: 768px) {
  .template-pagination {
    justify-content: center;
  }

  .pagination-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .pagination-info {
    font-size: 12px;
  }
}

/* ========================================
   Button Components
   ======================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.piggy-bank-icon {
  width: 20px;
  height: 20px;
  animation: piggy-wiggle 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.cta-button:hover .piggy-bank-icon {
  animation: piggy-wiggle-fast 0.6s ease-in-out infinite;
  transform: scale(1.1);
}

/* ========================================
   Login Components
   ======================================== */
.login-box h3 {
  margin: 0 0 25px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: #5e42ec;
}

.login-input::placeholder {
  color: #999;
}

.login-options {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.login-btn,
.signup-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.login-btn {
  background: #3498db;
  color: #fff;
}

.login-btn:hover {
  background: #2f88c3;
}

.signup-btn {
  background: #27ae60;
  color: #fff;
}

.signup-btn:hover {
  background: #218838;
}

.login-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.login-links a {
  color: #666;
  text-decoration: none;
}

.login-links span {
  margin: 0 10px;
  color: #ccc;
}

/* ========================================
   Login After Components
   ======================================== */
.login-after {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-header-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-name {
  font-size: 13px;
}

.user-name span {
  font-size: 16px;
  font-weight: 700;
}

.user-id {
  font-size: 13px;
}

.user-info-link,
.charge-link {
  display: flex;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
}

.user-info-link svg,
.charge-link svg {
  fill: #6c5ce0;
}

.user-info-link span,
.charge-link span {
  color: #6c5ce0;
  text-decoration: underline;
}

.last-login {
  font-size: 12px;
  color: #666;
}

.count-row-label {
  font-size: 13px;
  color: #7b7b7b;
}

.user-count-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-amount {
  font-size: 18px;
  font-weight: 700;
}

.send-count-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3f3f3;
  padding: 12px;
  border-radius: 10px;
}

.send-count-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
}

.send-count-label {
  font-size: 13px;
  color: #7b7b7b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.send-count-value {
  font-size: 18px;
  font-weight: 700;
}

.send-count-value span {
  font-size: 14px;
}

.logout-btn {
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

/* ========================================
   Price Comparison Components
   ======================================== */
.price-comparison {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.comparison-content {
  text-align: center;
}

.comparison-subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.comparison-title {
  font-size: 36px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.025em;
  font-weight: 900;
}

.comparison-highlight {
  color: #dc3545;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-top: 60px;
}

.price-card {
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  min-width: 180px;
  background: #fff;
  margin-top: 40px;
}

.price-card .price-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

/* Competitor (회색) */
.price-card.competitor {
  background: #e8e8e8;
  animation: slide-right 5s linear infinite;
}

.price-card.competitor .price-label {
  background: #6e6e6e;
  color: #fff;
}

.price-card.competitor .price-amount {
  color: #6e6e6e;
}

/* Our Service (보라색) */
.price-card.our-service .price-label {
  background: #7c6ae6;
  color: #fff;
}

.price-card.our-service .price-amount {
  color: #6c5ce0;
}

.price-card.competitor:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 6px 4px rgba(0, 0, 0, 0.12);
}

.price-card.our-service {
  background: #e8e5ff;
  animation: slide-left 5s linear infinite;
}

.price-card.our-service:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 6px 4px rgba(0, 0, 0, 0.12);
}

/* mail-icon 기본 스타일 */
.mail-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.mail-icon svg {
  width: 100px;
  height: 100px;
  fill: #6c5ce0;
}

.competitor .mail-icon svg {
  fill: #6e6e6e;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

/* ========================================
   Notice Box Components
   ======================================== */
.notice-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  padding: 32px;
  min-height: 200px;
}

.notice-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.notice-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  display: block;
}

.notice-title-box a {
  font-size: 14px;
  color: #6c5ce0;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s;
}

.notice-title-box a:hover {
  transform: translateX(2px);
}

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

.notice-list-item-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 15px;
  justify-content: space-between;
}

.notice-list li span {
  font-size: 13px;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

.notice-list a {
  color: #222;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  display: inline-block;
  transition: color 0.2s;
}

.notice-list a:hover {
  color: #5e42ec;
  text-decoration: underline;
}

/* 메인 페이지 공지사항 뱃지 스타일 */
.notice-list .main-notice-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.main-notice-badge-notice {
  background: #e3f2fd;
  color: #1976d2;
}

.main-notice-badge-event {
  background: #fff3e0;
  color: #f57c00;
}

/* ========================================
   Center Info Box Components
   ======================================== */
.center-info-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  padding: 32px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.center-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.center-phone-icon svg {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.center-phone-number {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

.center-info-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.center-info-desc p {
  margin-bottom: 4px;
}

.center-info-desc p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Price Comparison Background
   ======================================== */
.price-comparison-bg {
  position: relative;
  background: #6c5ce0;
  overflow: hidden;
  padding: 50px;
}

.price-comparison-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/sec2_bg.webp') center center no-repeat;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.price-comparison-bg > .container {
  position: relative;
  z-index: 1;
}

/* ========================================
   Page Title Components
   ======================================== */
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0;
  border-bottom: 1px solid #999;
  padding-bottom: 10px;
}

/* ========================================
   Send Page Layout Components
   ======================================== */
.send-page-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 50px;
}

.sene-page-box {
  display: flex;
  gap: 50px;
  width: 100%;
}

.send-form-area {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.send-step {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 30px;
  position: relative;
}

/* 단계별 스타일 */

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: #7c6ae6;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.7rem;
}

.send-preview-area {
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Preview Components
   ======================================== */
.preview-sticky {
  position: sticky;
  top: 105px;
  width: 100%;
  background: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 10;
}

.preview-desc {
  font-size: 13px;
  margin-bottom: 10px;
  margin-top: 0;
  line-height: 1.5;
}

.preview-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 24px;
}

.preview-sender-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 0px 18px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.preview-sender-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e5e5;
}

.preview-sender-number {
  font-weight: 600;
  color: #222;
  font-size: 16px;
}

.preview-message-bubble {
  background: #e9ecf1;
  border-radius: 14px;
  padding: 15px;
  min-height: 90px;
  font-size: 13px;
  margin: 16px 18px 0 18px;
  word-break: break-all;
  line-height: 1.7;
  max-height: 500px;
  overflow-y: auto;
}

.btn-send {
  width: 100%;
  padding: 16px 0;
  background: #3498db;
  color: #fff;
  font-size: 1.15rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(94, 66, 236, 0.08);
  transition: background 0.2s;
  cursor: pointer;
}

/* ========================================
   Form Components
   ======================================== */

/* 비활성화된 라디오 버튼 스타일 */
.send-step input[type='radio']:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
  color: #999;
}

.send-step input[type='radio']:disabled {
  cursor: not-allowed;
}

/* ========================================
   Info Box Components
   ======================================== */
.info-box-red {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
}

.info-box-red .info-desc {
  color: #c53030;
  font-size: 14px;
  line-height: 1.5;
}

.send-step .info-box-yellow {
  margin-top: 18px;
  background: #fffbe6;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.98rem;
  color: #7c6ae6;
  gap: 8px;
}

.send-step .info-box-yellow .info-desc {
  color: #888;
  font-size: 0.97em;
}

/* ========================================
   Button Components
   ======================================== */
.btn-sender-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.btn-sender-manage:hover {
  background: #545b62;
  transform: translateY(-1px);
}

.btn-sender-manage i {
  font-size: 12px;
}

.btn-excel-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
  text-decoration: none;
}

.btn-excel-download:hover {
  background: #218838;
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.btn-excel-download i {
  font-size: 12px;
}

/* ========================================
   Sender Number Components
   ======================================== */
.sender-number-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.sender-number-select:focus {
  outline: none;
  border-color: #5e42ec;
  box-shadow: 0 0 0 3px rgba(94, 66, 236, 0.1);
}

.sender-number-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.sender-number-item:hover {
  border-color: #3498db;
  background: #ebf3fd;
  transform: translateY(-1px);
}

.sender-number-item.active {
  border-color: #3498db;
  background: #ebf3fd;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.sender-number-item::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sender-number-item.active::before {
  background: #3498db;
  border-color: #3498db;
  position: relative;
}

.sender-number-item.active::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.sender-number {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.sender-label {
  color: #666;
  font-size: 14px;
}

/* ========================================
   Contact Components
   ======================================== */
.contact-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-input-group input {
  flex: 1;
  margin-bottom: 0;
}

.btn-add-contact {
  padding: 10px 16px;
  background: #7c6ae6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
  height: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.btn-add-contact:hover {
  background: #6c5ce0;
}

.contact-list {
  margin-bottom: 15px;
}

.btn-remove-contact {
  padding: 6px 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-remove-contact:hover {
  background: #c82333;
}

.btn-excel-upload {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.btn-excel-upload:hover {
  background: #218838;
}

/* ========================================
   Message Type Components
   ======================================== */
.message-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.message-type-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.message-type-option:hover {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.message-type-option input[type='radio'] {
  display: none;
}

.message-type-option input[type='radio']:checked + .type-content {
  color: #7c6ae6;
}

.message-type-option input[type='radio']:checked ~ .message-type-option {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.type-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.type-content small {
  color: #666;
  font-size: 14px;
}

/* ========================================
   Message Input Components
   ======================================== */
.send-step textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
}

.message-input-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  margin-left: auto;
}

.btn-special-chars {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-special-chars:hover {
  background: #e9ecef;
  color: #333;
  border-color: #adb5bd;
}

.btn-special-chars i {
  font-size: 16px;
}

/* ========================================
   Special Characters Modal Components
   ======================================== */
.special-chars-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.special-chars-modal.active {
  display: flex;
}

.special-chars-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.special-chars-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.special-chars-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.special-chars-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.special-chars-modal-close:hover {
  background: #f8f9fa;
  color: #333;
}

.special-chars-modal-body {
  padding: 20px 24px;
}

.special-chars-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 15px;
}

.special-chars-category {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.special-chars-category:hover {
  background: #e9ecef;
  color: #333;
}

.special-chars-category.active {
  background: #5e42ec;
  color: #fff;
  border-color: #5e42ec;
}

/* 특수문자 그리드 고정 높이 및 스크롤 */
.special-chars-grid {
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

/* 특수문자 아이템 스타일 */
.special-char-item {
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}

.special-char-item:hover {
  background: #f0f4fa;
  border-color: #bcd0ee;
}

/* 특수문자 모달 액션 버튼들 */
.special-chars-modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.btn-clear-chars,
.btn-complete-chars {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-clear-chars {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-clear-chars:hover {
  background: #e5e7eb;
  color: #374151;
  border-color: #9ca3af;
}

.btn-complete-chars {
  background: #5e42ec;
  color: white;
  border: 1px solid #5e42ec;
}

.btn-complete-chars:hover {
  background: #4c35d1;
  border-color: #4c35d1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 66, 236, 0.3);
}

.btn-clear-chars i,
.btn-complete-chars i {
  font-size: 12px;
}

/* ========================================
   Textarea Components
   ======================================== */
.textarea-container {
  position: relative;
}

.char-count {
  position: absolute;
  bottom: 20px;
  right: 2px;
  font-size: 12px;
  color: #666;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  font-weight: 600;
}

.message-count {
  color: #7c6ae6;
  font-weight: 600;
}

.template-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-template,
.btn-save-template {
  padding: 10px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-template:hover,
.btn-save-template:hover {
  background: #545b62;
}

/* ========================================
   Send Time Components
   ======================================== */
.send-time-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.send-time-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.send-time-option:hover {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.send-time-option input[type='radio'] {
  display: none;
}

.send-time-option input[type='radio']:checked ~ .send-time-option {
  border-color: #7c6ae6;
  background: #f0f0ff;
}

.time-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.time-content small {
  color: #666;
  font-size: 14px;
}

/* ========================================
   Guide Check Components
   ======================================== */
.guide-check {
  color: #7c6ae6;
  font-size: 1.1em;
}

/* ========================================
   Modal Components
   ======================================== */

/* Send Confirm Modal - 기본 스타일 */
#sendConfirmModal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  font-family: 'NanumSquare Neo', sans-serif;
}

#sendConfirmModal.active {
  display: flex;
}

.send-confirm-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  margin: 40px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.4, 1.4, 0.6, 1) 1;
}

/* 애니메이션은 animations.css로 이동 */

.send-confirm-modal-header {
  width: 100%;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px 12px 0 0;
  border: 1px solid #e9ecef;
  text-align: center;
  font-weight: 800;
  color: #222;
  letter-spacing: -1px;
}

.send-confirm-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.send-confirm-modal-content {
  padding: 20px;
}

.send-confirm-info-list {
  margin-bottom: 20px;
  font-size: 1.08rem;
  line-height: 2.1;
}

.send-confirm-info-list strong {
  color: #5e42ec;
  font-weight: 700;
  min-width: 90px;
  display: inline-block;
}

.send-confirm-preview-label {
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

#confirmMsgPreview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 4px;
  font-size: 1.08rem;
  min-height: 70px;
  color: #222;
  word-break: break-all;
}

.send-confirm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.confirm-card {
  color: #fff;
  background: #6c5ce0;
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirm-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.send-confirm-cards .confirm-card:nth-child(2) {
  background: #fff;
  border: 2px solid #6c5ce0;
  color: #6c5ce0;
}

.confirm-card-icon i {
  font-size: 3.6rem;
  color: #ffc107;
}

.confirm-card-content {
  flex: 1;
}

.confirm-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.confirm-card-value {
  font-size: 1.6rem;
  font-weight: 900;
}

.confirm-card-desc {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

/* sendMsg.css에서 관리되는 스타일들:
   - .send-confirm-checkbox label
   - .send-confirm-notice-item
   - .send-confirm-notice-text span
   - .send-confirm-notice-icon
   - .send-confirm-notice-desc
   - #btnCancelSend
   - #btnReallySend
   - #btnCloseSendModal
*/

/* Contacts Modal */
.contacts-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  font-family: 'NanumSquare Neo', sans-serif;
}

.contacts-modal.active {
  display: flex;
}

.contacts-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  margin: 40px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
}

.contacts-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.contacts-modal-search {
  flex: 1;
  margin-left: 20px;
  position: relative;
}

.contacts-modal-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.contacts-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-modal-close:hover {
  color: #5e42ec;
}

.contacts-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

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

.contacts-table th,
.contacts-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.contacts-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.contacts-table tr:hover {
  background: #f8f9fa;
}

.contacts-modal-footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts-modal-pagination {
  display: flex;
  gap: 10px;
}

.contacts-modal-info {
  font-size: 14px;
  color: #666;
}

/* All Addressbooks Modal 스타일들은 sendMsg.css에서 관리됩니다 */

/* My Messages Modal 스타일들은 sendMsg.css에서 관리됩니다 */

/* Mobile Responsive Styles for Modals */
/* 반응형 CSS는 responsive.css로 이동 */

/* ========================================
   Common Components (Moved from pages.css)
   ======================================== */

/* Status Badge Components */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #cce8fc;
  color: #3498db;
}

.status-processing {
  background: #d1ecf1;
  color: #0c5460;
}

.status-done {
  background: #d4edda;
  color: #155724;
}

.status-refusal,
.status-cancel {
  background: #f8d7da;
  color: #721c24;
}

/* Type Badge Components */
.type-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.type-tax {
  background: #e3f2fd;
  color: #1976d2;
}

.type-cash {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Pagination Components */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-number:hover {
  background: #f8f9fa;
}

.page-number.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

/* Table Container Components */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Quick Actions Components */
.quick-actions {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-actions h2 {
  margin: 0 0 20px 0;
  color: #333;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.action-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-card:hover {
  background: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Common Button Components */
.btn-primary {
  background: #667eea;
  color: #fff;
  padding: 12px 24px;
}

.btn-primary:hover {
  background: #5a6fd8;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #545b62;
}

/* Form Components */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Card Components */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* Filter Components */
.filter-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.filter-select,
.filter-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.search-group {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 500px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

/* List Components */
.list-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.list-header h2 {
  margin: 0;
  color: #333;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-count {
  color: #666;
}

/* Status Display Components */
.status-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Info Grid Components */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
}

.info-group label {
  font-weight: 600;
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.info-group span {
  color: #333;
  font-size: 16px;
}

/* Detail Section Components */
.detail-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-section h3 {
  margin-bottom: 10px;
}

/* Memo Content Components */
.memo-content {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  color: #333;
  line-height: 1.6;
  min-height: 60px;
}

/* History Components */
.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.history-item:last-child {
  border-bottom: none;
}

.history-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.history-content {
  flex: 1;
}

.history-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.history-date {
  color: #666;
  font-size: 12px;
}

.history-memo {
  color: #333;
  margin-top: 8px;
  line-height: 1.5;
}
