* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(99, 102, 241, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.controls-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.controls-card h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.value-display {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--surface-light);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-danger {
    background: var(--danger-color) !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
}

.progress-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.progress-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.progress-item {
    margin-bottom: 30px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.progress-bar-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--surface-light);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Default Style */
.progress-bar.default .progress-fill {
    background: var(--primary-color);
}

/* Gradient Style */
.progress-bar.gradient .progress-fill {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

/* Striped Style */
.progress-bar.striped .progress-fill {
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        var(--primary-hover) 10px,
        var(--primary-hover) 20px
    );
}

/* Animated Stripes */
.progress-bar.animated-stripes .progress-fill {
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        var(--primary-hover) 10px,
        var(--primary-hover) 20px
    );
    background-size: 200% 100%;
    animation: stripe-animation 2s linear infinite;
}

@keyframes stripe-animation {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}

/* Glow Effect */
.progress-bar.glow .progress-fill {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color),
                0 0 20px var(--glow-color),
                0 0 30px var(--glow-color);
}

/* Rounded Style */
.progress-bar.rounded {
    border-radius: 30px;
}

.progress-bar.rounded .progress-fill {
    border-radius: 30px;
}

.info-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feature-card {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.use-cases {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.use-cases ul {
    list-style: none;
    padding-left: 0;
}

.use-cases li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    border-bottom: 1px solid var(--border-color);
}

.use-cases li:last-child {
    border-bottom: none;
}

.use-cases li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.use-cases strong {
    color: var(--text-primary);
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .controls-card,
    .progress-section {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

