/* 앱다운 헤더 */
.app-header {
  background: #444a6a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 44px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.header-inner { width: 100%; max-width: 430px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 6px; }
.header-left { flex: 0 0 auto; display: flex; align-items: center; margin-left: 0; }
.header-logo { color: #fff; font-size: 20px; font-weight: bold; letter-spacing: 1px; }
.header-center { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.header-title { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0.2px; }
.header-right { flex: 0 0 auto; display: flex; align-items: center; margin-right: -4px; }
.hamburger-menu { width: 44px; height: 44px; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 8px; transition: background 0.2s; margin-right: 0; }
.hamburger-menu:hover { background: rgba(255,255,255,0.08); }
.hamburger-menu svg { display: block; }
.header-logo-img { height: 18px; width: auto; display: block; margin: 0 0 0 4px; padding: 0; }

/* 명함 카드 */
.business-card-container { 
  width: 99.5% !important; 
  max-width: 99.5% !important;
  margin: 1px auto 12px auto !important; 
  background: #fff !important; 
  border-radius: 14px !important; 
  box-shadow: 0 5px 18px rgba(0,0,0,0.13) !important; 
  padding: 18px 12px !important; 
  display: block !important; 
  box-sizing: border-box !important;
}
.business-card-app { display: flex; flex-direction: row; align-items: flex-start; gap: 18px; width: 100%; padding: 24px 20px; }
.card-avatar { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; font-weight: bold; box-shadow: 0 2px 8px rgba(102,126,234,0.10); }
.avatar-initial { font-size: 28px; font-weight: bold; }
.card-info-app { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-company { font-size: 15px; font-weight: 700; color: #444a6a; margin-bottom: 2px; }
.card-dept { font-size: 13px; color: #888; margin-bottom: 2px; }
.card-name-row { font-size: 20px; font-weight: 800; color: #222; margin-bottom: 2px; display: flex; align-items: baseline; gap: 8px; }
.card-position { font-size: 13px; font-weight: 500; color: #888; }
.card-contact-row { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #444a6a; margin-bottom: 2px; }
.card-contact svg { vertical-align: middle; margin-right: 4px; }
.card-address-row { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #444a6a; }
.card-address svg { vertical-align: middle; margin-right: 4px; }

/* 컨텐츠 카드 */
.content-area { width: 99.5% !important; margin: 0 auto 80px auto; padding: 0; }
.content-card-app { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 28px 18px 22px 18px; text-align: center; }
.content-title-app { font-size: 16px; font-weight: 700; color: #444a6a; margin-bottom: 8px; }
.content-message-app { font-size: 15px; color: #888; margin-bottom: 10px; }
.content-hint-app { font-size: 13px; color: #667eea; background: #f4f7ff; border-radius: 10px; padding: 10px 8px; margin-top: 8px; }

/* 푸터 */
.app-footer { background: #444a6a !important; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; box-shadow: 0 -2px 8px rgba(0,0,0,0.04); border-top: 2px solid rgba(255,255,255,0.08); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 0; }
.footer-menu { display: flex; justify-content: space-around; align-items: center; width: 100%; max-width: 430px; margin: 0 auto; height: 64px; padding-top: 6px; }
.footer-item { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 12px; transition: background 0.2s; cursor: pointer; min-width: 60px; height: 56px; justify-content: center; width: 20%; height: 100%; box-sizing: border-box; padding: 0; margin: 0; }
.footer-item:hover { background: rgba(255,255,255,0.06); }
.footer-item:active { background: rgba(68,74,106,0.08) !important; border-radius: 12px; transition: background 0.12s; }
.footer-icon { width: 28px; height: 28px; margin-bottom: 0; display: flex; align-items: center; justify-content: center; }
.footer-text { color: #fff !important; font-size: 12px; font-weight: normal; text-align: center; margin-top: 2px; letter-spacing: 0.2px; }

/* 오프캔버스(슬라이드 메뉴) */
#offcanvas { position: fixed; top: 0; right: 0; width: 85vw; max-width: 400px; height: 100vh; background: #fff; z-index: 99999; box-shadow: -4px 0 24px rgba(0,0,0,0.12); transform: translateX(100%); transition: transform 0.32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
#offcanvas.show { transform: translateX(0); }
.offcanvas-header { height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; padding: 0 18px; background: #fff; }
.offcanvas-login { font-size: 15px; color: #fff; font-weight: 500; background: #444a6a; border: 1.5px solid #444a6a; border-radius: 7px; padding: 8px 20px; box-shadow: none; cursor: pointer; transition: background 0.18s, color 0.18s, border 0.18s; }
.offcanvas-login:hover { background: #fff; color: #444a6a; border-color: #444a6a; }
.offcanvas-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; font-size: 32px; color: #888; cursor: pointer; padding: 0; margin-right: -4px; position: relative; }
.offcanvas-close.rotate-anim { border: none; background: transparent !important; border-radius: 8px; outline: none !important; box-shadow: none !important; }
.offcanvas-close.rotate-anim:active, .offcanvas-close.rotate-anim:focus { background: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; }
.offcanvas-content { 
  padding: 0 14px 40px 14px;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 60px; /* 삼성 방식: 푸터 공간 확보 */
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 20%);
}
.offcanvas-stat { background: linear-gradient(135deg, #f7f8fa 60%, #e9eafc 100%); border-radius: 16px; padding: 22px 18px; box-shadow: 0 4px 18px rgba(102,126,234,0.08); margin-bottom: 14px; border: 1.5px solid #e0e4f7; display: flex; flex-direction: column; gap: 12px; }
.offcanvas-stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 500; }
.offcanvas-stat-label { color: #444a6a; font-weight: 600; letter-spacing: 0.1px; }
.offcanvas-stat-value { color: #667eea; font-size: 16px; font-weight: 700; letter-spacing: 0.1px; }
@media (max-width: 480px) { #offcanvas { max-width: 100vw; } }

/* 🔥 오프캔버스 푸터 - 텍스트 확실히 보이게 */
.offcanvas-footer {
  padding: 20px !important;
  border: 3px solid #ffff00 !important; /* 노란 테두리로 확인 */
  background-color: #444a6a !important;
  height: auto !important;
  display: block !important;
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 85vw !important;
  max-width: 400px !important;
  z-index: 99998 !important;
  transform: translateX(100%) !important; /* 기본적으로 숨김 */
  transition: transform 0.32s cubic-bezier(.4,0,.2,1) !important;
  font-family: Arial, sans-serif !important;
  line-height: 1.5 !important;
}

/* 오프캔버스가 열릴 때만 푸터 표시 */
#offcanvas.show ~ .offcanvas-footer {
  transform: translateX(0);
}

/* 🚀 새로운 푸터 애니메이션 */
#offcanvas.show ~ .my-custom-footer-2025 {
  transform: translateX(0) !important;
}

/* CSS transition은 JavaScript에서 제어 */

@media (max-width: 480px) { 
  .offcanvas-footer { 
    width: 100vw;
    max-width: 100vw;
  } 
}

.offcanvas-footer .offcanvas-menu-list {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  list-style: none !important;
  padding: 0 !important;
}

.offcanvas-footer .offcanvas-menu-item {
  border-bottom: none !important;
  display: block !important;
}

.offcanvas-footer .offcanvas-menu-link {
  display: flex !important;
  align-items: center !important;
  padding: 8px 0 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.offcanvas-footer .offcanvas-menu-link:hover {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
}

.offcanvas-footer .offcanvas-menu-icon {
  margin-right: 8px !important;
  font-size: 1.2em !important;
  color: #fff !important;
  display: inline-block !important;
}

.offcanvas-footer .offcanvas-menu-link span {
  color: #fff !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
  background-color: rgba(255,0,0,0.3) !important; /* 빨간 배경으로 확인 */
  padding: 5px !important;
}



/* 현대적인 버튼 스타일 */
.modern-btn {
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.login-btn {
  background: #fff;
  color: #444a6a;
  border: 2px solid #fff;
}

.login-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.logout-btn {
  background: #ff4757;
  color: #fff;
  border: 2px solid #ff4757;
}

.logout-btn:hover {
  background: transparent;
  color: #ff4757;
  border-color: #ff4757;
}

.edit-btn {
  background: #5dade2;
  color: #fff;
  border: 2px solid #5dade2;
}

.edit-btn:hover {
  background: transparent;
  color: #5dade2;
  border-color: #5dade2;
}

#auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 저작권 정보 */
.offcanvas-copyright {
  text-align: center;
  color: #888;
  font-size: 11px;
  font-weight: 500;
  margin-top: 20px;
  padding: 16px 0 12px 0;
  border-top: 1px solid #f0f4ff;
  letter-spacing: 0.3px;
}

.offcanvas-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(44, 48, 70, 0.38); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.offcanvas-backdrop.show { opacity: 1; pointer-events: auto; }

/* 오프캔버스 열렸을 때 body 스크롤 방지 */
body.offcanvas-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.rotate-anim { animation: rotate360 0.45s linear 1; }
@keyframes rotate360 { 100% { transform: rotate(360deg); } }

.bottomsheet-backdrop { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(44,48,70,0.32); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.bottomsheet-backdrop.show { opacity: 1; pointer-events: auto; }
#bottomsheet { position: fixed; left: 0; bottom: 64px; width: 100%; max-width: 430px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -4px 24px rgba(44,48,70,0.10); z-index: 9999; transform: translateY(100%); transition: transform 0.32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
#bottomsheet.show { transform: translateY(0); }
.bottomsheet-bar { width: 44px; height: 5px; background: #e0e4f7; border-radius: 3px; margin: 12px 0 16px 0; }
.bottomsheet-header { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 40px; border-bottom: 2px solid #f0f1f6; font-size: 20px; font-weight: 800; color: #444a6a; background: #fff; }
#bottomsheet-title, .bottomsheet-title { flex: 1; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 800; color: #444a6a; letter-spacing: -0.5px; margin-left: 18px; }
.bottomsheet-close { width: 44px; height: 44px; background: none; border: none; font-size: 28px; color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: background 0.18s, color 0.18s; margin-left: 8px; margin-right: 12px; }
.bottomsheet-close:hover { background: #f4f7ff; color: #444a6a; }
.bottomsheet-body { width: 100%; padding: 32px 22px 44px 22px; font-size: 17px; color: #444a6a; text-align: center; font-weight: 600; }
@media (max-width: 480px) { #bottomsheet { max-width: 100vw; } }

/* URL 복사 섹션 스타일 (C1001.php와 100% 동일) */
.url-copy-section {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
  box-sizing: border-box;
  max-width: 100%;
}

.url-copy-header {
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
  text-align: left;
  font-weight: 500;
}

.url-copy-input {
  display: flex;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.url-copy-input:focus-within {
  border-color: #444a6a;
  box-shadow: 0 0 0 2px rgba(68, 74, 106, 0.1);
}

.url-copy-input input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  outline: none;
  background-color: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.url-copy-button {
  background-color: #444a6a;
  color: white;
  border: none;
  padding: 0 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  font-weight: 500;
}

.url-copy-button:hover {
  background-color: #3a4060;
}

.url-copy-button:active {
  background-color: #2f3550;
}

.copy-message {
  margin-top: 10px;
  font-size: 13px;
  color: #444a6a;
  display: none;
  animation: fadeIn 0.3s ease;
  text-align: left;
  padding-left: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* C1001 오프캔버스 실시간 시계 영역 */
.clock-container {
  margin: 0 -14px 16px -14px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #f8fbff 0%, #e8f2ff 100%) !important;
  border-radius: 0 !important;
  width: calc(100% + 28px) !important;
  box-sizing: border-box !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.real-time-clock {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-size: 20px !important;
  color: #2c3e50 !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-feature-settings: 'tnum' 1 !important;
}



#currentDateTime {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}

@keyframes blink {
  0%, 100% {
    border-color: transparent !important;
  }
  50% {
    border-color: #444a6a !important;
  }
}

/* C1001 오프캔버스 통계 영역 개선 */
.stats-container {
  margin-bottom: 16px !important;
  padding: 20px 16px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  border-radius: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: 1px solid #e8f0ff !important;
  box-shadow: 0 2px 12px rgba(68, 74, 106, 0.08) !important;
}

.stats-container:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(68, 74, 106, 0.12) !important;
}

.stats-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #444a6a !important;
  margin-bottom: 15px !important;
  display: block !important;
}

.stats-content {
  display: block !important;
  height: auto !important;
  opacity: 1 !important;
  margin: 0 !important;
  transition: none !important;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  border-bottom: 1px solid #f0f0f0;
  pointer-events: none !important;
}

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

.stats-label {
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

.stats-value {
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

/* C1001 오프캔버스 명언 영역 */
.quotes-container {
  background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(68, 74, 106, 0.08);
  margin-bottom: 16px;
  padding: 20px 18px;
  border: 1px solid #f0f4ff;
  transition: all 0.3s ease;
}

.quotes-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(68, 74, 106, 0.12);
}

.quotes-title {
  color: #444a6a;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.quotes-title i {
  margin-right: 8px;
  color: #444a6a;
}

.quote-text {
  font-size: 15px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 10px;
  font-style: italic;
  transition: opacity 0.3s ease;
}

.quote-author {
  font-size: 14px;
  color: #666;
  text-align: right;
  font-weight: 500;
  margin-bottom: 10px;
  transition: opacity 0.3s ease;
}

.quote-refresh {
  text-align: center;
  margin-top: 10px;
}

.btn-refresh-quote {
  background-color: #f0f2f8;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-quote:hover {
  background-color: #444a6a;
  color: white;
}

.btn-refresh-quote i {
  margin-right: 5px;
}

/* C1001 유튜브 프로모션 영역 */
.youtube-promo-container {
  margin-bottom: 16px;
  text-align: center;
  padding: 8px;
  background: linear-gradient(135deg, #fafbfc 0%, #f5f8ff 100%);
  border-radius: 16px;
  border: 1px solid #e8f0ff;
  transition: all 0.3s ease;
}

.youtube-promo-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(68, 74, 106, 0.1);
}

.youtube-promo-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(68, 74, 106, 0.08);
  transition: all 0.3s ease;
}

.youtube-promo-image:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(68, 74, 106, 0.12);
}

/* 반응형 */
@media (max-width: 480px) {
  #offcanvas {
    max-width: 100vw;
  }
  
  #bottomsheet {
    max-width: 100vw;
  }
}
