/* Custom CSS Variables */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.75rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

/* Pair Cards */
.pair-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pair-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.pair-card.profit {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, rgba(25, 135, 84, 0.05) 100%);
}

.pair-card.loss {
    border-left: 4px solid var(--danger-color);
    background: linear-gradient(135deg, #ffffff 0%, rgba(220, 53, 69, 0.05) 100%);
}

.pair-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.pair-card-title h5 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.pair-subtitle {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.pair-card-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.25rem;
}

.pair-card-status.profit {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.4);
}

.pair-card-status.loss {
    background: var(--danger-color);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

.pair-card-profit {
    text-align: center;
    margin-bottom: 2rem;
}

.profit-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.profit-percentage {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.8;
}

.pair-card-profit.profit {
    color: var(--success-color);
}

.pair-card-profit.loss {
    color: var(--danger-color);
}

.pair-card-stats {
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.pair-card-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    text-align: center;
    padding: 0.75rem;
}

.detail-label {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Summary Cards */
.summary-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Chart Styles */
.chart-container {
    position: relative;
    height: 400px;
}

/* Loading Overlay */
.loading-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Toast Styles */
.toast {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pair-card {
        padding: 1rem;
    }
    
    .profit-amount {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}