/* Suda Web Base Styles */

/* Font Definitions */
/* Fonts are now dynamically loaded in HTML headers based on cdnDomain */
/*
@font-face {
  font-family: 'Chiron Hei HK';
  src: url('https://cdn.dev-sudatalk.kr/fonts/ChironHeiHK-subset.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chiron GoRound TC';
  src: url('https://cdn.dev-sudatalk.kr/fonts/ChironGoRoundTC-subset.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*/

/* 스크롤 flex 자식이 실제로 줄어들 수 있게 */
#scrollArea { min-height: 0; }

/* 하단/상단 안전영역 유틸 */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
.safe-top { padding-top: env(safe-area-inset-top); }

/* Global Font Settings */
body {
    font-family: 'Chiron Hei HK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 400; /* Regular */
    margin: 24px 16px; /* Safe Area: Top Right Bottom Left */
    background-color: #000000; /* Black background */
    color: #FFFFFF; /* White text */
}

/* Fallback for Chiron GoRound TC */
.rounded-font {
  font-family: 'Chiron GoRound TC', 'Chiron Hei HK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Typography Styles */
h1 {
  font-size: 32px;
  font-weight: 700; /* Bold */
}

h2 {
  font-size: 24px;
  font-weight: 550; /* SemiBold */
}

h3 {
  font-size: 20px;
  font-weight: 700; /* Bold */
}

.body-primary {
  font-family: 'Chiron GoRound TC', 'Chiron Hei HK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600; /* Regular */
  color: #0CABA8;
}

.body-secondary {
  font-size: 16px;
  font-weight: 400; /* Regular */
}

.caption {
  font-size: 14px;
  font-weight: 400; /* Regular */
}

/* Primary Button Styles */
.button-primary {
  font-family: 'Chiron GoRound TC', 'Chiron Hei HK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 550; /* SemiBold */
  height: 52px;
  border-radius: 26px; /* pill shape */
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  
  /* Default state */
  background-color: #0CABA8;
  color: #FFFFFF;
}

.button-primary:hover {
  background-color: #80D7CF;
  color: #0CABA8;
}

.button-primary:disabled {
  background-color: #353535;
  color: #8C8C8C;
  cursor: not-allowed;
}

.button-primary.loading {
  background-color: #0CABA8;
  color: transparent;
  position: relative;
}

.button-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  border-top-color: #80D7CF;
  animation: button-loading-spin 1s linear infinite;
}

.button-primary:active,
.button-primary.pressed {
  background-color: #FFFFFF;
  color: #0CABA8;
}

/* Loading animation */
@keyframes button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Secondary Button Styles */
.button-secondary {
  font-family: 'Chiron GoRound TC', 'Chiron Hei HK', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 550; /* SemiBold */
  height: 52px;
  width: 100%; /* Fill */
  border-radius: 26px; /* pill shape */
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  
  /* Default state */
  background-color: #FFFFFF;
  color: #000000;
}

.button-secondary:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.button-secondary:disabled {
  background-color: #353535;
  color: #8C8C8C;
  cursor: not-allowed;
}

.button-secondary.loading {
  background-color: #0CABA8;
  color: transparent;
  position: relative;
}

.button-secondary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  border-top-color: #80D7CF;
  animation: button-loading-spin 1s linear infinite;
}

.button-secondary:active,
.button-secondary.pressed {
  background-color: #0CABA8;
  color: #FFFFFF;
}

table {
  border: 1px solid white;
  border-collapse: collapse; /* 겹치는 선 합치기 */
}

th, td {
  border: 1px solid white;
  padding: 8px;
}
