/* ======== Panel Common Styles ========
 * 通用面板样式组件，包含密码设置、社交链接等UI元素
 * 设计为可被各种编辑器页面复用
 * ================================== */

/* 密码/设置容器样式 */
.password-container {
    position: fixed;
    top: 12px;
    right: 12px;
    height: auto;
    z-index: 101;
    transition: all 0.3s ease;
}

/* 书签/设置按钮水墨风格增强 */
.bookmark {
    position: fixed;
    top: 0;
    right: 24px;
    width: 40px;
    height: 28px;
    padding-top: 6px;
    background: var(--bookmark-bg);
    border-radius: 0 0 8px 8px;
    border-style: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bookmark-shadow);
    backdrop-filter: blur(4px);
}

.bookmark::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Csymbol id='lineMdCogLoop0'%3E%3Cpath d='M15.24 6.37C15.65 6.6 16.04 6.88 16.38 7.2C16.6 7.4 16.8 7.61 16.99 7.83C17.46 8.4 17.85 9.05 18.11 9.77C18.2 10.03 18.28 10.31 18.35 10.59C18.45 11.04 18.5 11.52 18.5 12'%3E%3Canimate fill='freeze' attributeName='d' begin='0.45s' dur='0.1s' values='M15.24 6.37C15.65 6.6 16.04 6.88 16.38 7.2C16.6 7.4 16.8 7.61 16.99 7.83C17.46 8.4 17.85 9.05 18.11 9.77C18.2 10.03 18.28 10.31 18.35 10.59C18.45 11.04 18.5 11.52 18.5 12;M15.24 6.37C15.65 6.6 16.04 6.88 16.38 7.2C16.38 7.2 19 6.12 19.01 6.14C19.01 6.14 20.57 8.84 20.57 8.84C20.58 8.87 18.35 10.59 18.35 10.59C18.45 11.04 18.5 11.52 18.5 12'/%3E%3C/path%3E%3C/symbol%3E%3C/defs%3E%3Cg fill='none' stroke='currentColor' stroke-width='1.2'%3E%3Cg stroke-linecap='round'%3E%3Cpath stroke-dasharray='20' stroke-dashoffset='20' d='M12 9c1.66 0 3 1.34 3 3c0 1.66 -1.34 3 -3 3c-1.66 0 -3 -1.34 -3 -3c0 -1.66 1.34 -3 3 -3Z'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.1s' values='20;0'/%3E%3C/path%3E%3Cpath stroke-dasharray='48' stroke-dashoffset='48' d='M12 5.5c3.59 0 6.5 2.91 6.5 6.5c0 3.59 -2.91 6.5 -6.5 6.5c-3.59 0 -6.5 -2.91 -6.5 -6.5c0 -3.59 2.91 -6.5 6.5 -6.5Z'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' begin='0.1s' dur='0.3s' values='48;0'/%3E%3Cset fill='freeze' attributeName='opacity' begin='0.45s' to='0'/%3E%3C/path%3E%3C/g%3E%3Cg opacity='0'%3E%3Cuse href='%23lineMdCogLoop0'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(60 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(120 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(180 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(240 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(300 12 12)'/%3E%3Cset fill='freeze' attributeName='opacity' begin='0.45s' to='1'/%3E%3CanimateTransform attributeName='transform' dur='15s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: all 0.2s ease;
    filter: var(--bookmark-icon-filter);
}

.dark-theme .bookmark::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Csymbol id='lineMdCogLoop0'%3E%3Cpath d='M15.24 6.37C15.65 6.6 16.04 6.88 16.38 7.2C16.6 7.4 16.8 7.61 16.99 7.83C17.46 8.4 17.85 9.05 18.11 9.77C18.2 10.03 18.28 10.31 18.35 10.59C18.45 11.04 18.5 11.52 18.5 12'%3E%3Canimate fill='freeze' attributeName='d' begin='0.45s' dur='0.1s' values='M15.24 6.37C15.65 6.6 16.04 6.88 16.38 7.2C16.6 7.4 16.8 7.61 16.99 7.83C17.46 8.4 17.85 9.05 18.11 9.77C18.2 10.03 18.28 10.31 18.35 10.59C18.45 11.04 18.5 11.52 18.5 12;M15.24 6.37C15.65 6.6 16.04 6.88 16.38 7.2C16.38 7.2 19 6.12 19.01 6.14C19.01 6.14 20.57 8.84 20.57 8.84C20.58 8.87 18.35 10.59 18.35 10.59C18.45 11.04 18.5 11.52 18.5 12'/%3E%3C/path%3E%3C/symbol%3E%3C/defs%3E%3Cg fill='none' stroke='%23e0e0e0' stroke-width='1.2'%3E%3Cg stroke-linecap='round'%3E%3Cpath stroke-dasharray='20' stroke-dashoffset='20' d='M12 9c1.66 0 3 1.34 3 3c0 1.66 -1.34 3 -3 3c-1.66 0 -3 -1.34 -3 -3c0 -1.66 1.34 -3 3 -3Z'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' dur='0.1s' values='20;0'/%3E%3C/path%3E%3Cpath stroke-dasharray='48' stroke-dashoffset='48' d='M12 5.5c3.59 0 6.5 2.91 6.5 6.5c0 3.59 -2.91 6.5 -6.5 6.5c-3.59 0 -6.5 -2.91 -6.5 -6.5c0 -3.59 2.91 -6.5 6.5 -6.5Z'%3E%3Canimate fill='freeze' attributeName='stroke-dashoffset' begin='0.1s' dur='0.3s' values='48;0'/%3E%3Cset fill='freeze' attributeName='opacity' begin='0.45s' to='0'/%3E%3C/path%3E%3C/g%3E%3Cg opacity='0'%3E%3Cuse href='%23lineMdCogLoop0'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(60 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(120 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(180 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(240 12 12)'/%3E%3Cuse href='%23lineMdCogLoop0' transform='rotate(300 12 12)'/%3E%3Cset fill='freeze' attributeName='opacity' begin='0.45s' to='1'/%3E%3CanimateTransform attributeName='transform' dur='15s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bookmark:hover {
    height: 32px;
    padding-top: 10px;
    background: var(--bookmark-hover-bg);
    box-shadow: var(--bookmark-hover-shadow);
    transform: translateY(1px);
}

.bookmark:hover::before {
    opacity: 0.9;
    filter: var(--bookmark-icon-filter);
}

/* 密码面板水墨风格卡片式分组布局 */
.password-panel {
    position: fixed;
    top: 44px;
    right: 24px;
    padding: 0 16px 16px;
    border-radius: 16px;
    box-shadow: var(--panel-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    width: 320px;
    max-width: calc(100vw - 48px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border: 1px solid var(--section-border);
    background: var(--panel-bg) var(--panel-gradient);
}

/* 面板显示状态 */
.password-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 面板内部分组样式 - 水墨卡片效果 */
.form-section {
    margin-bottom: 12px;
    padding: 16px;
    background: var(--section-bg);
    border-radius: 12px;
    border: 1px solid var(--section-border);
    box-shadow: var(--section-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 最后一个分组取消底部间距 */
.form-section:last-child {
    margin-bottom: 0;
}

/* 鼠标悬停时的轻微水墨扩散效果 */
.form-section:hover {
    background: var(--section-hover-bg);
    box-shadow: var(--section-hover-shadow);
}

/* 社交链接导航改为标签样式 */
.social-links-section {
    margin-bottom: 10px;
}

/* 社交链接容器改为标签式设计 */
.social-links {
    display: flex;
    justify-content: space-between;
    background: var(--section-bg);
    border-radius: 10px;
    border: 1px solid var(--section-border);
    padding: 3px;
    margin-bottom: 4px;
    box-shadow: var(--section-shadow);
}

/* 社交链接水墨效果增强 - 改为标签式按钮 */
.social-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 8px;
    color: var(--social-link-color);
    background: transparent;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    margin: 0 2px;
}

.social-link:hover {
    color: var(--social-link-hover-color);
    background: var(--social-link-hover-bg);
    box-shadow: var(--social-link-hover-shadow);
}

/* 添加active状态以显示当前选中的标签 */
.social-link.active {
    background: var(--social-link-active-bg, var(--social-link-hover-bg));
    color: var(--social-link-active-color, var(--social-link-hover-color));
    box-shadow: var(--social-link-active-shadow, var(--social-link-hover-shadow));
}

/* 修改表单标签样式 - 更有水墨感 */
.form-label {
    font-size: 14px;
    color: var(--label-color);
    margin-bottom: 8px;
    display: block;
    text-shadow: var(--label-shadow);
    letter-spacing: 0.03em;
    position: relative;
    padding-left: 16px;
}

/* 标签前水墨点缀 */
.form-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--label-dot-bg);
    box-shadow: var(--label-dot-shadow);
}

/* 必填项标签样式 */
.required-label::after {
    content: "*";
    color: rgba(213, 77, 77, 0.8);
    margin-left: 4px;
    font-weight: bold;
}

/* 修改输入框容器样式 */
.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.input-wrapper:last-child {
    margin-bottom: 0;
}

/* 优化输入框样式 - 水墨风格 */
#key-input,
#password-input,
.expiry-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    -webkit-appearance: none;
    transition: all 0.25s ease;
    background: var(--input-bg);
    color: var(--input-color);
    box-shadow: var(--input-shadow);
    box-sizing: border-box;
}

#key-input:focus,
#password-input:focus,
.expiry-select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: var(--input-focus-bg);
    box-shadow: var(--input-focus-shadow);
}

/* 标题输入框特殊样式 - 顶部美化设计 */
.title-wrapper {
    margin: 0 -16px 8px;
    padding: 10px 16px 6px;
    border-radius: 16px 16px 0 0;
    background: var(--section-bg);
    background: linear-gradient(to bottom, var(--section-bg), transparent);
    border: none;
    border-bottom: 1px solid var(--section-border);
    transition: all 0.3s ease;
}

.title-wrapper:hover, .title-wrapper:focus-within {
    background: var(--section-hover-bg);
    border-bottom-color: var(--input-focus-border);
}

.title-input {
    width: 100%;
    border: none;
    padding: 6px 4px;
    font-size: 16px;
    text-align: center;
    transition: all 0.25s ease;
    background: transparent;
    color: var(--input-color);
    box-sizing: border-box;
}

/* 防止输入框自动填充时显示背景色 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: var(--input-color) !important;
    transition: background-color 5000s ease-in-out 0s;
    background-clip: content-box !important;
}

.title-input::placeholder {
    color: var(--input-placeholder-color, rgba(120, 120, 120, 0.6));
    font-weight: normal;
    font-size: 15px;
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.title-input:focus {
    outline: none;
}

.title-input:focus::placeholder {
    opacity: 0.4;
}

#title-input {
    letter-spacing: 0.02em;
}

/* 添加选项按钮样式 */
.option-toggle {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin-top: 8px;
}

.option-toggle:hover {
    background: var(--option-hover-bg, rgba(0, 0, 0, 0.03));
    color: var(--social-link-hover-color);
}

/* 自定义复选框 - 水墨风格 */
.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid var(--checkbox-border);
    border-radius: 6px;
    margin-right: 10px;
    background: var(--checkbox-bg);
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
    box-shadow: var(--checkbox-shadow);
    flex-shrink: 0;
}

/* 复选框选中状态 */
.custom-checkbox.checked {
    background: var(--checkbox-checked-bg);
    border-color: var(--checkbox-checked-border);
}

.custom-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--checkbox-check-color);
    font-size: 13px;
    line-height: 1;
}

/* 选项文本 */
.option-text {
    font-size: 14px;
    color: var(--option-text-color);
    text-shadow: var(--label-shadow);
}

/* 删除线的加密选项 */
.option-text del {
    opacity: 0.7;
    text-decoration-color: var(--section-border);
}

/* 移除编辑器链接的特殊悬停效果，统一使用社交链接效果 */
.editor-link {
    position: relative;
}

/* 向编辑器链接添加图标标题提示 */
.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tooltip-bg, rgba(0, 0, 0, 0.8));
    color: var(--tooltip-color, white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -24px;
}

/* 为编辑器按钮添加悬停时的图标放大效果 */
.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* 添加确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--dialog-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--dialog-shadow);
    max-width: 320px;
    width: 85%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.confirm-dialog.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirm-dialog-content {
    white-space: pre-line;
    margin-bottom: 20px;
    color: var(--dialog-text);
    font-size: 14px;
    line-height: 1.5;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-button.primary {
    background: var(--button-primary-bg);
    color: var(--button-primary-color);
    transition: all 0.2s ease;
}

.confirm-button.secondary {
    background: var(--button-secondary-bg);
    color: var(--button-secondary-color);
    transition: all 0.2s ease;
}

.confirm-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--button-hover-shadow);
}

.confirm-button.primary:hover {
    background: var(--button-primary-hover-bg);
}

.confirm-button.secondary:hover {
    background: var(--button-secondary-hover-bg);
}

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(2px);
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced upload status with loading animation */
.upload-status {
    position: fixed;
    top: env(safe-area-inset-top, 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 280px;
    background: var(--status-bg);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: none;
}

.upload-status.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Success status */
.upload-status[data-status="success"] {
    color: var(--status-success-color);
    background: var(--status-success-bg);
}

/* Error status */
.upload-status[data-status="error"] {
    color: var(--status-error-color);
    background: var(--status-error-bg);
}

/* Info status */
.upload-status[data-status="info"] {
    color: var(--status-info-color);
    background: var(--status-bg);
}

/* 当上传提示没有内容时直接隐藏，避免产生多余的"方块" */
#upload-status:empty {
    display: none;
}

/* 输入框组样式，允许元素在输入框内部 */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

/* 生成按钮样式 */
.input-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--input-button-color, var(--social-link-color));
    transition: all 0.2s ease;
    opacity: 0.7;
}

.input-button svg {
    width: 22px;
    height: 22px;
}

.input-button:hover {
    background: var(--input-button-hover-bg, rgba(0, 0, 0, 0.05));
    color: var(--input-button-hover-color, var(--social-link-hover-color));
    opacity: 1;
}

.input-button:active {
    transform: translateY(-50%) scale(0.92);
}

/* 按钮点击旋转动画 */
.input-button.rotating svg {
    animation: rotate-refresh 0.3s ease-out;
}

@keyframes rotate-refresh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 输入框高亮动画 */
@keyframes highlight {
    0%, 100% { background: var(--input-bg); }
    50% { background: var(--input-highlight-bg, rgba(74, 108, 247, 0.1)); }
}

.highlight-input {
    animation: highlight 0.5s ease;
}

/* 调整输入框的内边距以留出按钮空间 */
.input-group input {
    padding-right: 38px;
    width: 100%;
}

/* 输入框焦点状态下按钮的效果 */
.input-group input:focus + .input-button,
.input-group input:focus ~ .input-button {
    opacity: 0.9;
    color: var(--input-button-focus-color, var(--social-link-hover-color));
}

/* 移动端适配 - 移动到基础样式后面以确保正确覆盖 */
@media (max-width: 768px) {
    .password-panel {
        top: 40px;
        right: 16px;
        padding: 0 16px 16px;
        width: 300px;
    }

    .form-section {
        padding: 14px;
    }

    .bookmark {
        right: 16px;
    }

    /* 改进移动端输入框以适应更大的按钮 */
    .input-group input {
        padding-right: 46px;
    }

    /* 修复移动端title-input灰色背景问题 */
    .title-wrapper {
        margin: 0 -16px 8px;
        padding: 10px 16px 6px;
        border-radius: 16px 16px 0 0;
        background: none;
    }
    
    .title-input {
        background: transparent !important;
        -webkit-appearance: none;
        -webkit-box-shadow: 0 0 0px 1000px transparent inset;
        box-shadow: 0 0 0px 1000px transparent inset;
    }

    /* Enhanced mobile upload status positioning */
    .upload-status {
        max-width: 85%;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* 改进移动端上社交链接尺寸 */
    .social-link {
        height: 40px; /* 增大触摸目标 */
    }
    
    /* 改进移动端上生成按钮尺寸 - 适中的触摸目标尺寸 */
    .input-button {
        width: 36px;
        height: 36px;
        right: 8px;
        border-radius: 8px;
        opacity: 0.85;
    }
    
    /* 适中按钮内图标尺寸并增强可见性 */
    .input-button svg {
        width: 26px;
        height: 26px;
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    }
    
    /* 改进移动端按钮触摸反馈 */
    .input-button:active {
        background: var(--input-button-hover-bg, rgba(0, 0, 0, 0.1));
        transform: translateY(-50%) scale(0.92);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* 面板底部按钮样式 */
.panel-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 0;
    margin-bottom: 10px;
}

.panel-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--section-border);
}

.panel-button.primary {
    background: var(--section-bg);
    color: var(--label-color);
    border-color: var(--section-border);
    box-shadow: var(--section-shadow);
}

.panel-button.secondary {
    background: var(--section-bg);
    color: var(--option-text-color);
    box-shadow: var(--section-shadow);
}

.panel-button:hover {
    transform: translateY(-1px);
}

.panel-button.primary:hover {
    background: var(--section-hover-bg);
    border-color: var(--section-border);
    box-shadow: var(--section-hover-shadow);
}

.panel-button.secondary:hover {
    background: var(--section-hover-bg);
    box-shadow: var(--section-hover-shadow);
}

.panel-button:active {
    transform: translateY(0);
}

/* 移除图标，简化按钮设计 */
.panel-button svg {
    display: none;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .panel-button {
        height: 32px;
        font-size: 12px;
    }
    
    .panel-footer {
        margin-top: 10px;
        padding-top: 0;
    }
}

/* Ensure dark mode compatibility */
.dark-theme .panel-button.primary {
    color: var(--label-color);
    border-color: var(--section-border);
    box-shadow: var(--section-shadow);
}

.dark-theme .panel-button.primary:hover {
    border-color: var(--section-border);
    box-shadow: var(--section-hover-shadow);
}
