/* Strategy Selector Styles */
.strategy-selector-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.strategy-section-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Symbol search styles */
.symbol-search-container {
    margin-bottom: 0.5rem;
}

#symbol-search {
    background-color: rgba(26, 31, 44, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 6px;
}

#symbol-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 163, 0.25);
}

/* Risk Selection */
.risk-selection-container {
    margin-bottom: 1rem;
}

.risk-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.risk-option {
    flex: 1 1 30%;
    min-width: 150px;
}

.risk-option input[type="radio"] {
    display: none;
}

.risk-option label {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: rgba(26, 31, 44, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.risk-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.1), rgba(0, 229, 255, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.2);
}

.risk-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.risk-details {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
}

.risk-param {
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.15);
}

/* Strategy Toggle */
.strategy-auto-toggle {
    background: rgba(26, 31, 44, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Strategy Categories */
.strategy-categories-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.strategy-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    gap: 15px;
}

.strategy-selection-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.strategy-category {
    background: rgba(26, 31, 44, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.strategy-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.strategy-category-name {
    font-weight: 600;
    color: var(--accent-color);
}

.strategy-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.strategy-item:last-child {
    border-bottom: none;
}

.strategy-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.strategy-item .form-check {
    display: flex;
    align-items: flex-start;
}

.strategy-item .form-check-input {
    margin-top: 0.3rem;
}

.strategy-item label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.strategy-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.strategy-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Checkbox Styles */
.form-check-input {
    cursor: pointer;
    background-color: rgba(26, 31, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 163, 0.25);
}

/* Auto mode muted strategies */
.strategy-item.text-muted .strategy-name,
.strategy-item.text-muted .strategy-description,
.strategy-category-selector.text-muted {
    opacity: 0.5;
}

/* Loading placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--secondary-text);
}

/* Symbol dropdown enhanced styling */
#trading-symbol-select {
    background-color: rgba(26, 31, 44, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 6px;
    width: 100%;
}

#trading-symbol-select option {
    background-color: rgba(26, 31, 44, 0.9);
    color: var(--text-color);
    padding: 8px;
}

/* Make sure selected option is visible */
#trading-symbol-select option:checked {
    background-color: rgba(0, 255, 163, 0.2);
    color: var(--text-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .risk-options {
        flex-direction: column;
    }
    
    .strategy-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .strategy-item label {
        padding-left: 10px;
    }
    
    .symbol-search-container {
        flex-direction: column;
    }
}