/* =============================================================================
   components/buttons.css - Button Component Styles
   ============================================================================= */

.run-btn {
    background: linear-gradient(135deg, #2B2B2B 0%, #2B2B2B 100%);    
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.run-btn:hover {
    transform: translateY(0px);
    box-shadow: 0 5px 20px rgba(150, 234, 102, 0.4);
}

.run-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.control-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #cbd5e0;
    transform: translateY(0px);
}

.control-btn.active {
    background: #585858;
    color: white;
}

.toggle-btn, 
.reset-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover, 
.reset-btn:hover {
    background: #cbd5e0;
}

.export-btn {
    background: #48bb78;
    color: white;
}

.export-btn:hover {
    background: #38a169;
}

/* Action Buttons */
.action-btn {
    background: none;
    border: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.action-btn:hover {
    background: #e2e8f0;
}

.param-btn {
    color: #718096;
    position: relative;
}

.param-btn:hover {
    color: #4a5568;
    background: #e2e8f0;
    animation: wiggle 0.5s ease-in-out;
}

.detail-btn-loaded {
    border-color: rgb(109, 216, 90) !important;
    background: #e2e8f0;
    color: #4a5568;
}

.detail-btn-loaded:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}





.stop-button {
    background-color: #f56565;
    margin-left: 10px;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.stop-button:hover {
    background-color: #e53e3e;
}

.stop-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Optional visual cues */
#run-backtest.btn-danger { /* state: running/Stop */
  background: #f56565;
}
#run-backtest.btn-danger:hover { background: #e53e3e; }

#run-backtest.btn-paused { /* state: paused/Resume */
  /* e.g., amber */
  background: #f6ad55;
}
