/* style.css */

/* 전체 페이지 스타일 */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
}

/* 헤더 스타일 */
header {
  background: linear-gradient(to right, #0062cc, #007bff);
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

header h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

/* 내비게이션 아이콘 */
.nav-icon {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* 메인 콘텐츠 스타일 */
.main-content {
  margin-top: 3rem;
  text-align: center;
}

.main-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.main-content p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.main-content .btn {
  font-size: 1.1rem;
  padding: 0.8rem 1.8rem;
}

/* 버튼 개선 */
.btn-primary {
  background: linear-gradient(45deg, #3a86ff, #4361ee);
  border: none;
  box-shadow: 0 4px 6px rgba(58, 134, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(58, 134, 255, 0.3);
}

/* 특징 카드 스타일 */
.feature-card {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  margin-bottom: 20px;
  background-color: white;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #3a86ff;
}

/* 푸터 스타일 */
footer {
  background-color: #343a40;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Test Class */
.test {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.test h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #343a40;
}

.test pre {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-wrap;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 4px;
}

/* Formatted Content */
.formatted-content {
  font-size: 18px;
  text-indent: 3em;
  line-height: 1.5;
  margin-bottom: 2em;
}

/* Table Style */
.table-striped tbody tr {
  padding-bottom: 2em;
}

.table {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.table thead {
  background-color: #e9ecef;
}

/* h1 central alignment */
h1 {
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
  width: 50%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Welcome section enhancement */
.welcome-section {
  background-color: #e9f2ff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Override inline styles with !important */
body {
  font-family: 'Roboto', Arial, sans-serif !important;
  line-height: 1.5 !important;
  margin: 20px !important;
}

.content {
  margin-bottom: 20px !important;
}

p {
  text-indent: 3em !important;
  margin-bottom: 1.5em !important;
}

h1, h2 {
  text-align: left !important;
}

/* Added for dashboard style */
.dashboard-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  background-color: white;
}

.dashboard-card-header {
  padding: 15px 20px;
  background-color: #f0f7ff;
  border-bottom: 1px solid #e0e0e0;
}

.dashboard-card-body {
  padding: 20px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .form-group input[type="text"],
  .form-group textarea {
    width: 100%;
  }

  .feature-card {
    margin-bottom: 15px;
  }
}

/* 네비게이션 바 개선 스타일 (한국어 버전에서 가져옴) */
.navbar .nav-link {
    font-size: 14px;
    padding: 0.5rem 0.7rem;
}

.navbar .dropdown-menu {
    font-size: 14px;
}

.navbar-brand img {
    height: 40px;
}

@media (max-width: 1200px) {
    .navbar .nav-link {
        font-size: 13px;
        padding: 0.5rem 0.5rem;
    }
}

/* 드롭다운 메뉴 헤더 스타일 */
.dropdown-header {
    font-weight: bold;
    color: #007bff;
    font-size: 13px;
}

/* 가입/로그인 버튼 스타일 */
.nav-item .btn {
    padding: 0.375rem 0.75rem;
    font-size: 14px;
}

/* 모바일 반응형 개선 */
@media (max-width: 992px) {
    .navbar-nav {
        padding-bottom: 1rem;
    }

    .navbar-nav .nav-item {
        text-align: left;
        padding: 0.5rem 0;
    }

    .navbar-nav .btn {
        width: 100%;
        text-align: left;
        margin: 0.5rem 0;
    }
}

/* Hide reCAPTCHA elements */
.g-recaptcha,
.grecaptcha-badge,
.g-recaptcha-response,
div[class*="g-recaptcha"],
iframe[src*="recaptcha"],
div[data-sitekey*="recaptcha"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Hide any reCAPTCHA related error messages */
.recaptcha-error,
.g-recaptcha-error,
[data-recaptcha-error],
div[id*="recaptcha-error"],
p[class*="recaptcha"] {
  display: none !important;
}
/* 언어 선택기 스타일 */
.language-bar {
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

/* 선택적: 언어 선택기에 추가 스타일을 원한다면 */
.language-bar select {
    border-radius: 4px;
    padding: 5px 10px;
}

.language-bar select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    border-color: #80bdff;
}

/* 선택적: 모바일 반응형 처리 */
@media (max-width: 768px) {
    .language-bar .d-flex {
        justify-content: center !important;
    }
}
