.user-fun-item a {
    display: block;
    width: 100%;
    padding: 1rem;
    transition: background-color 0.5s ease;
}

.user-fun-item {
    padding: 5px;
}

.user-fun-item a:hover {
    background: #ddd;
    color: #333;
}

.content-block {
    padding: 3rem 0;
}


/* 通用樣式 */
label.success-msg, label.error-msg {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

/* 成功訊息樣式 */
label.success-msg {
    color: #155724; /* 深綠色文字 */
    background-color: #d4edda; /* 淺綠背景 */
    border: 1px solid #c3e6cb; /* 綠色邊框 */
}

/* 錯誤訊息樣式 */
label.error-msg {
    color: #721c24; /* 深紅色文字 */
    background-color: #f8d7da; /* 淺紅背景 */
    border: 1px solid #f5c6cb; /* 紅色邊框 */
}

.form-group label.error-msg {
    top: -2rem;
    position: relative;
}

.input-group {
    margin-bottom: 3rem;
}

.footer-block {
    flex-direction: column;
}

.footer-block a {
    font-size: 1.6rem;
}

.footer-r-btm {
    text-align: center!important;
    font-size: 1.6rem;
}

.auth-required {
    background-color: #f8d7da;
    padding: 5px;
    border-radius: 5px;
}

.auth-required-prod {
    background-color: #d3f0ff;
    padding: 5px;
    border-radius: 5px;
}

.guide-content {
    font-size: 2rem;
}

@media (max-width: 576px) {
    .content-block {
        margin-top: 0rem;
    }
}

/* 外層容器樣式 */
.login-panel-container {
    max-width: 1140px; /* 控制面板寬度 */
    margin: 0 auto; /* 居中容器 */
    border: 1px solid #ddd; /* 整體邊框 */
    border-radius: 8px; /* 圓角 */
    overflow: hidden; /* 去除多餘內容 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影效果 */
}

/* 頭部樣式 */
.panel-head {
    background-color: #3a3c64;
    padding: 15px; /* 添加內距 */
    text-align: center; /* 標題居中 */
    border-bottom: 1px solid #ddd; /* 與內容分隔的底部邊框 */
}

.panel-head h3 {
    margin: 0; /* 去掉默認外距 */
    font-size: 1.8rem; /* 字體大小 */
    font-weight: bold; /* 加粗 */
    color: white; /* 字體顏色 */
}

/* 表單區域樣式 */
.login-panel {
    padding: 20px; /* 表單內距 */
    background-color: #fff; /* 表單背景色 */
}

.form-group label h4 {
    margin-bottom: 8px; /* 與輸入框間隔 */
    color: #555; /* 字體顏色 */
}

.btn-100 {
    width: 100%; /* 按鈕寬度全滿 */
    padding: 10px 15px; /* 按鈕內距 */
    border-radius: 5px; /* 圓角按鈕 */
}

.input-group-text {
    justify-content: center;
    min-width: 5rem;
}

#toggle-password-icon {
    cursor: pointer;
}

.login-panel-index {
    margin-bottom: 0rem;
    padding-bottom: 3rem;
}

.login-panel-index-corner {
    border-radius: 1rem 1rem 0 0;
    padding-top: 3rem;
    margin-bottom: 2rem;
}

.container-m {
    max-width: 1140px;
}

.user-block {
    border-radius: 0 0 1rem 1rem;
}

.list.active a {
    background: #d5e7f1;
}

.button-wrapper {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-wrapper:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.remove-favorite, .add-favorite {
    display: inline-block;
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 1.2em;
}

.remove-favorite:hover, .add-favorite:hover {
    color: #ff0000;
    cursor: pointer;
}

/* Default: Hide the desktop-info block */
.desktop-info {
    display: none;
}

h4.user-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-info {
    text-align: right; /* 如果文字需要靠右對齊 */
}

.mobile-info p {
    font-size: 1.2rem;
    line-height: 2rem;
}

.nav-sep {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-block-header {
    cursor: pointer;
}

/* 收合內容預設隱藏 */
.user-block-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* 當 user-block 被打開 (active) 時，展開內容區域 */
.user-block.active .user-block-content {
    max-height: 9999px;
}

/* 讓展開/收合的圖示在旋轉時有動畫 */
.toggle-icon {
    transition: transform 0.3s ease;
}

/* 如果 user-block 被打開，就讓圖示做 180 度旋轉 */
.user-block.active .toggle-icon {
    transform: rotate(180deg);
}

.reset-pass {
    margin-bottom: 1rem;
    background-color: #3a3c64;
    color: white;
    padding: 1rem;
}

a {
    color: #2196F3;
    font-size: 1.6rem;
}

a:hover {
    color: #056ab8;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .nav-sep::after {
        content: '|';
        margin-left: 4rem;
        color: #ccc;
    }
}


/* Media query for 992px and above */
@media (min-width: 992px) {
    .desktop-info {
        display: block; /* Show the desktop block */
    }
    .mobile-info {
        display: none; /* Hide the mobile block */
    }
}

.alert-heading {
    color: #c50c14;
}

.h6, h6 {
    font-size: 1.6rem;
}