body {
    font-family: 'Pretendard', sans-serif;
    background-color: #fcfcfc;
    color: #333;
}

.font-myeongjo {
    font-family: 'Nanum Myeongjo', serif;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
}

.navbar-brand,
.nav-link {
    color: #333 !important;
}

.page-header {
    padding: 100px 0 50px;
    background: linear-gradient(to bottom, #f4f1ec, #fcfcfc);
    text-align: center;
}

.board-page-container {
    margin-top: -20px;
    max-width: 900px;
}

.board-container {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.toolbar-panel {
    background: #faf8f5;
    border: 1px solid #f1ece5;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
}

.post-item {
    cursor: pointer;
    transition: 0.2s;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid transparent;
    border-bottom: 1px solid #f1f1f1;
}

.post-item:hover {
    background-color: #fcfcfc;
    border-color: #eee;
    transform: translateY(-2px);
}

.post-item:last-child {
    border-bottom-color: transparent;
}

.badge-prefix {
    background-color: #f4f1ec;
    color: #846a50;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 10px;
}

.badge-new {
    background: #fff3bf;
    color: #8a6100;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.post-preview {
    color: #868e96;
    font-size: 0.94rem;
    margin-top: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.post-side-meta {
    min-width: 80px;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c2520;
    box-shadow: none;
    background-color: #fff;
}

.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

#viewContent {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #444;
    white-space: pre-wrap;
    padding: 20px 0;
    min-height: 150px;
    max-height: 52vh;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #868e96;
}

.empty-state i {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
}

.custom-toast {
    border-radius: 16px;
    min-width: 280px;
}

.author-action-bar {
    display: none;
}

.write-helper {
    font-size: 0.88rem;
    color: #868e96;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .board-container {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .page-header {
        padding: 90px 0 40px;
    }

    .post-item {
        padding: 16px;
    }

    .post-item .d-flex.justify-content-between {
        gap: 12px;
        align-items: flex-start !important;
    }

    .toolbar-panel {
        padding: 14px;
    }

    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .custom-toast {
        min-width: auto;
        width: 100%;
    }
}