/* Modern Bitcoin Trading Bot Dashboard */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
    --warning-gradient: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    --bitcoin-gradient: linear-gradient(135deg, #f7931e 0%, #ff6b6b 100%);
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #2d3748;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--bitcoin-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Hero Section - Apple Style */
.hero-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
}

.hero-section h1 {
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: #86868b;
    line-height: 1.4;
}

/* Trading Strategy Card - Apple Style */
.strategy-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.strategy-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.strategy-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.strategy-subtitle {
    font-size: 1rem;
    color: #86868b;
    font-weight: 400;
    margin: 0;
}

.strategy-section {
    background: rgba(247, 248, 250, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.strategy-section-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.strategy-metrics .metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.metric-label {
    font-size: 0.9rem;
    color: #86868b;
    font-weight: 500;
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
}

.buy-metric .metric-value {
    color: #30d158;
}

.sell-metric .metric-value {
    color: #ff453a;
}

.strategy-rules .rule-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    gap: 1rem;
}

.rule-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rule-indicator.buy {
    background: #30d158;
}

.rule-indicator.sell {
    background: #ff453a;
}

.rule-indicator.neutral {
    background: #007aff;
}

.rule-indicator.safety {
    background: #ff9f0a;
}

.rule-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rule-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}

.rule-desc {
    font-size: 0.8rem;
    color: #86868b;
    font-weight: 400;
}

/* Trade Alert Card - Apple Style */
.trade-alert-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.trade-alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trade-alert-card .trade-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trade-alert-card .trade-indicator.buy {
    background: #30d158;
}

.trade-alert-card .trade-indicator.sell {
    background: #ff453a;
}

.trade-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.trade-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trade-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    color: #86868b;
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Trade History Card - Apple Style */
.history-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.history-header {
    text-align: center;
    margin-bottom: 2rem;
}

.history-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.history-subtitle {
    font-size: 1rem;
    color: #86868b;
    font-weight: 400;
    margin: 0;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    background: rgba(247, 248, 250, 0.6);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(247, 248, 250, 0.8);
}

.history-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-indicator.buy {
    background: #30d158;
}

.history-indicator.sell {
    background: #ff453a;
}

.history-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-main {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.history-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    min-width: 40px;
}

.history-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}

.history-quantity {
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 500;
}

.history-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-align: right;
}

.history-total {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
}

.history-time {
    font-size: 0.8rem;
    color: #86868b;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(134, 134, 139, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #86868b;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.empty-desc {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0;
}

/* Custom Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon-custom {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.brand-text .brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.02em;
}

.brand-text .brand-subtitle {
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #30d158;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-label {
    font-size: 0.9rem;
    color: #1d1d1f;
    font-weight: 500;
}

/* Navbar Center - BTC Price */
.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.btc-price-display {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.price-label {
    font-size: 0.7rem;
    color: #86868b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
}

/* Modern Hero Section */
.hero-modern {
    background: linear-gradient(135deg, 
        #f8f9ff 0%, 
        #e3f2fd 25%,
        #fff3e0 50%,
        #f3e5f5 75%,
        #e8f5e8 100%);
    padding: 4rem 0 3rem;
    margin-top: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6e6e73;
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* Portfolio Metrics Grid */
.portfolio-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    min-height: 120px;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.metric-card.primary {
    border-left: 4px solid #007aff;
}

.metric-card.success {
    border-left: 4px solid #30d158;
}

.metric-card.danger {
    border-left: 4px solid #ff453a;
}

.metric-card.info {
    border-left: 4px solid #5856d6;
}

.metric-card.warning {
    border-left: 4px solid #ff9f0a;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.metric-card.primary .metric-icon {
    background: linear-gradient(135deg, #007aff 0%, #0051d0 100%);
}

.metric-card.success .metric-icon {
    background: linear-gradient(135deg, #30d158 0%, #248a3d 100%);
}

.metric-card.danger .metric-icon {
    background: linear-gradient(135deg, #ff453a 0%, #d70015 100%);
}

.metric-card.info .metric-icon {
    background: linear-gradient(135deg, #5856d6 0%, #3634a3 100%);
}

.metric-card.warning .metric-icon {
    background: linear-gradient(135deg, #ff9f0a 0%, #c77700 100%);
}

.metric-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.4rem;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.metric-value.profit {
    color: #30d158;
}

.metric-value.loss {
    color: #ff453a;
}

.metric-label {
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trading Status */
.trading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 25px;
    width: fit-content;
    margin: 0 auto;
}

.status-indicator-modern {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #30d158;
    animation: pulse 2s infinite;
    box-shadow: 0 0 16px rgba(48, 209, 88, 0.3);
}

.status-text-modern {
    font-size: 1rem;
    color: #1d1d1f;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .metric-card {
        padding: 1.5rem 1.25rem;
        gap: 1rem;
        min-height: 100px;
    }
    
    .metric-value {
        font-size: 1.4rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-metrics-grid {
        grid-template-columns: 1fr;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-custom .container-fluid {
        padding: 0 1rem;
    }
    
    .navbar-center {
        position: static;
        transform: none;
        order: 2;
        margin: 0.5rem 0;
    }
    
    .navbar-custom .container-fluid {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btc-price-display {
        padding: 0.5rem 1rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .metric-card {
        padding: 1.25rem 1rem;
        min-height: 90px;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
}

/* Removed unused styles */
.gradient-text {
    color: #1d1d1f;
}

/* Portfolio Card - Apple Style */
.portfolio-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.portfolio-subtitle {
    font-size: 1rem;
    color: #86868b;
    font-weight: 400;
    margin: 0;
}

.portfolio-metric {
    background: rgba(247, 248, 250, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.portfolio-metric .metric-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-metric .metric-label {
    font-size: 0.9rem;
    color: #86868b;
    font-weight: 500;
}

.portfolio-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

.portfolio-metric .metric-value.primary {
    color: #007aff;
}

.portfolio-metric .metric-value.profit {
    color: #30d158;
}

.portfolio-metric .metric-value.loss {
    color: #ff453a;
}

.portfolio-metric .metric-value.info {
    color: #007aff;
}

/* Statistics Cards - Apple Style */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-indicator.buy {
    background: #30d158;
}

.stat-indicator.sell {
    background: #ff453a;
}

.stat-indicator.neutral {
    background: #007aff;
}

.stat-indicator.profit {
    background: #30d158;
}

.stat-indicator.loss {
    background: #ff453a;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 500;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
}
    top: 0;
    right: 0;
    margin-top: 0;
}

/* Latest Trade Card */
.latest-trade-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.latest-trade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--warning-gradient);
}

.trade-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.trade-icon.buy {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.trade-icon.sell {
    background: var(--danger-gradient);
    box-shadow: 0 4px 15px rgba(252, 70, 107, 0.3);
}

.trade-icon.hold {
    background: var(--warning-gradient);
    box-shadow: 0 4px 15px rgba(253, 187, 45, 0.3);
}

.trade-action {
    font-weight: 600;
    color: #2d3748;
}

/* Chart Card */
.chart-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.chart-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1) 0%, transparent 100%);
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.chart-subtitle {
    color: #718096;
    font-size: 0.9rem;
}

.chart-controls .btn {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.chart-controls .btn.active {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.chart-body {
    padding: 1rem 2rem 2rem;
}

#equityChart {
    max-height: 400px;
}

/* Trade History */
.trade-history-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.trade-history-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1) 0%, transparent 100%);
}

.trade-filters .btn {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.trade-filters .btn.active {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.trade-history-body {
    padding: 1rem 2rem 2rem;
}

.trade-list {
    max-height: 600px;
    overflow-y: auto;
}

.trade-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.trade-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trade-item-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trade-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
    flex-shrink: 0;
}

.trade-item-icon.buy {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.trade-item-icon.sell {
    background: var(--danger-gradient);
    box-shadow: 0 4px 15px rgba(252, 70, 107, 0.3);
}

.trade-item-icon.hold {
    background: var(--warning-gradient);
    box-shadow: 0 4px 15px rgba(253, 187, 45, 0.3);
}

.trade-item-details {
    flex: 1;
}

.trade-item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.trade-action {
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.trade-price {
    font-weight: 700;
    color: #4a5568;
    font-size: 1.1rem;
}

.trade-quantity {
    background: rgba(106, 90, 205, 0.1);
    color: #6a5acd;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.trade-item-meta {
    margin-bottom: 0.5rem;
}

.trade-reason {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
    margin-right: 1rem;
}

.trade-timestamp {
    color: #a0aec0;
    font-size: 0.8rem;
}

.trade-item-bands {
    display: flex;
    gap: 1rem;
}

/* Portfolio Metrics */
.portfolio-metric {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-metric h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-metric p {
    font-size: 0.9rem;
    font-weight: 500;
}

.band-info {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4a5568;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state-description {
    color: #718096;
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Custom Scrollbar */
.trade-list::-webkit-scrollbar {
    width: 6px;
}

.trade-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.trade-list::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 205, 0.3);
    border-radius: 10px;
}

.trade-list::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 90, 205, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .bitcoin-animation {
        font-size: 4rem;
    }
    
    .stats-card {
        min-height: 180px;
    }
    
    .stats-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .stats-value {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }
    
    .stats-label {
        font-size: 0.9rem;
    }
    
    .strategy-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .trade-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .trade-item-bands {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .stats-card {
        min-height: 160px;
    }
    
    .stats-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .stats-value {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-label {
        font-size: 0.8rem;
    }
    
    .stats-trend {
        font-size: 1.4rem;
    }
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6a5acd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card:hover {
    transform: translateY(-2px);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Animation for new elements */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInUp 0.5s ease-out;
}

/* Performance optimizations */
* {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}