* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* 포항 동해 바다와 일출(청빛) 라이트 그라데이션 배경 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #e0f2fe 0%, #fef3c7 45%, #bae6fd 75%, #0284c7 100%);
    background-attachment: fixed;
    color: #0f172a;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(253, 186, 116, 0.35) 0%, rgba(244, 63, 94, 0.12) 45%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* 상단 헤더 */
header {
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
    z-index: 100;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(2, 132, 199, 0.08);
    color: #0369a1;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover, .nav-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.nav-btn.admin-only {
    background: #ef4444;
    color: #ffffff;
}

#user-info {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
}

/* 로그인 팝업 */
.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(14, 116, 144, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 50px;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 12px;
}

.login-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.login-card p.subtitle {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 25px;
}

.code-split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.code-split-container select {
    width: 85px;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%230284c7' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.code-split-container input {
    flex: 1;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-align: center;
    outline: none;
}

.hyphen-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: #64748b;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

/* 콘텐츠 영역 */
#content-area {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(14, 116, 144, 0.12);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
}

hr {
    margin: 15px 0 25px 0;
    border: none;
    border-top: 1.5px solid #e2e8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.info-card h3 {
    color: #0284c7;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.info-card p {
    font-size: 0.93rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 6px;
}

.schedule-input-box, .board-write-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.schedule-input-box input, .board-write-box textarea {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    outline: none;
    font-size: 0.95rem;
}

.sub-btn {
    padding: 12px 20px;
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.item-list, .posts-container {
    list-style: none;
}

.item-card {
    background: #f1f5f9;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.post-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.post-content {
    font-size: 0.98rem;
    color: #0f172a;
    line-height: 1.5;
}

.user-badge-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin-top: 15px;
}

.user-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #86efac;
}

/* 관리자 차단 영역 */
.admin-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 25px;
    border-radius: 16px;
}

.admin-desc {
    color: #991b1b;
    margin-bottom: 15px;
    font-weight: 600;
}

.blocked-list-container {
    margin-bottom: 20px;
}

.blocked-item {
    background: #ffffff;
    border: 1px solid #fecaca;
    padding: 12px 18px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.unblock-btn {
    padding: 6px 14px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.admin-reset-btn {
    width: 100%;
    padding: 12px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    background: #0284c7;
    color: white;
    margin-left: 8px;
}