/* 環境標籤基本樣式 */
.environment-badge {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 4px 12px;
    border-radius: 50px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badgeFadeIn 0.5s ease-in-out;

    /* 初始隱藏標誌，等待 JavaScript 決定是否顯示 */
    opacity: 0;
    visibility: hidden;
}

/* 萬能鑰匙標籤樣式 */
.master-key-badge {
    position: fixed;
    top: 12px;
    left: 120px; /* 位於環境標籤右側 */
    z-index: 9999;
    padding: 4px 12px;
    border-radius: 50px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badgeFadeIn 0.5s ease-in-out;
    background: linear-gradient(to right, #ff6b6b, #ff8e53); /* 紅橙漸變色 */

    /* 初始隱藏標誌，等待 JavaScript 決定是否顯示 */
    opacity: 0;
    visibility: hidden;
}

/* 標誌可見時的樣式 */
.master-key-badge.visible {
    opacity: 1;
    visibility: visible;
}

/* 萬能鑰匙圖標 */
.master-key-badge .key-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: #ffd700; /* 金色圓點 */
}

/* 標誌可見時的樣式 */
.environment-badge.visible {
    opacity: 1;
    visibility: visible;
}

/* 本地環境樣式 */
.environment-badge.local {
    background: linear-gradient(to right, #3b82f6, #6366f1);
}

/* 遠端環境樣式 */
.environment-badge.remote {
    background: linear-gradient(to right, #10b981, #14b8a6);
}

/* 環境標識圓點 */
.environment-badge .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

/* 本地環境圓點 */
.environment-badge.local .status-dot {
    background-color: #bfdbfe;
}

/* 遠端環境圓點 */
.environment-badge.remote .status-dot {
    background-color: #a7f3d0;
}

/* 淡入動畫 */
@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
