.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    background: white;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.tabs-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.nav-tabs {
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 15px 20px;
    position: relative;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background: white;
    border-bottom: 2px solid #007bff;
}

.tab-content {
    padding: 30px;
}

.stock-list {
    display: grid;
    gap: 15px;
}

.stock-row {
    position: relative;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.stock-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.stock-row {
    cursor: pointer;
}

.stock-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stock-info {
    flex: 1;
}

.stock-symbol {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.stock-name {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 2px;
}

.stock-exchange {
    color: #95a5a6;
    font-size: 12px;
}



.price-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-change {
    font-size: 13px;
    margin-top: 2px;
}

.price-change.positive {
    color: #27ae60;
}



.stock-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    position: absolute;
    top: 4px;
    right: 4px;
    color: red;
    padding: 0px 4px;
    font-size: 13px;
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.watchlist-stats {
    color: #7f8c8d;
    font-size: 14px;
}
.connection-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f8f9fa;
}

.connection-status.connected {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.connection-status.disconnected {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
}



.price-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.price-change {
    font-size: 13px;
    margin-top: 2px;
}



.price-change.negative {
    color: #e74c3c;
}

.watchlist-stats {
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Enhanced Mini Chart Container */
.mini-chart-container {
    width: 180px;
    height: 70px;
    margin: 0 20px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mini-chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mini-chart {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

/* Gradient backgrounds for positive/negative charts */
.mini-chart.positive-trend {
    background: linear-gradient(135deg, 
        rgba(39, 174, 96, 0.08) 0%, 
        rgba(39, 174, 96, 0.03) 50%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

.mini-chart.negative-trend {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.08) 0%, 
        rgba(231, 76, 60, 0.03) 50%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

/* Enhanced stock row layout */
.stock-row {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.stock-row:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Stock info section */
.stock-info {
    flex: 1;
    min-width: 140px;
}

.stock-symbol {
    font-weight: 700;
    color: #2c3e50;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.stock-name {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 3px;
    font-weight: 500;
}

.stock-exchange {
    color: #95a5a6;
    font-size: 11px;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price section */
.stock-price {
    text-align: right;
    min-width: 120px;
    margin-right: 0;
}

.price-value {
    font-size: 19px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.price-change {
    font-size: 13px;
    margin-top: 3px;
    font-weight: 600;
}



/* Animation for price updates */
@keyframes priceUpdate {
    0% { background-color: transparent; }
    50% { background-color: rgba(52, 152, 219, 0.15); }
    100% { background-color: transparent; }
}

.price-update {
    animation: priceUpdate 1s ease-in-out;
}

/* Responsive design for tablets */
@media (max-width: 992px) {
    .mini-chart-container {
        width: 150px;
        height: 65px;
        margin: 0 15px;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .mini-chart-container {
        width: 120px;
        height: 55px;
        margin: 0 10px;
    }
    
    .stock-row {
        padding: 14px;
        gap: 12px;
    }
    
    .stock-info {
        min-width: 110px;
    }
    
    .stock-symbol {
        font-size: 15px;
    }
    
    .stock-name {
        font-size: 12px;
    }
    
    .stock-price {
        min-width: 90px;
    }
    
    .price-value {
        font-size: 16px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .mini-chart-container {
        width: 100px;
        height: 50px;
        margin: 0 8px;
    }
    
    .stock-row {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .stock-info {
        flex: 1 1 100%;
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .mini-chart-container {
        order: 3;
        margin: 10px 0 0 0;
        width: 100%;
        height: 60px;
    }
    
    .stock-price {
        flex: 1;
        text-align: left;
    }
}