/* UI Components */

/* Buttons */
.btn-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: 0.2s;
}

.btn-action:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #334155;
    color: white;
}

.btn-export {
    background: var(--success);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-export:hover {
    background: #059669;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-import-excel {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.2s;
}

.btn-import-excel:hover {
    color: var(--success);
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.btn-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn-snapshot {
    background: var(--purple);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-snapshot:hover {
    background: #7c3aed;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-snapshot-mini {
    background: var(--purple);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.btn-report {
    background: white;
    color: var(--bg-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.action-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Toggle Sections */
.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    user-select: none;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-top: none;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
}

/* Sliders */
.slider-wrapper {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 10px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-header span {
    flex: 1;
}

.slider-header span:nth-child(1) {
    text-align: left;
}

.slider-header span:nth-child(2) {
    text-align: center;
}

.slider-header span:nth-child(3) {
    text-align: right;
}

/* Strategy Options */
.strat-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strat-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.strat-option input:checked + label {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.strat-option input {
    display: none;
}

/* Info Icons & Tooltips */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: bold;
    font-family: serif;
    font-style: italic;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: 0.2s;
}

.info-icon:hover {
    background: var(--accent);
    color: white;
}

.tooltip-card {
    display: none;
    background: #1e293b;
    border-left: 4px solid var(--accent);
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.4;
    animation: slideIn 0.2s ease-out;
    z-index: 100;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Snapshot */
.snapshot-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--purple);
    padding: 15px;
    border-radius: 8px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.snapshot-info {
    font-size: 0.75rem;
    color: #d8b4fe;
    display: flex;
    justify-content: space-between;
}

.snap-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    background: rgba(139, 92, 246, 0.1);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Badges */
.badge {
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 5px;
    display: inline-block;
}

.bg-tf {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.bg-to {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.bg-fft {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.4);
    margin-left: 5px;
}

/* Icons */
.icon-trophy {
    margin-right: 5px;
    font-size: 0.9rem;
}

.oab-icon {
    position: absolute;
    right: 5px;
    color: var(--danger);
    font-size: 0.8rem;
    pointer-events: none;
}
