/* Cryptocurrency Charts Styles */

.chart-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.no-data-message i {
    display: block;
    margin: 0 auto 20px;
}

.no-data-message p {
    margin: 10px 0;
    line-height: 1.5;
}

/* Loading spinner */
.lds-ripple {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid #1e88e5;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* Chart container */
#crypto-chart-container {
    position: relative;
    min-height: 400px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Chart navigation */
.chart-nav {
    margin-bottom: 20px;
}

.chart-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.chart-nav li {
    display: inline-block;
}

.chart-nav a {
    display: block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.chart-nav a:hover {
    background: #e0e0e0;
}

.chart-nav .selected a {
    background: #1e88e5;
    color: white;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Fix oversized tabs on mobile */
    .maerkte .tabs-navigation {
        display: flex;
        justify-content: space-between;
        padding: 0 !important;
    }
    
    .maerkte .tabs-navigation > div {
        flex: 1;
        float: none !important;
        text-align: center;
        padding: 8px 0 !important;
        margin: 0 !important;
    }
    
    .maerkte .tabs-navigation a {
        padding: 0 8px !important;
        font-size: 12px !important;
        text-transform: uppercase;
        border-left: none !important;
    }
    
    .maerkte .tabs-navigation div.selected {
        background-color: #4a4949;
    }
    
    .maerkte .tabs-navigation div.selected a {
        color: #fff;
    }
    #crypto-chart-container {
        min-height: 250px;
        height: auto;
        max-height: 400px;
        padding: 10px;
        margin: 10px 0;
    }
    
    #crypto-chart {
        height: 250px !important;
        max-height: 350px !important;
    }
    
    .chart-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chart-nav > div {
        display: inline-flex;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .chart-nav a {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Chart info on mobile */
    .chart-info {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .chart-info .l-text,
    .chart-info .r-text {
        width: 100%;
        text-align: left !important;
        margin-bottom: 10px;
    }
    
    .chart-info .h4 {
        font-size: 18px !important;
    }
    
    .chart-info .h6 {
        font-size: 14px !important;
    }
    
    /* Ensure chart container is full width on mobile */
    .chart-container.chart-market {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .chart-container.chart-market .gray {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    #crypto-chart-container {
        min-height: 200px;
        max-height: 300px;
    }
    
    #crypto-chart {
        height: 200px !important;
        max-height: 280px !important;
    }
    
    .chart-nav a {
        padding: 5px 8px;
        font-size: 11px;
    }
}