/* =================================================================
   알림 (Notification) 스타일 - 모든 페이지 공용
   ================================================================= */

/* 알림 메시지들을 담는 컨테이너 */
#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001; /* ✨ 모달의 z-index(1001)보다 높은 값으로 수정 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 90%;
}

/* 개별 알림 메시지 스타일 */
.notification {
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    text-align: center;
    white-space: nowrap; /* 줄바꿈을 방지하는 코드 */
}

/* 알림이 화면에 표시될 때 적용될 스타일 */
.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* 성공 알림 (녹색) */
.notification.success {
    background-color: #28a745;
}

/* 오류 알림 (빨간색) */
.notification.error {
    background-color: #dc3545;
}

/* 정보 알림 (청록색) */
.notification.info {
    background-color: #17a2b8;
}

.text-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.text-btn:hover {
    color: #0056b3;
}