.pbd-container {
    max-width: 100%;
    margin: 20px 0;
}

.pbd-bar {
    display: block;
    position: relative;
    width: 100%;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pbd-bar:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pbd-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 30px;
}

.pbd-fill.pbd-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: pbd-stripe-animation 1s linear infinite;
}

@keyframes pbd-stripe-animation {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes pbd-stripe-animation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.pbd-progress-text {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
    color: #333;
    z-index: 2;
    transition: color 0.3s ease;
    text-shadow: none;
    mix-blend-mode: difference;
    filter: invert(1);
}

.pbd-progress-text.pbd-hide-progress {
    opacity: 0;
    pointer-events: none;
}

.pbd-button-text {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.pbd-bar:hover .pbd-button-text {
    background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .pbd-bar {
        height: 50px;
    }
    
    .pbd-progress-text {
        font-size: 16px;
        left: 20px;
    }
    
    .pbd-button-text {
        font-size: 14px;
        right: 20px;
        padding: 6px 16px;
    }
}

/* Compact style for headers and sidebars */
.pbd-container.pbd-compact {
    max-width: 300px !important;
    width: 300px !important;
    margin: 10px 0 !important;
}

.pbd-container.pbd-compact .pbd-bar {
    height: 50px !important;
    border-radius: 25px !important;
    max-width: 300px !important;
}

.pbd-container.pbd-compact .pbd-fill {
    border-radius: 25px !important;
}

.pbd-container.pbd-compact .pbd-progress-text {
    font-size: 14px !important;
    left: 15px !important;
}

.pbd-container.pbd-compact .pbd-button-text {
    font-size: 13px !important;
    right: 15px !important;
    padding: 5px 12px !important;
    border-radius: 15px !important;
}

.pbd-container.pbd-compact .pbd-fill.pbd-striped {
    /* Stripes handled by main style */
}

@keyframes pbd-stripe-animation {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}