/* ================================================================
   가꿈미디어 웹앱 - 메인 스타일시트
   반응형 디자인 (모바일 우선)
   ================================================================ */

/* 기본 설정 - 키즈 친화적 밝은 톤 */
:root {
    --primary-color: #7EC850;      /* 밝은 연두색 */
    --primary-dark: #6BAA42;       /* 어두운 연두색 (hover용) */
    --secondary-color: #FFA726;    /* 따뜻한 오렌지 */
    --danger-color: #FF6B6B;       /* 부드러운 빨강 */
    --warning-color: #FFD93D;      /* 밝은 노랑 */
    --dark-color: #4A5568;         /* 부드러운 회색 */
    --light-color: #F0F9FF;        /* 하늘색 배경 */
    --border-color: #D1E7DD;       /* 연한 녹색 테두리 */
    --text-color: #2D3748;         /* 부드러운 검정 */
    --text-muted: #718096;         /* 회색 텍스트 */
    --bg-color: #F7FAFC;           /* 밝은 배경 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* 헤더 */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* 로그인/회원가입 페이지에서 로고 중앙 정렬 */
body:has(.auth-container) .header-inner,
.auth-page .header-inner {
    justify-content: center;
}

/* 로그인 페이지에서 불필요한 헤더 요소 숨기기 */
body:has(.auth-container) .header-user,
body:has(.auth-container) .header-nav,
body:has(.auth-container) .mobile-menu-btn,
.auth-page .header-user,
.auth-page .header-nav,
.auth-page .mobile-menu-btn {
    display: none;
}

.header-logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.header-logo .logo-image {
    height: 40px;
    width: auto;
    display: block;
}

/* 모바일에서 로고 크기 */
@media (max-width: 768px) {
    .header-logo .logo-image {
        height: 32px;
    }
}

.header-nav {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3C50E0 0%, #6366F1 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(60, 80, 224, 0.3);
}

.admin-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 80, 224, 0.4);
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    overflow: hidden;
}

.user-menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    list-style: none;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown li {
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown li:last-child {
    border-bottom: none;
}

.user-dropdown a,
.logout-btn {
    display: block;
    padding: 0.8rem 1rem;
    transition: background 0.3s;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.user-dropdown a:hover,
.logout-btn:hover {
    background: var(--light-color);
}

/* 모바일 메뉴 버튼 - 완전히 숨김 */
.mobile-menu-btn {
    display: none !important;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99;
}

.mobile-menu.show {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* 알림 메시지 */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    position: relative;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d5d8dc;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 폼 */
.form-group {
    margin-bottom: 1.5rem;
}

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

.required {
    color: var(--danger-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.8rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-text {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 카드 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .card-grid {
        gap: 0.8rem;
    }
}

.card-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--dark-color);
}

.card-content {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

/* 페이지 헤더 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.8rem;
}

/* 빈 상태 */
.empty-message,
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* 푸터 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: white;
}

/* 인증 페이지 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* 컴팩트 헤더 */
.auth-header.compact {
    margin-bottom: 1.5rem;
}

.auth-header.compact h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

/* 소셜 로그인 구분선 */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-divider span {
    padding: 0 1rem;
}

/* 소셜 로그인 버튼 */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-kakao {
    background-color: #FEE500;
    color: #3C1E1E;
}

.btn-kakao:hover {
    background-color: #FDD835;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-naver {
    background-color: #03C75A;
    color: white;
}

.btn-naver:hover {
    background-color: #02B350;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 모바일: 소셜 로그인 버튼 */
@media (max-width: 767px) {
    .social-login-buttons {
        gap: 0.6rem;
    }
    
    .btn-social {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-social svg {
        width: 18px;
        height: 18px;
    }
}

/* 로그인 폼 옵션 영역 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2rem 0;
    padding: 0.8rem 0;
    gap: 1.5rem;
}

/* 체크박스 라벨 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-color);
}

/* 비밀번호 찾기 링크 */
.forgot-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
}

.forgot-link::before {
    content: '';
    position: absolute;
    left: -0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: var(--border-color);
}

.forgot-link:hover {
    color: var(--primary-color);
}

/* 비밀번호 찾기 페이지 */
.forgot-password-info {
    margin: 2rem 0;
}

.info-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--border-color);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-value:hover {
    opacity: 0.7;
}

.info-notice {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-notice p {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

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

.info-notice li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.info-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

/* 역할 선택 버튼 그룹 */
.role-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.role-btn {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.role-btn:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.role-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* 폼 힌트 */
.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Select Box 스타일 */
select.form-control,
#center_select,
#class_select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

select.form-control:focus,
#center_select:focus,
#class_select:focus {
    outline: none;
    border-color: var(--primary-color);
}

select.form-control:disabled,
#center_select:disabled,
#class_select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 신규 입력 필드 */
#new_center_name,
#new_class_name {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--warning-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fffbf0;
}

#new_center_name:focus,
#new_class_name:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* 메인 페이지 */
.main-welcome {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.main-welcome h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0rem;
}

.sparkle-icon {
    color: rgba(122, 201, 67, 0.6);
    font-size: 0.9em;
    margin: 0 0.3rem;
    display: inline-block;
}

/* 메뉴 리스트 래퍼 */
.menu {
    display: grid;
    gap: 16px;
    padding: 12px 16px;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

/* 메뉴 카드 버튼 */
.menu-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    background: white;
    border: 2px solid rgba(122, 201, 67, 0.25);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    min-height: 96px;
}

.menu-item:active {
    transform: scale(0.99);
}

.menu-item:hover {
    border-color: rgba(122, 201, 67, 0.45);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* 왼쪽 아이콘 패널 */
.menu-icon {
    height: 100%;
    background: var(--primary-color);
    color: #fff;
    display: grid;
    place-items: center;
}

.menu-icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

/* 오른쪽 텍스트 */
.menu-text {
    padding: 16px 18px;
    line-height: 1.15;
}

.menu-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-color);
}

.menu-sub {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.main-section {
    margin-bottom: 2.5rem;
}

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

.section-header h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
}

/* 검색 폼 */
.search-box {
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.85rem;
    transition: border-color 0.3s;
}

.search-form input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-search {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background: #6DB840;
    transform: translateY(-1px);
}

/* 게시글 목록 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    overflow: hidden;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.post-link {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.4;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}

.post-preview {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.8rem 0;
    /* 여러 줄 표시 (최대 3줄) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
}

.post-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-meta span {
    font-size: 0.7rem;
    color: white;
    background: var(--secondary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 15px;
    font-weight: 500;
}

.post-meta span:nth-child(1) {
    background: var(--primary-color);
}

.post-meta span:nth-child(2) {
    background: #7E8C9A;
}

.post-meta span:nth-child(3) {
    background: var(--secondary-color);
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-light);
    font-weight: 500;
}

/* 모바일 페이지네이션 최적화 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.4rem;
        margin-top: 2rem;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 0.6rem;
        font-size: 0.85rem;
    }
}

/* ================================================================
   게시글 상세보기
   ================================================================ */

/* 상세보기 컨테이너 */
.post-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* 상세보기 헤더 */
.post-detail-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

/* 브레드크럼 */
.post-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.post-breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.post-breadcrumb a:hover {
    color: #6DB840;
}

/* 제목 */
.post-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 메타 정보 */
.post-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.post-detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--light-color);
    border-radius: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.post-detail-meta span:first-child {
    background: var(--primary-color);
    color: white;
}

/* 본문 */
.post-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 2rem 0;
    min-height: 200px;
}

/* 리치 텍스트 에디터로 작성된 내용 스타일 */
.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.post-detail-content table td,
.post-detail-content table th {
    border: 1px solid #E2E8F0;
    padding: 0.5rem;
}

.post-detail-content table th {
    background: #F8FAFC;
    font-weight: 600;
}

.post-detail-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-detail-content a:hover {
    color: var(--primary-dark);
}

.post-detail-content ul,
.post-detail-content ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.post-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #64748B;
    font-style: italic;
}

/* 첨부 이미지 */
.post-media {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.media-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 액션 버튼 */
.post-actions {
    display: flex;
    gap: 0.8rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-scrap {
    background: white;
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
    transition: all 0.3s;
}

.btn-scrap:hover {
    background: var(--warning-color);
    color: white;
}

.btn-scrap.active {
    background: var(--warning-color);
    color: white;
}

.scrap-icon {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

/* 댓글 섹션 */
.comments-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 12px;
}

.comments-section h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

/* 댓글 작성 폼 */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .btn {
    align-self: flex-end;
    min-width: 120px;
}

/* 댓글 목록 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 댓글 아이템 */
.comment-item {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

.comment-header strong {
    color: var(--dark-color);
    font-size: 0.95rem;
}

.comment-header span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--danger-color);
}

/* 네비게이션 */
.post-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.95rem;
}

/* 모바일 기본 최적화 */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .admin-link-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 2.0rem 0;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    /* 모바일: 사용자 드롭다운 메뉴 스타일 개선 */
    .user-dropdown {
        min-width: 180px;
        max-width: calc(100vw - 2rem);
        right: 0;
        left: auto;
    }
    
    .user-dropdown a,
    .logout-btn {
        color: #1E293B !important;
        font-size: 0.9rem;
        padding: 0.9rem 1rem;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .logout-btn {
        color: #DC2626 !important;
        font-weight: 600;
    }
    
    .user-dropdown a:hover,
    .logout-btn:hover {
        background: #F1F5F9;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* 로그인 폼 옵션 - 모바일 */
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .forgot-link::before {
        display: none;
    }
    
    .auth-container {
        padding: 0.5rem 0;
        min-height: calc(100vh - 120px);
    }
    
    .auth-box {
        padding: 1rem;
        /* margin: 0 0.5rem; */
    }
    
    .auth-header {
        margin-bottom: 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header img {
        width: 150px;
    }
    
    .main-welcome {
        text-align: center;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .main-welcome h2 {
        font-size: 1.4rem;
    }
    
    .sparkle-icon {
        font-size: 0.85em;
        margin: 0 0.25rem;
    }
    
    /* 모바일: 메인 페이지 메뉴 스타일 */
    .menu {
        padding: 12px 16px;
        gap: 16px;
        margin-bottom: 1rem;
    }
    
    .menu-item {
        grid-template-columns: 86px 1fr;
        min-height: 80px;
    }
    
    .menu-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .menu-title {
        font-size: 20px;
    }
    
    .menu-sub {
        font-size: 13px;
    }
    
    /* 작은 화면 최적화 */
    @media (max-width: 360px) {
        .menu-item {
            grid-template-columns: 80px 1fr;
        }
        
        .menu-title {
            font-size: 18px;
        }
        
        .menu-icon svg {
            width: 36px;
            height: 36px;
        }
    }
    
    /* 모바일: 메인 페이지에서 최근 게시글 목록 숨김 */
    .main-section {
        display: none;
    }
    
    .post-title {
        font-size: 1.05rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-date {
        font-size: 0.8rem;
    }
    
    .post-preview {
        font-size: 0.9rem;
    }
    
    .post-meta span {
        font-size: 0.7rem;
        padding: 0.25rem 0.7rem;
    }
    
    /* 모바일: 상세보기 반응형 */
    .post-detail {
        padding: 1.5rem;
    }
    
    .post-detail-title {
        font-size: 1.4rem;
    }
    
    .post-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-detail-content {
        font-size: 0.95rem;
        padding: 1.5rem 0;
    }
    
    .comments-section {
        padding: 1.5rem;
    }
    
    .comment-form textarea {
        min-height: 80px;
        font-size: 0.9rem;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .post-actions .btn {
        width: 100%;
    }
}

/* 반응형 - 태블릿 */
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .header-nav {
        display: block;
    }

    .user-info {
        display: flex;
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .header-logo .logo-image {
        height: 45px;
    }
    
    /* 태블릿/데스크톱: 빠른 액션 카드 가로 배치 + 목록 표시 */
    .quick-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* 태블릿/데스크톱: 메뉴 가로 배치 + 목록 표시 */
    .menu {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .menu-item {
        grid-template-columns: 96px 1fr;
    }
    
    .menu-icon svg {
        width: 44px;
        height: 44px;
    }
    
    .menu-title {
        font-size: 22px;
    }
    
    .menu-sub {
        font-size: 14px;
    }
    
    /* 태블릿/데스크톱: 최근 게시글 목록 표시 */
    .main-section {
        display: block;
    }
}

/* 반응형 - 데스크톱 */
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-logo .logo-image {
        height: 50px;
    }
}

/* ================================================================
   알림장 전용 스타일
   ================================================================ */

/* 알림장 필터 */
.bulletin-filter-box {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bulletin-filter-form .filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.75rem;
    background: white;
    color: var(--text-color);
    flex: 1;
    min-width: 0;
}

.filter-date {
    flex: 1.2;
    min-width: 120px;
}

.filter-year-month {
    flex: 1;
    min-width: 100px;
}

.filter-child {
    flex: 1.3;
    min-width: 120px;
}

.btn-filter {
    padding: 0.6rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-filter-icon,
.btn-filter-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.btn-filter:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(126, 200, 80, 0.3);
}

/* 알림장 목록 */
.bulletin-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 알림장 카드 - 새 디자인 */
.bulletin-card {
    display: flex;
    background: white;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem;
    transition: background 0.2s;
}

.bulletin-card:first-child {
    border-radius: 12px 12px 0 0;
}

.bulletin-card:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.bulletin-card:only-child {
    border-radius: 12px;
}

.bulletin-card:hover {
    background: #fafafa;
}

/* 날짜 섹션 */
.bulletin-date-section {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding-right: 1rem;
    border-right: 1px solid #eee;
    margin-right: 1rem;
}

.bulletin-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.bulletin-weekday {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* 내용 섹션 */
.bulletin-content-section {
    flex: 1;
    min-width: 0;
}

.bulletin-child-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.child-info-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulletin-child-info .child-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.bulletin-child-info .child-class {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
}

.bulletin-preview {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bulletin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.bulletin-author {
    font-weight: 500;
}

.bulletin-stats {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 플로팅 버튼 (FAB) */
.fab-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.3s;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

/* 기존 스타일 유지 */
/* 알림장 목록 아이템 (레거시) */
.bulletin-item {
    border-left: 4px solid var(--primary-color);
}

.bulletin-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.child-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.class-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.class-badge-large {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    margin-left: 1rem;
}

/* 알림장 상세 타이틀 */
.bulletin-detail-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 알림장 본문 */
.bulletin-content {
    line-height: 1.8;
    padding: 1.5rem;
    background: #FAFBFD;
    border-radius: 8px;
}

/* 알림장 폼 */
.bulletin-form .form-control {
    font-size: 1rem;
}

.readonly-field {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* 기존 알림장 경고 메시지 */
#existingBulletinAlert {
    display: none;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

#existingBulletinAlert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

#existingBulletinAlert #editLink {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #ffc107;
    color: #856404;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

#existingBulletinAlert #editLink:hover {
    background: #ffb300;
    color: #664d03;
}

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

.readonly-field strong {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* 작성 팁 */
.writing-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.writing-tips h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.writing-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.writing-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.writing-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 메타 정보 아이콘 스타일 */
.meta-teacher,
.meta-date,
.meta-views {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* 댓글 수 강조 */
.comment-count {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* 반응형 - 모바일 */
@media (max-width: 767px) {
    .bulletin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .child-name {
        font-size: 1rem;
    }
    
    .class-badge-large {
        margin-left: 0;
        font-size: 0.9rem;
    }
    
    .writing-tips {
        padding: 1rem;
    }
    
    .writing-tips h3 {
        font-size: 1rem;
    }
}

/* ================================================================
   프로필 페이지 스타일
   ================================================================ */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 120px;
    font-size: 0.95rem;
}

.info-value {
    flex: 1;
    color: var(--text-color);
    font-size: 1rem;
    word-break: break-word;
}

/* 회원 유형 뱃지 */
.role-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.role-badge.role-parent {
    background-color: #E3F2FD;
    color: #1976D2;
}

.role-badge.role-teacher {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

.role-badge.role-admin {
    background-color: #FFF3E0;
    color: #E65100;
}

.role-badge.role-org_admin {
    background-color: #FFF4E6;
    color: #F97316;
}

/* 자녀 정보 / 담당 반 섹션 */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.children-list,
.classes-list {
    list-style: none;
    padding: 0;
}

.children-list li,
.classes-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.children-list li:last-child,
.classes-list li:last-child {
    border-bottom: none;
}

.children-list strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.children-list span,
.classes-list span {
    color: var(--text-muted);
}

/* 프로필 메뉴 */
.profile-menu {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    text-align: left;
}

.profile-menu-item:last-child {
    margin-bottom: 0;
}

.profile-menu-item:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.profile-menu-item.text-danger {
    color: var(--danger-color);
}

.profile-menu-item.text-danger:hover {
    border-color: var(--danger-color);
    background: #FFF5F5;
}

.profile-menu-item span {
    font-weight: 500;
}

/* 반응형 - 모바일 */
@media (max-width: 767px) {
    .profile-card {
        padding: 1.5rem 1rem;
    }
    
    .info-label {
        min-width: 90px;
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 0.95rem;
    }
    
    .info-section {
        padding: 1.25rem 1rem;
    }
    
    .profile-menu-item {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
}

/* ================================================================
   프로필 수정 & 비밀번호 변경 페이지 스타일
   ================================================================ */

.profile-edit-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-edit-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 프로필 폼 */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
}

.profile-form .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.profile-form .form-control {
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 200, 80, 0.1);
}

.profile-form .form-control:disabled,
.profile-form .form-control:read-only {
    background-color: var(--bg-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.profile-form .form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.profile-form .text-success {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.profile-form .text-danger {
    color: var(--danger-color) !important;
}

.form-readonly {
    padding: 0.9rem 0;
}

/* 비밀번호 변경 안내 */
.password-info {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.password-info p {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.password-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.password-info li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.password-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* 폼 버튼 영역 */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    flex: 1;
}

/* 반응형 - 모바일 */
@media (max-width: 767px) {
    .profile-edit-card {
        padding: 1.5rem 1rem;
    }
    
    .profile-form {
        gap: 1.25rem;
    }
    
    .password-info {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }

    /* 알림장 모바일 */
    .bulletin-filter-form .filter-row {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .filter-select {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        flex: none;
        min-width: 0;
    }

    .filter-date {
        width: 35%;
    }

    .filter-year-month {
        width: 30%;
    }

    .filter-child {
        width: 30%;
    }

    .btn-filter {
        width: 100%;
    }

    .bulletin-card {
        padding: 0.75rem;
    }

    .bulletin-date-section {
        width: 50px;
        padding-right: 0.75rem;
        margin-right: 0.75rem;
    }

    .bulletin-day {
        font-size: 1.5rem;
    }

    .bulletin-weekday {
        font-size: 0.7rem;
    }

    .bulletin-child-info .child-name {
        font-size: 0.95rem;
    }

    .bulletin-preview {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .fab-button {
        bottom: 70px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* 태블릿 이상에서 알림장 필터 가로 배치 */
@media (min-width: 768px) {
    .bulletin-filter-form .filter-row {
        flex-wrap: nowrap;
    }

    .filter-select {
        max-width: 200px;
    }

    .btn-filter {
        width: auto;
    }
}

