/* ==========================================
   로그인 박스 전체 껍데기
   ========================================== */
   
.login-box {
    width: 400px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 50px auto;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    overflow: hidden;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.login-header h2 {
    margin: 0;
    font-size: 18px;
    color: #666;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.login-content {
    padding: 30px 25px;
}

/* ==========================================
   로그인 입력칸
   ========================================== */

.login-box .input-group {
    position: relative;
    margin-top: 15px; 
    margin-bottom: 25px;
}

.login-box .input-group input {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.login-box .input-group input:focus {
    border-bottom: 2px solid #38aae1 !important;
    outline: none !important;
}

.login-box .input-group input::placeholder {
    color: transparent; 
}

.login-box .input-group label {
    position: absolute;
    top: 10px;
    left: 5px !important;
    color: #b0b0b0;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.2s ease;
    margin: 0;
    display: inline;
}

.login-box .input-group input:focus ~ label,
.login-box .input-group input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 12px;
    color: #888;
    font-weight: bold;
    padding: 0;
}

/* ==========================================
   로그인 유지 & 찾기 영역
   ========================================== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
    color: #888;
}

.login-box .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #888;
}

.login-box .checkbox-label span,
.login-box .find-link {
    transition: color 0.2s ease;
    color: #888;
}

.login-box .checkbox-label:hover span,
.login-box .find-link:hover {
    color: #333;
}

.login-box .find-link {
    text-decoration: none;
}

/* ==========================================
   로그인 버튼
   ========================================== */
.login-box .btn-submit {
    width: 100%;
    background-color: #38aae1;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.login-box .btn-submit:hover {
    background-color: #287ba4;
}

/* ==========================================
   회원가입 문구 및 소셜 로그인
   ========================================== */
.signup-wrap {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 30px;
}

.signup-wrap a {
    color: #38aae1;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.signup-wrap a:hover {
    font-weight: bold;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider span {
    padding: 0 15px;
}

.social-login {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.social-btn {
    flex: 1;
    height: 45px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background-color: #fff;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-3px); 
}

.social-btn.ms { color: #00a4ef; }
.social-btn.google { color: #ea4335; }
.social-btn.kakao { background-color: #fee500; color: #3c1e1e; }
.social-btn.naver { background-color: #03c75a; color: #fff; font-weight: bold; font-family: Arial, sans-serif; font-size: 20px;}

/* ==========================================
   로그인 박스 다크모드
   ========================================== */
body.dark-mode .login-box {
    background-color: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body.dark-mode .login-header {
    border-bottom-color: #444;
}

body.dark-mode .login-header h2,
body.dark-mode .login-box .input-group input {
    color: #eee;
}

body.dark-mode .divider::before,
body.dark-mode .divider::after,
body.dark-mode .login-box .input-group input {
    border-color: #555;
}

body.dark-mode .social-btn {
    background-color: #333;
}

body.dark-mode .social-btn.kakao {
    background-color: #fee500;
}

body.dark-mode .social-btn.naver {
    background-color: #03c75a;
}

body.dark-mode .login-box .btn-submit {
    background-color: #287ba4 !important;
    border: none !important;
    color: #ffffff !important;
}

body.dark-mode .login-box .btn-submit:hover {
    background-color: #38aae1 !important;
}

body.dark-mode .login-box .input-group input {
    border-bottom: 1px solid #555 !important;
}

body.dark-mode .login-box .input-group input:focus {
    border-bottom: 2px solid #287ba4 !important; 
}

/* ==========================================
   로그인 팝업(모달) 애니메이션 효과
   ========================================== */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal-overlay .login-box {
    transform: translateY(-30px);
    transition: all 0.3s ease;
    margin: 0;
}

.login-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay.show .login-box {
    transform: translateY(0);
}

/*CSS 충돌방지 구문*/

#loginModal .input-group {
    position: relative;
    margin-top: 25px;
    margin-bottom: 20px;
}

#loginModal .input-group label {
    position: absolute;
    top: 10px;
    left: 0px !important;
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

#loginModal .input-group input:focus ~ label,
#loginModal .input-group input:not(:placeholder-shown) ~ label {
    top: -18px;
    left: 0px;
    font-size: 12px;
    font-weight: bold;
}

#loginModal .input-group input {
    width: 100% !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-sizing: border-box !important;
    padding: 10px 0px !important;
    color: #333 !important;
}

#loginModal .input-group input:focus {
    border-bottom: 2px solid #555 !important;
    outline: none !important;
}

body.dark-mode #loginModal .input-group input {
    background-color: transparent !important;
    border-bottom: 1px solid #555 !important;
    color: #eee !important;
}

body.dark-mode #loginModal .input-group input:focus {
    border-bottom: 2px solid #aaa !important;
}

body.dark-mode #loginModal .input-group input:-webkit-autofill,
body.dark-mode #loginModal .input-group input:-webkit-autofill:hover, 
body.dark-mode #loginModal .input-group input:-webkit-autofill:focus, 
body.dark-mode #loginModal .input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
    -webkit-text-fill-color: #eee !important;
    transition: background-color 5000s ease-in-out 0s;
}

body.dark-mode #loginModal .input-group label {
    color: #aaa;
}



/* 우측 상단 고정 컨테이너 */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* 개별 카드 디자인 */
.toast-notification {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 330px;
    box-sizing: border-box;
    cursor: pointer;
    animation: toastSlideIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-notification:hover {
    transform: translateY(-2px);
}

/* 알림 아이콘 */
.toast-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.toast-icon-box.comment {
    background-color: #e8f4fd;
    color: #3498db;
}
.toast-icon-box.admin {
    background-color: #fdf2e9;
    color: #e67e22;
}

/* 본문 텍스트 */
.toast-text-area {
    flex: 1;
    overflow: hidden;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.toast-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-time {
    font-size: 11px;
    color: #95a5a6;
    margin-left: 8px;
    flex-shrink: 0;
}

.toast-text-area p {
    margin: 0;
    font-size: 13px;
    color: #555555;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 📅 정기 공지 아이콘 박스 */
.toast-icon-box.regular {
    background-color: #ebf5fb;
    color: #2980b9;
}

/* 멘션 (@) 전용 아이콘 박스 */
.toast-icon-box.mention {
    background-color: #ecfeff !important;
    color: #0891b2 !important;
}

/* 🌟 질문 알림 전용 아이콘 박스 (퍼플) */
.toast-icon-box.qna {
    background-color: #f5f3ff;
    color: #8b5cf6;
}

/* 다크모드 대응 */
body.dark-mode .toast-icon-box.qna {
    background-color: #2e1065;
    color: #c4b5fd;
}

.mention-tag {
    color: #0284c7;
    background-color: rgba(2, 132, 199, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* 슬라이드 애니메이션 */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}