/* Rolling Notice Widget CSS */

/* 기본 컨테이너 스타일 - 위젯별로 고유한 클래스명 사용 */
.rolling-noti-container-list,
.rolling-noti-container-view,
.rolling-noti-container-write,
[class*="rolling-noti-container-"] {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0.25rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 고정 텍스트 부분 */
.fixed-text {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.fixed-text span {
    margin-right: 4px;
}

.fixed-text > .bi-info-circle {
    vertical-align: middle;
    color: var(--bs-tertiary-color);
    -webkit-text-stroke: 0.2px currentColor;
}

/* 구분선 */
.divider {
    margin: 0 10px;
    color: #000;
}

/* 롤링 컨텐츠 영역 */
.rolling-noti-list,
.rolling-noti-view,
.rolling-noti-write,
[class*="rolling-noti-"]:not([class*="container"]) {
    overflow: hidden;
    height: 30px;
    position: relative;
    flex-grow: 1;
}

/* 롤링 아이템 */
.rolling-noti-list div,
.rolling-noti-view div,
.rolling-noti-write div,
[class*="rolling-noti-"]:not([class*="container"]) div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 1s ease;
}

/* 링크 스타일 */
.rolling-noti-list div a,
.rolling-noti-view div a,
.rolling-noti-write div a,
[class*="rolling-noti-"]:not([class*="container"]) div a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-decoration: none;
    color: inherit;
}

.rolling-noti-list div a:hover,
.rolling-noti-view div a:hover,
.rolling-noti-write div a:hover,
[class*="rolling-noti-"]:not([class*="container"]) div a:hover {
    text-decoration: underline;
}

/* 다크 테마 지원 */
[data-bs-theme='dark'] {
    .rolling-noti-container-list,
    .rolling-noti-container-view,
    .rolling-noti-container-write,
    [class*="rolling-noti-container-"] {
        background-color: #191e23;
        color: #f5f5f5;
        border: none;
    }
    
    .divider {
        color: #666;
    }
}

/* 모바일 반응형 */
@media (max-width: 575.98px) {
    .rolling-noti-container-list, .rolling-noti-list,
    .rolling-noti-container-view, .rolling-noti-view,
    .rolling-noti-container-write, .rolling-noti-write,
    [class*="rolling-noti-container-"], [class*="rolling-noti-"]:not([class*="container"]) {
        border-radius: 0 !important;
    }
}

/* 메모 팝업 스타일 */
.memo-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1041;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.memo-popup {
    position: relative;
    top: 30%;
    width: fit-content;
    min-width: 300px;
    max-width: 800px;
    max-height: 400px;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-gray-600);
    border-radius: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    margin: 40px auto;
}

.memo-popup-title {
    padding: 10px;
    border-bottom: 1px solid var(--bs-gray-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.memo-popup-content {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
    word-break: break-word;
}

.close-memo-btn {
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.close-memo-btn:hover {
    background-color: var(--bs-gray-200);
}

[data-bs-theme='dark'] .close-memo-btn:hover {
    background-color: var(--bs-gray-700);
}

/* 위젯 설정 버튼 */
.btn-wset {
    text-align: center;
}

.btn-wset .btn {
    min-width: 120px;
} 