/**
 * Crypto Presales - Presale Bar Chart Styles
 */

.cp-presale-bar-container {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --cp-main-color: #0072ff; /* Default fallback if not set via inline style */
}

/* Presale Item Container */
.cp-presale-item {
    margin-bottom: 10px;
    width: 100%;
}

/* Row 1: Header with Symbol, Logo, and Growth % */
.cp-presale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.cp-presale-symbol-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cp-presale-number {
    font-weight: bold;
    font-size: 16px;
    margin-right: 4px;
}

.cp-presale-symbol {
    font-weight: bold;
    font-size: 16px;
    margin-right: 8px;
}

.cp-presale-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 0px !important;
}

.cp-presale-label {
    margin-left: 5px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 21px;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    background-color: #dfdfdf;
}

.cp-presale-growth {
    text-align: right;
}

.cp-price-change-percent {
    font-weight: bold;
    font-size: 16px;
}

.cp-price-change-percent.positive {
    color: #00a352;
}

.cp-price-change-percent.negative {
    color: #d33030;
}

.cp-participant-count {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 0px;
    line-height: 13px;
    margin-left: 0;
    font-weight: normal;
    width: 100%;
    flex-basis: 100%;
}

.cp-next-price-increase {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: -4px;
    font-weight: normal;
}

/* Row 2: Bar with price */
.cp-presale-bar-wrapper {
    background-color: rgba(var(--cp-main-color-rgb, 0, 114, 255), 0.15);
    height: 15px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0px;
    width: 100%;
}

.cp-presale-bar {
    height: 100%;
    background: var(--cp-main-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    color: white;
    font-weight: bold;
    min-width: 60px;
    transition: width 0.8s ease;
}

.cp-current-price {
    white-space: nowrap;
    font-size: 12px;
}

/* Row 3: Footer with Money Raised and Price Change */
.cp-presale-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    margin-top: 0px;
}

.cp-money-raised {
    color: #555;
}

.cp-price-info {
    text-align: right;
}

.cp-price-change-values {
    font-size: 13px;
    color: #555;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .cp-presale-item {
        margin-bottom: 10px;
    }
    
    /* Keep header in one row */
    .cp-presale-header {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .cp-presale-symbol-container {
        margin-bottom: 0;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cp-presale-growth {
        white-space: nowrap;
        padding-left: 8px;
    }
    
    /* Keep footer in one row */
    .cp-presale-footer {
        flex-direction: row;
        overflow: hidden;
    }
    
    .cp-money-raised {
        margin-bottom: 0;
        flex: 1;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cp-price-info {
        text-align: right;
        white-space: nowrap;
        padding-left: 8px;
    }
} 