/**
 * Rakmyat Progress Bar Styles
 *
 * Professional progress bar with complete customization and RTL support
 * Compiled from SCSS - v1.0.0
 *
 * @package Rakmyat Core
 * @version 1.0.0
 */

/* ========================================
   Base Container
   ======================================== */

.rmt-progress-bar-wrapper {
    width: 100%;
    display: block;
    position: relative;
}

/* ========================================
   Header (Title + Percentage)
   ======================================== */

.rmt-progress-bar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

[dir="rtl"] .rmt-progress-bar__header {
    flex-direction: row-reverse;
}

/* ========================================
   Title
   ======================================== */

.rmt-progress-bar__title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: start;
}

[dir="rtl"] .rmt-progress-bar__title {
    text-align: start;
}

/* ========================================
   Percentage Number
   ======================================== */

.rmt-progress-bar__percent {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    flex-shrink: 0;
    white-space: nowrap;
}

.rmt-progress-bar__percent.hidden {
    display: none;
}

/* ========================================
   Track (Background Container)
   ======================================== */

.rmt-progress-bar__track {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #E0E0E0;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ========================================
   Bar (Filled Progress)
   ======================================== */

.rmt-progress-bar__bar {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    height: 100%;
    width: 0%;
    background-color: #FF3D00;
    border-radius: 25px;
    transition: width 0.3s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[dir="rtl"] .rmt-progress-bar__bar {
    left: auto;
    right: 0;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .rmt-progress-bar__title,
    .rmt-progress-bar__percent {
        font-size: 14px;
    }

    .rmt-progress-bar__header {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rmt-progress-bar__title,
    .rmt-progress-bar__percent {
        font-size: 13px;
    }

    .rmt-progress-bar__header {
        gap: 8px;
        margin-bottom: 8px;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .rmt-progress-bar__bar {
        transition: none !important;
    }

    .rmt-progress-bar__track {
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .rmt-progress-bar__track {
        border: 1px solid currentColor;
    }

    .rmt-progress-bar__bar {
        border: 1px solid currentColor;
    }
}

/* ========================================
   Elementor Editor Mode
   ======================================== */

.elementor-editor-active .rmt-progress-bar__bar {
    transition: width 0.2s ease;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .rmt-progress-bar__bar {
        transition: none;
    }
}

/* ========================================
   Alternative Styles for Special Cases
   ======================================== */

.rmt-progress-bar--striped .rmt-progress-bar__bar {
    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: 1rem 1rem;
}

.rmt-progress-bar--animated .rmt-progress-bar__bar {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .rmt-progress-bar__title,
    .rmt-progress-bar__percent {
        color: inherit;
    }
}

/* ========================================
   Focus Styles (for accessibility)
   ======================================== */

.rmt-progress-bar-wrapper:focus-within {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* ========================================
   Loading State (Optional Enhancement)
   ======================================== */

.rmt-progress-bar--loading .rmt-progress-bar__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
