
/* ===============================
            通知訊息
   =============================== */

.swal2-popup {
    border-radius: 18px !important;
    background: rgba(33, 37, 41) !important;
    color: var(--light) !important;
    border: 1px solid var(--cyan) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5), 0 0 25px rgba(0, 217, 255, .3) !important;
}

/* ===============================
            拖曳排序樣式
   =============================== */

.phase-header {
	cursor: move; /* 指示可拖曳 */
}

.sortable-ghost {
	opacity: 0.2 !important;
	background: transparent !important;
	border: 1px dashed rgba(255, 255, 255, 0.3) !important;
	box-shadow: none !important;
	transition: none !important;
	pointer-events: none;
}

.sortable-fallback {
	opacity: 1 !important;
	background-color: var(--sys-bg-card, #1e293b);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
	border: 1px solid var(--accent, rgba(0, 217, 255, 0.3));
	transform: scale(1.02);
	cursor: grabbing;
	transition: none !important;
	z-index: 9999;
	pointer-events: none !important;
}

.sortable-drag {
	opacity: 1 !important;
	cursor: grabbing;
	background-color: var(--sys-bg-card, #1e293b);
	transition: none !important;
}



/* ===============================
            滑鼠移動偵測
   =============================== */

.mouse-follower {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    /* 讓這個元素不干擾鼠標事件 */
    transition: none !important;
    /* 平滑過渡效果 */
    z-index: 9999;
    filter: blur(50px);
}

/* 行動裝置隱藏 */
@media (pointer: coarse) {
    .mouse-follower {
        display: none !important;
    }
}

/* ===============================
            主題與顯示控制
   =============================== */

/* 主題宿主分層與顯示控制：只顯示被選中的主題 */
#theme-host {
    position: fixed;
    inset: 0;
    z-index: -1;
    /* 永遠在內容底層 */
    pointer-events: none;
    /* 背景不吃事件 */
    overflow: hidden;
}

#theme-host .theme {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#theme-host[data-theme="bg-stars"] #bg-stars {
    display: block;
}

#theme-host[data-theme="bg-tech-clean"] #bg-tech-clean {
    display: block;
}

#theme-host[data-theme="bg-particles"] #bg-particles {
    display: block;
}

/* default：不顯示任何主題，由 body 原本背景生效 */
#theme-host[data-theme="default"] .theme {
    display: none;
}


/* ===============================
            Modal 樣式
   =============================== */

/* 停止背景滾動（開啟 modal 時） */
body.modal-open {
    overflow: hidden;
}

/* Modal：霧面背景 */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 6vh 5vw;
    background: var(--blur-d);
    backdrop-filter: blur(3px) saturate(100%);
    z-index: 10000;
}

.modal.show {
    display: grid !important;
}

/* Modal 內容：簡潔靜態外框 */
.modal-content {
    position: relative;
    width: min(92vw, 350px);
    padding: 30px 10px 15px 10px;
    border-radius: 18px;
    background: rgba(33, 37, 41);
    color: var(--text-light);
    border: 1px solid var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5), 0 0 25px rgba(0, 217, 255, .3);
    animation: modalUp .3s ease;
    overflow: visible;
}

/* 不使用的外框動畫元素（確保被忽略） */
.modal-border-svg,
.modal-border-runner {
    display: none !important;
}

.modal-content .modal-title {
    margin: 0 0 15px;
    font-size: 35px;
    text-align: center;
    color: #9bd1ff;
    text-shadow: 0 0 12px rgba(0, 217, 255, .4);
    position: relative;
    z-index: 1;
}

.modal-content form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 0 0;
}




/* ===============================
            標題
   =============================== */

/* 標題區塊 - 暗黑科技風格增強 */
.tittles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 0px auto;
    position: relative;
    padding: 20px;
    gap: 30px;
}


.tittles h1 {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
    letter-spacing: 1px;
}

/* 標題下方裝飾線 */
.tittles h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan);
}

.tittles p {
    letter-spacing: 1px;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

/* 副標題前後裝飾 */
.tittles p::before,
.tittles p::after {
    content: '—';
    margin: 0 15px;
    color: var(--cyan);
    opacity: 0.6;
}

@media screen and (max-width: 991px) {
    .tittles {
        margin: 40px auto 20px;
        padding: 15px;
    }

    .tittles h1 {
        letter-spacing: 1px;
    }

    .tittles h1::after {
        width: 50px;
        height: 2px;
    }

    .tittles p {
        margin-top: 15px;
    }
}

@media screen and (max-width: 425px) {
    .tittles {
        margin: 30px auto 15px;
    }

    .tittles p::before,
    .tittles p::after {
        margin: 0 10px;
    }
}
