/* Simulator-specific styles */

/* Price input and loading states */
.price-input-container {
    position: relative;
}

.price-loading {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.price-spinner {
    animation: spin 1s linear infinite;
    font-size: 14px;
    color: var(--primary-orange);
}

.loading-text {
    font-weight: 500;
}

.price-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-source {
    font-weight: 500;
    color: var(--primary-orange);
}

/* Simulation button */
.run-simulation-btn {
    background: linear-gradient(
        135deg,
        var(--gradient-start),
        var(--gradient-end)
    );
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.run-simulation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 147, 26, 0.3);
}

/* Simulator-specific stat card styles */
.stat-card h3 {
    color: var(--bitcoin-orange);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.stat-value {
    color: var(--bitcoin-orange);
    font-weight: 600;
}

/* Probability table specific styles */
.probability-table {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.probability-table h3 {
    color: var(--bitcoin-orange);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.probability-table table {
    width: 100%;
    border-collapse: collapse;
}

.probability-table th,
.probability-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.probability-table th {
    color: var(--bitcoin-orange);
    font-weight: 600;
    background: rgba(247, 147, 26, 0.1);
}

.milestone {
    color: var(--text-primary);
    font-weight: 600;
}

.prob-high {
    color: #00ff88;
    font-weight: 600;
}

.prob-medium {
    color: var(--accent-gold);
    font-weight: 600;
}

.prob-low {
    color: #ff6b6b;
    font-weight: 600;
}

/* Simulator loading overlay with enhanced styling */
.simulator .loading-overlay {
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.simulator header {
    padding: 1rem 0 0 0;
}

.simulator .loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.3);
}

.simulator .loading-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 300px;
}

/* Simulator mobile responsive adjustments */
@media (max-width: 768px) {
    .simulator .loading-overlay {
        padding: 1rem;
    }
    
    .simulator .loading-text {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .loading-subtext {
        font-size: 0.85rem;
        max-width: 280px;
        text-align: center;
        padding: 0 1rem;
    }
    
    .controls {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .run-simulation-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin: 1.5rem auto;
        min-height: 44px;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }
    
    .stat-value {
        font-size: 1.05rem;
        word-break: break-word;
        max-width: 100%;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .probability-table {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .probability-table h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .probability-table th,
    .probability-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .price-input-container input {
        padding-right: 60px;
    }
    
    .price-loading {
        right: 8px;
        font-size: 11px;
    }
    
    .price-spinner {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .simulator .loading-overlay {
        padding: 0.75rem;
    }
    
    .simulator .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .simulator .loading-text {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .loading-subtext {
        font-size: 0.8rem;
        max-width: 250px;
    }
    
    .simulator header {
        padding: 4rem 0 8.5rem 0;
    }
    
    .controls {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .probability-table {
        padding: 1rem;
    }
    
    .probability-table h3 {
        font-size: 1.1rem;
    }
    
    .probability-table th,
    .probability-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
    
    .run-simulation-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}