/* --- Menu Screen Grid Styles --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-item:active {
    transform: scale(0.95);
}

.menu-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 20px; /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background-color: transparent; /* KKT style icons usually don't have bg, or light bg */
}

.menu-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
    stroke: #333;
    fill: none;
}

.menu-item-label {
    font-size: 12px;
    color: #333;
    text-align: center;
}

/* --- Status Bar Manager Screen Styles --- */
#status-bar-manager-screen {
    background-color: #f5f7fa;
}

.preset-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
}

.preset-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;

    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0; /* 防止 flex 子项溢出 */
}

.preset-card:active {
    transform: scale(0.98);
}

.preset-info-col {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

.preset-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.preset-desc {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f9f9f9;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
}

.preset-actions-col {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.preset-action-btn {
    padding: 8px;
    border-radius: 6px;
    color: #666;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-action-btn:hover {
    background: #e0e0e0;
}

.preset-action-btn.delete {
    color: #ff4d4f;
    background: #fff1f0;
}

.preset-action-btn.delete:hover {
    background: #ffccc7;
}

/* --- Status Bar Editor Screen Styles --- */
#status-bar-editor-screen {
    background-color: #fff;
}

#status-bar-editor-screen .content {
    padding: 20px;
    padding-bottom: 40px;
}

.editor-section {
    margin-bottom: 25px;
}

.hint {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.code-input {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    background-color: #f8f9fa;
}

/* Preview Lab Styles */
.preview-lab {
    background: #f0f7ff;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
    padding: 15px;
}

.lab-header {
    font-size: 14px;
    font-weight: 600;
    color: #0050b3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-result-box {
    background: #fff;
    border: 1px solid #e6f7ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.preview-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eee;
    color: #666;
}

.status-tag.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-tag.error {
    background: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.preview-container {
    min-height: 40px;
    display: flex;
    align-items: center;
    /* 模拟一些基础环境 */
    font-family: sans-serif;
}

/* --- Settings Page Preset Select --- */
.preset-select-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.preset-select-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

#setting-status-preset-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
}
