/* 
Theme Name: Nonassa
Theme URI: http://silverstream.tech/a-child/
Description: GeneratePress 主题的子主题
Author: Alan
Author URI: http://silverstream.tech/a-child/
Template: generatepress
Version: 1.0.0
Text Domain: nonassa
*/

/* 在这里添加您的自定义样式 */
body {
  background: none;
}

.grid-container {
  /* background-color: #e6f5fc; 替换为你想要的颜色 */
  background-color: #ffffff; /* 替换为你想要的颜色 */
}

:root {
  --tooltip-z-index: 999999;
  --assistant-z-index: 1000000;
}
/* Turnstile highlight animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ISSUE_24: Clear All Button State Management Styles */
.btn-clear-all.chrome-clear-all-btn {
    /* Match backtest-modal-count sizing and spacing */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

/* Clear All Button - Enabled State (更柔和的橙红色调) */
.btn-clear-all.chrome-clear-all-btn:not(.disabled) {
    background-color: #f97316; /* 温和的橙色而不是鲜红色 */
    border-color: #ea580c;
    color: white;
    cursor: pointer;
    opacity: 1;
}

.btn-clear-all.chrome-clear-all-btn:not(.disabled):hover {
    background-color: #ea580c;
    border-color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

/* Clear All Button - Disabled State (匹配backtest-modal-count样式) */
.btn-clear-all.chrome-clear-all-btn.disabled {
    background-color: var(--color-bg-hover, #f3f4f6) !important;
    border-color: var(--nav-border-color, #e5e7eb) !important;
    color: var(--nav-text-color, #9ca3af) !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

/* Icon styling within Clear All button */
.btn-clear-all.chrome-clear-all-btn .chrome-clear-all-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-all.chrome-clear-all-btn .chrome-clear-all-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Text styling within Clear All button */
.btn-clear-all.chrome-clear-all-btn .btn-text {
    font-size: inherit;
    font-weight: inherit;
}

/* ISSUE_24B: Backtest Item Record Count Display Styles */
.backtest-item-records {
    font-size: 11px;
    font-weight: 400;
    border: 1px solid;
    border-radius: 3px;
    padding: 2px 6px;
    display: inline-block;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Records display when data exists (positive count) */
.backtest-item-records:not([data-count="0"]) {
    background: var(--color-success-bg, #ecfdf5);
    border-color: var(--color-success-border, #a7f3d0);
    color: var(--color-success-text, #065f46);
}

/* Records display when no data (zero count) */
.backtest-item-records[data-count="0"] {
    background: var(--color-muted-bg, #f3f4f6);
    border-color: var(--color-muted-border, #d1d5db);
    color: var(--color-muted-text, #9ca3af);
}

/* General disabled button styles for backtest items */
.chrome-delete-btn.disabled,
.chrome-view-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Disabled text styles for backtest items */
.backtest-item-title.disabled,
.backtest-item-details.disabled {
    color: #999999 !important;
}

/* Disabled progress ring styles */
.chrome-progress-ring-bg.disabled {
    opacity: 0.3;
    display: none;
}
