/* D-Day */
.dday-container {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
}
.dday-item { display: inline-block; margin: 5px 10px; font-weight: bold; font-size: 1em; }
.dday-tag { background: rgba(255, 255, 255, 0.2); padding: 3px 8px; border-radius: 6px; font-size: 0.9em; }
.dday-count { color: #ffeb3b; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }

/* 급식 정보 */
.meal-container {
    margin-top: 30px;
    margin-bottom: 70px;
    padding: 15px;
    background: var(--bg-container);
    border-radius: 10px;
    border: 2px dashed var(--table-header);
    text-align: center;
}
.meal-title { font-weight: bold; color: var(--table-header); margin-bottom: 10px; display: block; font-size: 1.1em; }
.meal-content { font-size: 0.95em; color: var(--text-sub); line-height: 1.6; word-break: keep-all; }

/* 청소 조 정보 */
.cleaning-container {
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-body);
    border-radius: 10px;
    border: 2px solid #48bb78;
    text-align: center;
}
.cleaning-title { font-weight: bold; color: #2f855a; margin-bottom: 5px; display: block; }
.cleaning-group { font-size: 1.5em; font-weight: bold; color: #276749; }

/* 운세 */
.fortune-container {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-fortune);
    border-radius: 12px;
    border: 1px solid var(--border-fortune);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}
.fortune-title { font-weight: bold; color: #e91e63; margin-bottom: 10px; display: block; font-size: 1.1em; }
.fortune-content { font-size: 0.95em; color: var(--text-fortune); line-height: 1.6; min-height: 1.6em; }
.fortune-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.fortune-btn:disabled { background-color: #ccc; cursor: not-allowed; }

/* 반응형 컴포넌트 */
@media screen and (max-width: 600px) {
    .dday-container { padding: 10px; }
    .dday-item { margin: 3px 8px; font-size: 0.85em; }
}

/* 갤러리 스타일 */
.gallery-container {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-container);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.gallery-title { font-weight: bold; color: var(--table-header); margin-bottom: 15px; display: block; font-size: 1.1em; }
.gallery-lock { padding: 20px; background: var(--table-even); border-radius: 10px; }
.lock-input-wrapper { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.unlock-btn { padding: 5px 15px; background: var(--table-header); color: white; border: none; border-radius: 5px; cursor: pointer; }

.gallery-notice {
    font-size: 0.85em;
    color: var(--text-sub);
    margin-bottom: 15px;
    word-break: keep-all;
}

.gallery-upload { margin-bottom: 20px; }
.upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--table-header);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.gallery-item .video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none; /* 아이콘이 클릭을 방해하지 않도록 설정 */
    opacity: 0.8;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    /* 이미지 보호 스타일 */
    user-select: none;
    -webkit-user-drag: none;
}
.gallery-item:hover img { transform: scale(1.1); }

@media screen and (max-width: 600px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}
.modal-content {
    display: block;
    max-width: 95%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    cursor: default;
    animation: zoomIn 0.3s ease;
    /* 모달 이미지 보호 스타일 */
    user-select: none;
    -webkit-user-drag: none;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* 모달 네비게이션 버튼 */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s;
    user-select: none;
    z-index: 2001;
    border-radius: 5px;
}
.modal-nav:hover { background: rgba(255, 255, 255, 0.3); }
.modal-nav.prev { left: 20px; }
.modal-nav.next { right: 20px; }

.modal-index {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 스터디 윗 미 스타일 */
.study-container {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-container);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.study-title { font-weight: bold; color: var(--table-header); margin-bottom: 15px; display: block; font-size: 1.1em; }
.study-count { font-size: 0.9em; color: var(--text-sub); margin-bottom: 15px; }
.study-input-group { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.study-input-group input { 
    width: auto; padding: 8px 12px; font-size: 0.9em; 
    border: 1px solid var(--border-color);
}
.study-start-btn { 
    padding: 8px 20px; background: var(--table-header); color: white; 
    border: none; border-radius: 8px; cursor: pointer; font-weight: bold;
}
.study-list { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    max-height: 400px; /* 리스트 최대 높이 설정 */
    overflow-y: auto;  /* 세로 스크롤 추가 */
    padding-right: 5px;
}
.study-list::-webkit-scrollbar { width: 6px; }
.study-list::-webkit-scrollbar-thumb { 
    background-color: var(--table-header); 
    border-radius: 10px; 
}
.study-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 15px; background: var(--table-even); border-radius: 10px;
    animation: slideIn 0.3s ease;
}
.study-info { text-align: left; }
.study-name { font-weight: bold; color: var(--text-main); margin-right: 8px; }
.study-subject { font-size: 0.9em; color: var(--table-header); }
.study-timer { font-family: 'Courier New', Courier, monospace; font-weight: bold; color: #e91e63; font-size: 1.1em; }
.study-stop-btn {
    background: none; border: 1px solid #ff4d4f; color: #ff4d4f;
    padding: 3px 8px; border-radius: 5px; cursor: pointer; font-size: 0.8em;
    transition: all 0.2s;
}
.study-stop-btn:hover { background: #ff4d4f; color: white; }

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

@media screen and (max-width: 600px) {
    .study-input-group { flex-direction: column; align-items: stretch; }
    .study-input-group input { width: 100%; box-sizing: border-box; }
}

/* 챗봇 스타일 */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--table-header);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1500;
    transition: transform 0.3s;
}
.chatbot-toggle-btn:hover { transform: scale(1.1); }

.chatbot-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    height: 650px;
    max-height: 80vh;
    background: var(--bg-container);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex; /* 항시 display 상태 유지 */
    flex-direction: column;
    overflow: hidden;
    z-index: 1501;
    border: 1px solid var(--border-color);

    /* 애니메이션 기본 상태: 숨김 및 축소 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
    pointer-events: none; /* 닫혀있을 때 클릭 방지 */
}

.chatbot-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

@media screen and (min-width: 1024px) {
    .chatbot-panel {
        width: 600px;
        height: 850px;
        max-height: 85vh;
    }
}

.chatbot-header { background: var(--table-header); color: white; padding: 15px; display: flex; justify-content: space-between; font-weight: bold; }
.chatbot-header-btns { display: flex; gap: 10px; align-items: center; }
.clear-chat-btn { background: none; border: none; color: white; font-size: 16px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.clear-chat-btn:hover { opacity: 1; }
.close-chat { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.message {
    padding: 8px 15px; /* 위아래 패딩을 다시 조금 늘려 여유를 줍니다. */
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.95em;
    line-height: 1.5; /* 줄 간격을 1.5로 높여 가독성을 확보합니다. */
    word-break: break-all;
}

.message.user {
    line-height: 1.3; /* 사용자 메시지는 조금 더 촘촘해도 괜찮습니다. */
    padding: 6px 12px;
    background: var(--table-header);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message.ai {
    line-height: 1.6; /* 긴 답변을 읽기 편하도록 줄 간격을 넉넉히 줍니다. */
    padding: 12px 16px; /* 박스 내부 여백을 넓혀 고급스러운 느낌을 줍니다. */
    background: #f0f4f8;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
body.dark-mode .message.ai { background: #2d333b; } /* 다크모드용 자연스러운 톤 */

.message img { max-width: 100%; border-radius: 10px; margin-top: 5px; }

/* 메신저 스타일 이미지 첨부 */
.chat-image {
    display: block;
    max-width: 220px;
    max-height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2px;
    cursor: pointer;
}
.chat-image-caption {
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 0.95;
}
.message.user.image-only {
    background: transparent;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}
.message.user.image-only .chat-image {
    max-width: 220px;
    max-height: 280px;
    border-radius: 16px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 마크다운 스타일 보완 */
.message p { 
    margin: 0 !important; 
    padding: 0 !important; 
    line-height: inherit; 
}
.message p + p { 
    margin-top: 10px !important; /* 문단 사이의 간격은 확실히 벌려줍니다. */
}
.message.ai h1, .message.ai h2, .message.ai h3 { font-size: 1.1em; margin: 10px 0 5px; }
.message.ai ul, .message.ai ol { padding-left: 20px; margin: 5px 0; }
.message.ai code { 
    background: rgba(0,0,0,0.1); padding: 2px 4px; border-radius: 4px; font-family: monospace; 
}
.message.ai pre { 
    background: rgba(0,0,0,0.1); padding: 10px; border-radius: 8px; overflow-x: auto; margin: 10px 0; 
}

/* 수식 스타일 (LaTeX) */
.message.ai .katex-display {
    margin: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.message.ai .katex {
    font-size: 1.05em;
    color: var(--text-main);
}

/* 마크다운 표 스타일 추가 */
.message.ai table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 0.9em;
}
.message.ai th, .message.ai td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}
.message.ai th {
    background-color: var(--table-header);
    color: white;
}

.chat-input-area { 
    padding: 8px; 
    border-top: 1px solid var(--border-color); 
    background: var(--bg-container); 
}

.ai-image-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    animation: slideUp 0.2s ease;
}

.ai-image-preview img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.remove-preview {
    background: #ff4d4f; color: white; border: none; border-radius: 50%;
    width: 20px; height: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* AI 공부 도우미 대화 기록 모달 */
.study-history-overlay {
    position: fixed; z-index: 3000; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
}
.study-history-panel {
    background: var(--bg-container);
    border-radius: 16px;
    width: 90%; max-width: 460px;
    max-height: 78vh;
    display: flex; flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: zoomIn 0.2s ease;
}
.study-history-header {
    background: var(--table-header);
    color: white;
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; font-size: 0.95em;
    flex-shrink: 0;
}
.study-history-list {
    flex: 1; overflow-y: auto; padding: 10px;
    display: flex; flex-direction: column; gap: 8px;
}
.study-history-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.study-history-item:hover { background: var(--hover-color, #e8f0fe); transform: translateY(-1px); }
.study-history-date { font-size: 0.78em; color: var(--text-sub, #888); margin-bottom: 4px; }
.study-history-preview { font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.study-history-turns { font-size: 0.78em; color: var(--text-sub, #888); margin-top: 4px; }
.study-history-loading { text-align: center; padding: 40px 20px; color: var(--text-sub, #888); font-size: 0.9em; }
.study-history-empty { text-align: center; padding: 40px 20px; color: var(--text-sub, #888); font-size: 0.9em; }
.study-history-top-row { display: flex; justify-content: space-between; align-items: center; }
.study-history-delete-btn {
    background: none; border: none; cursor: pointer;
    font-size: 14px; opacity: 0.4; padding: 2px 4px;
    border-radius: 4px; transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
}
.study-history-delete-btn:hover { opacity: 1; background: rgba(255,77,79,0.12); }
@keyframes fadeOutSlide {
    to { opacity: 0; transform: translateX(20px); max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}

.ai-input-container {
    display: flex;
    align-items: flex-end; /* 입력창이 길어져도 아이콘은 하단에 고정 */
    gap: 10px;
    background: var(--bg-body);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.ai-input-container:focus-within {
    border-color: var(--table-header);
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.4); /* 부드러운 빛 효과 추가 */
}

.ai-text-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: var(--text-main);
    padding: 8px 4px;
    height: 36px;
    min-height: 36px;
    line-height: 1.4;
    resize: none;
    font-size: 0.95em;
    outline: none;
    font-family: 'Pretendard', sans-serif;
    overflow-y: hidden; /* 한 줄일 때는 스크롤바가 안 보이게 설정 */
    box-sizing: border-box; /* scrollHeight와 height 단위를 일치시킴 */
    margin-bottom: 2px; /* 하단 정렬 시 미세 조정 */
}

.ai-upload-label {
    display: flex;
    /* 수직, 수중 중앙 정렬 강제 */
    align-items: center; 
    justify-content: center;
    width: 40px;
    height: 36px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    /* 수정: line-height를 제거하거나 1로 설정 */
    line-height: 1; 
    transition: all 0.2s;
    /* 추가: 하단 여백 미세 조정 (입력창과 높이 맞춤) */
    margin-bottom: 2px; 
    flex-shrink: 0;
}

.ai-upload-label:hover { background: #e2e8f0; }
body.dark-mode .ai-upload-label { background: #2d3748; color: #e2e8f0; }
body.dark-mode .ai-upload-label:hover { background: #4a5568; }

/* 업로드 중 비활성화 스타일 */
.ai-upload-label.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.ai-send-btn {
    width: auto;
    min-width: 80px; /* 가로 길이를 충분히 확보하여 글자 잘림 방지 */
    padding: 0 12px;
    height: 36px;
    background: var(--table-header);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.9em;
}

.ai-send-btn:hover:not(:disabled) { transform: scale(1.1); background: #357ABD; }
.ai-send-btn:disabled { background: #ccc; cursor: not-allowed; }

.ai-loading { 
    margin-top: 10px; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.ai-loading-text {
    font-size: 0.8em;
    color: var(--table-header);
    font-weight: 500;
    opacity: 0.9;
}
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(74, 144, 226, 0.2);
    border-top: 3px solid var(--table-header);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-disclaimer {
    font-size: 0.7em;
    color: var(--text-sub);
    text-align: center;
    margin-top: 6px;
    opacity: 0.6;
}

/* 문의 패널 스타일 */
.contact-panel {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 2100;
}
.contact-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
}
.contact-content {
    position: relative; z-index: 1; width: 90%; max-width: 450px;
    background: var(--bg-container); border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); overflow: hidden;
    animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.contact-header {
    background: var(--table-header); color: white;
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    font-weight: bold;
}
.contact-body { padding: 25px; display: flex; flex-direction: column; gap: 15px; }
.contact-notice { font-size: 0.85em; color: var(--text-sub); line-height: 1.4; margin-bottom: 5px; }
.contact-body input, .contact-body textarea {
    padding: 12px; border: 1px solid var(--border-color); border-radius: 8px;
    background: var(--bg-body); color: var(--text-main); outline: none;
    font-family: inherit; font-size: 0.95em;
}
.contact-body input:focus, .contact-body textarea:focus { border-color: var(--table-header); }
.contact-submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, var(--table-header), #357ABD);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.contact-submit-btn:hover:not(:disabled) { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.4);
    filter: brightness(1.05); 
}
.contact-submit-btn:active:not(:disabled) {
    transform: translateY(-1px);
}
.contact-submit-btn.success {
    background: #48bb78 !important;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}
.contact-submit-btn:disabled { background: #ccc; cursor: not-allowed; }
.close-contact {
    background: none; border: none; color: white;
    font-size: 24px; cursor: pointer; line-height: 1;
}

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

/* Footer 문의하기 링크 디자인 */
.footer-contact-link {
    cursor: pointer;
    color: var(--text-sub);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.85em;
    display: inline-block;
}
.footer-contact-link:hover {
    background: var(--table-header);
    color: white;
    border-color: var(--table-header);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 업로드 프로그레스 스타일 */
.upload-progress-card {
    background: var(--bg-container);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.upload-warning {
    font-size: 0.85em;
    color: #e53e3e;
    margin: 10px 0 20px;
    font-weight: bold;
}

.progress-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background: var(--table-header);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* 생일 축하 배너 스타일 */
.birthday-banner {
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 50%, #a1c4fd 100%);
    color: #d63384;
    padding: 12px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 2px solid #ffccd5;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    animation: bannerGlow 2s infinite alternate;
    position: relative;
    z-index: 100;
    word-break: keep-all;
}

@keyframes bannerGlow {
    from { text-shadow: 0 0 5px #fff, 0 0 10px #ff9a9e; }
    to { text-shadow: 0 0 10px #fff, 0 0 20px #a1c4fd; }
}