/* Loading Bar Generator Styles */
.tool-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.dark .card {
    background-color: #1f2937;
    border-color: #374151;
}

.card-header {
    padding: 0.75rem 1rem;
    background-color: #3b82f6;
}

.card-body {
    padding: 1rem;
}

.dark .card-body {
    background-color: #1f2937;
}

/* Loading Bar Preview */
.loading-bar-container {
    width: 100%;
    position: relative;
}

.loading-bar-bg {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.loading-bar-progress {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

.loading-percentage {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Linear Loading Bar */
.linear-loading {
    height: 8px;
}

/* Circular Loading Bar */
.circular-loading {
    width: 100px;
    height: 100px;
    position: relative;
}

.circular-loading-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
}

.circular-loading-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip: rect(0, 50px, 100px, 0);
    position: absolute;
    transform: rotate(0deg);
}

.circular-loading-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

/* Step Loading Bar */
.steps-loading {
    display: flex;
    gap: 2px;
}

.step {
    flex-grow: 1;
    height: 20px;
    position: relative;
}

.step-active {
    opacity: 1;
}

/* Animation Classes */
.animation-smooth .loading-bar-progress {
    transition: width 0.5s ease;
}

.animation-pulse .loading-bar-progress {
    animation: pulse 1.5s infinite;
}

.animation-bounce .loading-bar-progress {
    animation: bounce 1.5s infinite;
}

.animation-stripes .loading-bar-progress {
    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;
    animation: stripes 1s linear infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Speed Classes */
.speed-slow {
    animation-duration: 2s;
}

.speed-normal {
    animation-duration: 1s;
}

.speed-fast {
    animation-duration: 0.5s;
}

/* Tabs */
.tab-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.dark .tab-header {
    border-bottom-color: #374151;
}

.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: #6b7280;
}

.dark .tab-btn {
    color: #9ca3af;
}

.tab-btn.active {
    color: #3b82f6;
    font-weight: 500;
}

.dark .tab-btn.active {
    color: #60a5fa;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3b82f6;
}

.dark .tab-btn.active::after {
    background-color: #60a5fa;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Range Input Styles */
input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    margin-bottom: 10px;
}

.dark input[type="range"] {
    background: #4b5563;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

.dark input[type="range"]::-webkit-slider-thumb {
    background: #60a5fa;
}