/* Strategy Header Styling */
/* Used in Trader and Watch Signals pages */

/* Editable Strategy Name Styling (ISSUE_3258) */
/* ISSUE_3501: Updated for better visibility in light background panels */
.light-theme .strategy-name-editable,
.strategy-name-editable {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px dashed rgba(59, 130, 246, 0.4) !important; /* Blue dashed line */
    padding: 2px 8px;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: var(--color-text-primary) !important; /* Dark text for visibility */
    outline: none;
    min-width: 150px;
    max-width: 300px;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.light-theme .strategy-name-editable:hover,
.strategy-name-editable:hover {
    border-bottom-color: rgba(59, 130, 246, 0.6) !important; /* Darker blue on hover */
    background: none !important;
    background-color: transparent !important;
    color: var(--color-text-primary) !important;
}

.light-theme .strategy-name-editable:focus,
.strategy-name-editable:focus {
    border-bottom-style: solid !important;
    border-bottom-color: #3b82f6 !important; /* Solid blue on focus */
    background: none !important;
    background-color: transparent !important;
    color: var(--color-text-primary) !important;
    cursor: text;
    box-shadow: none !important;
}

/* Placeholder text styling */
.strategy-name-editable::placeholder {
    color: var(--color-text-muted) !important;
    opacity: 0.6;
}

.strategy-name-editable::-webkit-input-placeholder {
    color: var(--color-text-muted) !important;
    opacity: 0.6;
}

.strategy-name-editable::-moz-placeholder {
    color: var(--color-text-muted) !important;
    opacity: 0.6;
}

/* Dark theme support */
.dark-theme .strategy-name-editable {
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
    background: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.dark-theme .strategy-name-editable::placeholder,
.dark-theme .strategy-name-editable::-webkit-input-placeholder,
.dark-theme .strategy-name-editable::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 0.7;
}

.dark-theme .strategy-name-editable:hover {
    border-bottom-color: rgba(255, 255, 255, 0.6) !important;
    background: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.dark-theme .strategy-name-editable:focus {
    border-bottom-color: #60a5fa !important;
    background: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Strategy Status Styling */
.strategy-status-text {
    padding: 2px 6px;
    border: 1px solid;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Default / Unsaved state - Red */
.strategy-status-text,
.strategy-status-text.unsaved {
    color: #dc3545 !important; /* Red */
    border-color: #dc3545 !important;
}

/* Saved state - Green */
.strategy-status-text.saved {
    color: #28a745 !important; /* Green */
    border-color: #28a745 !important;
}

.strategy-status-icon {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}
