/* Top Notification Bar - 완전히 독립적인 최상단 레이어 */
.top-notification-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #2c3e50 !important;
    color: white !important;
    z-index: 2147483647 !important;
    padding: 8px 20px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.notification-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.notification-text {
    flex: 1;
    min-width: 200px;
    font-weight: 500;
    text-align: center;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.top-notification-bar .notification-actions .btn {
    font-size: 12px !important;
    padding: 4px 8px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    border: 1px solid !important;
}

.top-notification-bar .notification-actions .btn-primary {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: white !important;
}

/* influencer_notes.php 페이지에서 색상 강제 적용 */
.top-notification-bar .btn-primary,
.top-notification-bar .btn-primary:hover,
.top-notification-bar .btn-primary:focus,
.top-notification-bar .btn-primary:active {
    color: white !important;
    background-color: #3498db !important;
    border-color: #3498db !important;
}

.top-notification-bar .notification-actions .btn-primary:hover {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

.top-notification-bar .notification-actions .btn-secondary {
    background-color: transparent !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: white !important;
}

.top-notification-bar .notification-actions .btn-secondary:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.5) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

.close-notification {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 페이지별 body padding 조정 - 사이드바가 있는 페이지와 없는 페이지 구분 */

/* 기본 body padding (사이드바가 없는 페이지용) */
body {
    padding-top: 44px;
}

/* 사이드바가 있는 페이지들 - content-wrapper만 조정 */
.app-container .content-wrapper {
    padding-top: 20px;
}

/* 사이드바 자체는 공지 띠 아래에 위치 - 앱 컨테이너가 있는 페이지만 */
.app-container .sidebar {
    top: 44px !important;
    height: calc(100vh - 44px) !important;
}

/* 대시보드 특별 처리 - 사이드바 레이아웃과 충돌 방지 */
.dashboard-page body {
    padding-top: 44px;
}

.dashboard-page .content-wrapper {
    padding-top: 20px;
    margin-top: 0;
}

/* 다른 알림들은 공지 띠보다 아래에 표시되도록 */
.alert {
    position: relative;
    z-index: 1000 !important;
    margin-top: 0 !important;
}

.alert-dismissible {
    z-index: 1000 !important;
}

/* Bootstrap 모달과 알림이 제대로 표시되도록 - 공지띠보다는 낮게 */
/* .modal {
    z-index: 1002 !important;
}

.modal-backdrop {
    z-index: 1001 !important;
} */

/* 메모관리, 알림관리 페이지도 공지띠 최상위 유지 */
/* .memo-page .top-notification-bar,
.reminder-page .top-notification-bar {
    z-index: 2147483647 !important;
} */

/* 공지띠를 가릴 수 있는 주요 요소들의 z-index 조정 */
/* nav, header, .navbar, .fixed-top, .sticky-top, .header, .app-header, .topbar {
    z-index: 100 !important;
} */

/* 사이드바와 네비게이션 요소들 */
/* .sidebar, .nav, .navigation, .menu, .dm-subnav {
    z-index: 200 !important;
} */

/* 콘텐츠 영역 */
/* .content, .main-content, .content-wrapper, .app-container {
    z-index: 10 !important;
} */

/* 부트스트랩 요소들 */
/* .dropdown-menu, .tooltip, .popover {
    z-index: 300 !important;
} */

/* 공지띠만 최상위 유지 */
.top-notification-bar {
    z-index: 2147483647 !important;
}

/* 메모관리, 알림관리 페이지의 body padding 초기화 */
.memo-page body,
.reminder-page body {
    padding-top: 44px !important;
}

/* 메모관리, 알림관리 페이지의 content-wrapper는 기존 스타일 유지 */
.memo-page .content-wrapper,
.reminder-page .content-wrapper {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

/* 사이드바가 있는 모든 페이지에 대한 안전한 처리 */
.app-container {
    position: relative;
}

/* 공지 띠가 사라졌을 때의 처리 */
body.notification-hidden {
    padding-top: 0 !important;
}

body.notification-hidden .sidebar {
    top: 0 !important;
    height: 100vh !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-notification-bar {
        padding: 6px 15px;
    }
    
    .notification-content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
    
    .notification-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .notification-text {
        font-size: 13px;
        text-align: center;
    }
    
    body {
        padding-top: 50px;
    }
    
    .sidebar {
        top: 50px;
        height: calc(100vh - 50px);
    }
}

@media (max-width: 480px) {
    .notification-text {
        font-size: 12px;
    }
    
    .notification-actions .btn {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    body {
        padding-top: 52px;
    }
    
    .sidebar {
        top: 52px;
        height: calc(100vh - 52px);
    }
} 