/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 새로운 현대적 컬러 팔레트 - Peach & Purple Theme */
    --primary-gradient: linear-gradient(135deg, #7c6fd6 0%, #5d4e99 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --peach-gradient: linear-gradient(135deg, #ffd4c4 0%, #ffb8a1 100%);
    
    --primary-color: #7c6fd6;
    --secondary-color: #5d4e99;
    --accent-color: #4facfe;
    --gold-color: #f6d365;
    --peach-light: #ffd4c4;
    --peach-medium: #ffb8a1;
    
    --bg-dark: #3d4c7a;
    --bg-medium: #1a1a2e;
    --bg-light: #16213e;
    --bg-peach: linear-gradient(135deg, #ffd4c4 0%, #ffc9b3 50%, #ffb8a1 100%);
    --card-bg: #ffffff;
    
    --text-white: #ffffff;
    --text-dark: #2d3748;
    --text-dark-blue: #2c4563;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --text-purple: #7c6fd6;
    
    --border-color: #e2e8f0;
    --border-light: #f0f4f8;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    --glow: 0 0 20px rgba(124, 111, 214, 0.4);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-peach);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 & 네비게이션 - 글래스모피즘 효과 */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    flex-direction: column; /* 세로로 배치 */
    gap: 0.5rem;
}

.navbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-row:first-child {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-row:last-child {
    justify-content: center; /* 두 번째 줄 가운데 정렬 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 40px; /* 오른쪽으로 이동 */
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0; /* 축소되지 않도록 */
    min-width: fit-content; /* 최소 너비 확보 */
}

/* 로고 이미지 스타일 */
.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    /* 투명 배경 그대로 유지 */
    background: transparent;
    /* 로고 색상을 레드로 변경 */
    filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7466%) hue-rotate(359deg) brightness(95%) contrast(118%);
}

.logo i {
    font-size: 1.588rem; /* 1.323rem * 1.2 = 1.588rem */
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo h1 {
    font-size: 1.235rem; /* 1.029rem * 1.2 = 1.235rem */
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
    transition: font-size 0.3s ease;
    white-space: nowrap; /* 기본은 한 줄 */
}

/* 영어 모드일 때 제목 20% 축소 */
[data-lang="en"] .logo h1 {
    font-size: 0.988rem; /* 1.235rem * 0.8 = 0.988rem (20% 축소) */
}

.logo-subtitle {
    font-size: 1.032rem; /* 0.86rem * 1.2 = 1.032rem (20% 증가) */
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #1d4ed8;
    opacity: 0.8;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    justify-content: center; /* 가운데 정렬 */
    width: 100%; /* 전체 너비 사용 */
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0.9rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    transform: translateY(-2px);
}

/* 사용자 정보 표시 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.2rem; /* 좌우 padding 20% 증가 (1rem → 1.2rem) */
    border-radius: 30px;
    white-space: nowrap;
    max-width: 600px; /* 최대 너비도 20% 증가 (500px → 600px) */
}

/* 사용자 아바타 (이니셜 원형) */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 111, 214, 0.3);
}

.user-avatar.admin-avatar {
    background: var(--gold-gradient);
    box-shadow: 0 2px 10px rgba(246, 211, 101, 0.5);
}

.welcome-text {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px; /* 최대 너비 제한 */
}

.welcome-text strong {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-badge {
    background: var(--gold-gradient);
    color: var(--text-white);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(246, 211, 101, 0.4);
    display: inline-block;
    white-space: nowrap;
}

.badge-separator {
    margin: 0 4px;
    opacity: 0.7;
}

.logout-btn {
    background: var(--secondary-gradient);
    color: var(--text-white);
    border: none;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* 언어 전환 버튼 */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem;
    border-radius: 15px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 32px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    transform: translateY(-2px);
}

/* 히어로 섹션 - 극적인 효과 */
.hero {
    position: relative;
    background: transparent;
    color: var(--text-dark-blue);
    padding: 80px 0 80px 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: gradientShift 10s ease infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 1;
    animation: fadeInDown 1s ease-out;
    line-height: 1.2;
    color: var(--text-dark-blue);
}

.hero-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 1rem auto 0;
    border-radius: 10px;
}

.hero-content h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    color: var(--text-dark-blue);
    animation: fadeInUp 1s ease-out 0.3s backwards;
    line-height: 1.1;
}

.verse {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out 0.6s backwards;
    line-height: 1.5;
}

.cta-button {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(124, 111, 214, 0.4);
    animation: fadeInUp 1s ease-out 0.9s backwards;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 111, 214, 0.6);
}

/* 섹션 공통 스타일 */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-dark-blue);
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--primary-gradient);
    margin: 1.5rem auto 0;
    border-radius: 10px;
    box-shadow: var(--glow);
}

/* 소개 섹션 - 카드 스타일 업그레이드 */
.about {
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.about-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.about-card:hover::before {
    opacity: 0.05;
}

.about-card:hover {
    box-shadow: var(--shadow-xl);
}

.about-card i {
    font-size: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* 모임 일정 - 미래적 디자인 */
.schedule {
    background: transparent;
    position: relative;
}

.schedule .section-title {
    color: var(--text-dark-blue);
}

.schedule .section-title::after {
    background: var(--primary-gradient);
}

.schedule .container {
    display: grid;
    gap: 2rem;
}

.schedule-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.schedule-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.schedule-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--border-light);
}

.schedule-header h3 {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.schedule-header i {
    font-size: 2rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-light);
    border-radius: 15px;
}

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

.schedule-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.schedule-item i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 60px;
    text-align: center;
}

.schedule-item h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.schedule-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

/* 기도 제목 & 간증 - 글래스모피즘 폼 */
.prayers, .testimonies {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* 회원가입 섹션 */
.register {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    position: relative;
}

/* 로그인 섹션 */
.login {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    position: relative;
}

.login-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.login-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-weight: 500;
}

.login-intro p:first-child {
    font-size: 1.4rem;
    font-weight: 700;
}

.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.link-text {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 보호된 콘텐츠 */
.protected-section {
    min-height: 400px;
}

.auth-required-message {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.auth-required-message i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.auth-required-message p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.register-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.register-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-weight: 500;
}

.register-intro p:first-child {
    font-size: 1.4rem;
    font-weight: 700;
}

.register-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.register-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-align: center;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
}

.required {
    color: #f56565;
    font-weight: 700;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.7rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.radio-label:hover {
    color: var(--primary-color);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-actions-center {
    text-align: center;
    margin-top: 2.5rem;
}

.member-list-section {
    margin-top: 4rem;
}

.member-list-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    max-width: 90%;
    margin: 0 auto;
}

.member-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.member-card.admin-member {
    border-left: 5px solid var(--gold-color);
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.08), rgba(253, 160, 133, 0.08));
}

.member-card:hover {
    box-shadow: var(--shadow-xl);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.member-card-header > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.member-icon.admin-icon {
    background: var(--gold-gradient);
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4);
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inline-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--text-white);
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(246, 211, 101, 0.4);
    white-space: nowrap;
}

.member-admin-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--text-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.3rem;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(246, 211, 101, 0.4);
    white-space: nowrap;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.member-info-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.member-info-item i {
    color: var(--primary-color);
    width: 20px;
}

.member-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-light);
    text-align: right;
}

.prayer-form-container,
.testimony-form-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.prayer-form-container h3,
.testimony-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-purple);
    font-weight: 700;
}

.input-field,
.textarea-field {
    width: 100%;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-dark);
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: #b0b0b0;
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 111, 214, 0.1);
}

.textarea-field {
    min-height: 180px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.submit-button {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 111, 214, 0.3);
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 111, 214, 0.5);
}

/* 기도 제목 & 간증 목록 - 프리미엄 카드 */
.prayer-list,
.testimony-list,
.notice-list {
    display: grid;
    gap: 2rem;
}

.prayer-item,
.testimony-item,
.notice-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left-width: 5px;
}

.prayer-item {
    border-left-color: var(--primary-color);
}

.testimony-item {
    border-left-color: #f5576c;
}

.prayer-item::before,
.testimony-item::before,
.notice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.prayer-item:hover,
.testimony-item:hover,
.notice-item:hover {
    box-shadow: var(--shadow-xl);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.item-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.item-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.item-meta i {
    color: var(--primary-color);
}

.item-content {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.item-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.action-button {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.action-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.action-button.delete:hover {
    background-color: #f56565;
    border-color: #f56565;
}

.action-button.pray-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-button.pray-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.action-button.pray-btn.prayed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.action-button.pray-btn.prayed:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* 간증 좋아요 버튼 - 페이스북 스타일 */
.action-button.like-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.action-button.like-btn:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.action-button.like-btn.liked {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.action-button.like-btn.liked:hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.action-button.like-btn i {
    transition: transform 0.3s ease;
}

.action-button.like-btn.liked i {
    animation: heartBeat 0.5s ease;
}

/* 간증 좋아요 카운트 */
.testimony-like-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    color: #4facfe;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.testimony-like-count i {
    font-size: 1.1rem;
    color: #4facfe;
}

/* 수정 버튼 스타일 */
.action-button.edit {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.action-button.edit:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-white);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* 모달 애니메이션 */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 하트 비트 애니메이션 */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.25);
    }
}

.prayer-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.prayer-count i {
    font-size: 1.1rem;
}

/* 공지사항 */
.notices {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.notice-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.notice-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.notice-item {
    border-left-color: var(--gold-color);
}

.notice-badge {
    background: var(--gold-gradient);
    color: var(--text-white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 관리자 페이지 */
.admin {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.admin-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.admin-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-weight: 500;
}

.admin-intro p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.admin-section h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    box-shadow: var(--shadow-xl);
}

.stat-card i {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 로딩 */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

/* 푸터 - 다크 모드 */
footer {
    background: var(--bg-dark);
    color: var(--text-white);
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
}

footer p {
    margin: 0.7rem 0;
    position: relative;
    z-index: 1;
}

footer p:first-child {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 맨 위로 버튼 - 네온 효과 */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--glow), 0 12px 35px rgba(102, 126, 234, 0.6);
}

.scroll-top-btn.show {
    display: flex;
    animation: bounceIn 0.5s ease-out;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out;
}

/* 햄버거 메뉴 버튼 (기본 숨김) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 35px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 8px;
}

.hamburger-menu span {
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--secondary-color);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--secondary-color);
}

/* 반응형 디자인 */

/* Z플립 5 최적화 (412px - 긴 세로형 화면) */
@media (max-width: 430px) and (min-height: 850px) {
    /* 긴 화면을 고려한 섹션 간격 */
    section {
        padding: 70px 0;
    }
    
    /* 네비게이션 메뉴 최적화 */
    .nav-menu {
        top: 65px;
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 65px);
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero {
        padding: 100px 0;
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content h3 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .verse {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 2.5rem;
    }
    
    .cta-button {
        padding: 1.1rem 2.5rem;
        font-size: 1.05rem;
    }
    
    /* 네비게이션 최적화 */
    header {
        padding: 0.8rem 0;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.55rem 0.9rem;
        font-size: 0.88rem;
    }
    
    /* 카드 레이아웃 최적화 */
    .about-card,
    .prayer-item,
    .testimony-item,
    .notice-item,
    .member-card {
        padding: 2rem 1.5rem;
    }
    
    /* 폼 요소 터치 친화적 크기 */
    .input-field,
    .textarea-field {
        padding: 1.1rem 1.3rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .submit-button,
    .action-button {
        min-height: 48px; /* 터치 최소 크기 */
        padding: 0.8rem 1.5rem;
    }
    
    /* 스크롤 버튼 위치 조정 */
    .scroll-top-btn {
        bottom: 30px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    /* 텍스트 가독성 향상 */
    .item-content,
    .about-card p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    /* 사용자 정보 영역 */
    .user-info {
        padding: 0.6rem 1.44rem; /* 좌우 20% 증가 (1.2rem → 1.44rem) */
        font-size: 0.88rem;
        gap: 0.6rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .welcome-text {
        font-size: 0.88rem;
    }
    
    .logout-btn {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }
    
    /* 우측 영역 간격 축소 */
    .navbar-right {
        gap: 0.5rem;
    }
    
    /* 언어 선택 버튼 크기 축소 */
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Z플립 등 소형 스마트폰 최적화 (400px 이하) */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    /* 네비게이션 메뉴 최적화 */
    .nav-menu {
        top: 60px;
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 60px);
    }
    
    .logo h1 {
        font-size: 1.147rem; /* 0.956rem * 1.2 = 1.147rem */
    }
    
    .logo i {
        font-size: 1.411rem; /* 1.176rem * 1.2 = 1.411rem */
    }
    
    .logo-subtitle {
        font-size: 0.794rem; /* 0.662rem * 1.2 = 0.794rem */
        letter-spacing: 1.2px;
    }
    
    .nav-link {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .hero-content h3 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .verse {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-card {
        padding: 2rem 1.5rem;
    }
    
    .about-card i {
        font-size: 3rem;
    }
    
    .about-card h3 {
        font-size: 1.4rem;
    }
    
    .schedule-card {
        padding: 1.5rem;
    }
    
    .schedule-header h3 {
        font-size: 1.5rem;
    }
    
    .schedule-item i {
        font-size: 2rem;
    }
    
    .input-field,
    .textarea-field {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .item-title {
        font-size: 1.3rem;
    }
    
    .item-content {
        font-size: 1rem;
    }
    
    .action-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .member-card {
        padding: 1.5rem;
    }
    
    .user-info {
        padding: 0.5rem 1.2rem; /* 좌우 20% 증가 (1rem → 1.2rem) */
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
    
    .welcome-text {
        font-size: 0.85rem;
    }
    
    .logout-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .admin-badge,
    .member-admin-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* 태블릿 및 일반 모바일 (768px 이하) */
/* 데이터 관리 스타일 */
.admin-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.data-management-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.button-group {
    background: rgba(124, 111, 214, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(124, 111, 214, 0.1);
}

.button-group h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.admin-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.export-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.import-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

.test-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

/* 일정 관리 스타일 */
.schedule-admin-controls {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.edit-btn {
    background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    color: #2c4563;
    box-shadow: 0 4px 12px rgba(255, 167, 81, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 167, 81, 0.4);
}

/* 모달이 display:block일 때 flex로 표시 */
.modal[style*="display: block"] {
    display: flex !important;
}

.import-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(245, 87, 108, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f5576c;
}

.operation-status {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: none;
}

.operation-status.success {
    display: block;
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 2px solid rgba(72, 187, 120, 0.3);
}

.operation-status.error {
    display: block;
    background: rgba(245, 87, 108, 0.1);
    color: #c53030;
    border: 2px solid rgba(245, 87, 108, 0.3);
}

.operation-status.info {
    display: block;
    background: rgba(66, 153, 225, 0.1);
    color: #2c5282;
    border: 2px solid rgba(66, 153, 225, 0.3);
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
    }
    
    .navbar-row:first-child {
        justify-content: space-between !important; /* 모바일에서 양쪽 정렬 */
        position: relative;
        align-items: center;
    }
    
    .navbar-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-between; /* 양쪽 정렬 */
        align-items: center;
        gap: 0;
        position: relative;
    }
    
    .logo {
        justify-content: flex-start; /* 왼쪽 정렬 */
        padding: 0.5rem 0;
        order: 1;
        flex: 0 0 auto;
        margin-left: 0;
        transform: scale(0.77); /* 10% 확대 (0.7 → 0.77) */
        transform-origin: left center; /* 왼쪽 기준으로 축소 */
    }
    
    .navbar-right {
        position: static; /* static으로 변경 */
        display: flex;
        align-items: center;
        gap: 0.5rem;
        order: 3; /* 세 번째로 변경 */
        transform: none;
    }
    
    /* 모바일 로고 이미지 */
    .logo-image {
        height: 35px; /* 모바일에서 크기 축소 */
        background: transparent;
        /* 로고 색상을 레드로 변경 */
        filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7466%) hue-rotate(359deg) brightness(95%) contrast(118%);
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    /* 모바일에서 영어 모드일 때 2줄로 표시 */
    [data-lang="en"] .logo h1 {
        line-height: 1.15;
        text-align: left;
    }
    
    .logo-subtitle {
        font-size: 0.6rem; /* 부제목도 함께 축소 */
    }
    
    /* 햄버거 메뉴 버튼 표시 */
    .hamburger-menu {
        display: flex; /* 모바일에서만 표시 */
        position: absolute; /* absolute로 변경 */
        left: 50%; /* 가운데 정렬 */
        transform: translateX(-50%); /* 정확한 중앙 */
        order: 2; /* 두 번째 순서 */
        background: rgba(255, 255, 255, 0.7);
        box-shadow: none;
    }
    
    /* 메뉴를 세로 드롭다운으로 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 auto; /* 가운데 정렬 */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        list-style: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 70px);
        padding: 1rem 0;
        opacity: 1;
        visibility: visible;
    }
    
    /* 스크롤바 스타일링 (Webkit 브라우저) */
    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        white-space: nowrap;
        text-align: center; /* 메뉴 항목 가운데 정렬 */
        width: 100%;
        border-radius: 0;
        transform: none !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-gradient);
        color: var(--text-white);
        transform: none !important;
    }
    
    .nav-link::before {
        display: none;
    }
    
    /* 모바일에서 사용자 정보를 두 번째 줄로 이동 */
    .navbar-right {
        position: static;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        order: 3;
        transform: none;
    }
    
    .user-info {
        position: fixed; /* 두 번째 줄 가운데로 이동 */
        left: 50%;
        top: 75px; /* 아래로 더 이동 (60px → 75px) */
        transform: translateX(-50%) scale(0.8); /* 전체 크기 80%로 축소 (20% 감소) */
        width: auto;
        display: flex;
        align-items: center; /* 세로 중앙 정렬 */
        justify-content: center;
        padding: 0.35rem 0.84rem; /* 좌우 20% 증가 (0.7rem → 0.84rem) */
        margin-top: 0;
        gap: 0.35rem;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 900;
        flex-wrap: nowrap; /* 줄바꿈 방지 */
        max-width: 95%;
        overflow-x: auto; /* 넘치면 스크롤 */
        white-space: nowrap;
        border: none; /* border 제거 */
        outline: none; /* outline 제거 */
        transform-origin: center top; /* 상단 중앙 기준으로 축소 */
    }
    
    /* 스크롤바 숨기기 (webkit 브라우저) */
    .user-info::-webkit-scrollbar {
        display: none;
    }
    
    /* 스크롤바 숨기기 (Firefox) */
    .user-info {
        scrollbar-width: none;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        flex-shrink: 0;
        /* 배경색과 일치시켜서 보이지 않게 */
        background: transparent !important;
        color: transparent !important;
        box-shadow: none !important;
    }
    
    .welcome-text {
        font-size: 0.65rem;
        max-width: none;
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center; /* 텍스트 세로 정렬 */
    }
    
    .admin-badge-group {
        display: inline-flex;
        align-items: center; /* 배지들 세로 정렬 */
        gap: 0.25rem;
        flex-wrap: nowrap; /* 줄바꿈 방지 */
        flex-shrink: 0;
    }
    
    .admin-badge {
        padding: 0.15rem 0.4rem;
        font-size: 0.6rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center; /* 배지 내용 세로 정렬 */
        line-height: 1;
    }
    
    .logout-btn {
        padding: 0.25rem 0.7rem;
        font-size: 0.65rem;
        white-space: nowrap;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center; /* 버튼 텍스트 세로 정렬 */
        line-height: 1;
    }
    
    /* 언어 전환 버튼 모바일 */
    .language-switcher {
        width: auto; /* width: 100% 제거 */
        justify-content: flex-end; /* 오른쪽 정렬 */
        margin-top: 0;
        padding: 0.25rem; /* 데스크톱과 동일 */
    }
    
    .lang-btn {
        flex: 0 0 auto; /* flex: 1 제거 */
        padding: 0.3rem 0.6rem; /* 데스크톱과 동일 */
        font-size: 0.85rem; /* 데스크톱과 동일 */
        min-width: 32px; /* 데스크톱과 동일 */
    }

    .hero {
        padding: 60px 0 30px 0; /* 상단 여백 증가 */
    }

    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .hero-content h3 {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
    }

    .verse {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        padding: 2rem;
    }

    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .item-header {
        flex-direction: column;
    }

    .item-actions {
        flex-wrap: wrap;
    }

    .scroll-top-btn {
        width: 50px;
        height: 50px;
        bottom: 25px;
        right: 25px;
    }
    
    /* 데이터 관리 반응형 */
    .data-management-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .button-group {
        padding: 1.5rem;
    }
    
    .admin-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .admin-section {
        padding: 1.5rem;
    }
    
    .operation-status {
        padding: 1rem;
        font-size: 0.9rem;
    }
}
