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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 2400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.controls {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.task-config-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.task-config-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.value-display {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

.scenario {
    margin-bottom: 50px;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #667eea;
    border-radius: 10px;
    color: white;
}

.scenario-title {
    font-size: 1.8em;
    font-weight: 700;
}

.scenario-stats {
    text-align: right;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.timeline-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    overflow-x: auto;
}

.developer-row {
    margin-bottom: 30px;
}

.developer-label {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

.timeline {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 10px;
}

.time-block {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    padding: 8px;
    position: relative;
    border-right: 2px solid white;
    text-align: center;
    line-height: 1.3;
    min-width: 80px;
    flex-shrink: 0;
}

.time-block:hover {
    opacity: 0.8;
    cursor: pointer;
}

.work {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.review {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.blocked {
    background: repeating-linear-gradient(
        45deg,
        #f44336,
        #f44336 10px,
        #e53935 10px,
        #e53935 20px
    );
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.context-switch {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.rework {
    background: repeating-linear-gradient(
        135deg,
        #FF5722,
        #FF5722 10px,
        #E64A19 10px,
        #E64A19 20px
    );
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 40px;
    height: 25px;
    border-radius: 4px;
}

.legend-text {
    font-size: 0.9em;
    color: #333;
}

.waste-summary {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.waste-summary h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.waste-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.waste-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.waste-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.waste-stat-label {
    font-size: 0.85em;
    opacity: 0.9;
}

.comparison {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.comparison h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

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

.comparison-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.comparison-value {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.comparison-label {
    font-size: 1em;
    opacity: 0.9;
}

.time-axis {
    margin-top: 10px;
    padding: 0 5px;
    overflow-x: hidden;
}

.time-marker {
    text-align: center;
    font-size: 0.75em;
    color: #666;
    border-left: 1px solid #ddd;
    padding-left: 5px;
}

.time-marker:first-child {
    border-left: none;
    text-align: left;
    padding-left: 0;
}

.action-btn {
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.preset-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.preset-btn:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Copyright Footer */
.copyright {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #e0e0e0;
}

/* Mobile Warning */
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.mobile-warning-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    text-align: center;
}

.mobile-warning-content h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
}

.mobile-warning-content p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mobile-warning-content p:last-child {
    margin-bottom: 0;
}

/* Show warning on tablets and mobile devices */
@media (max-width: 1024px) {
    .mobile-warning {
        display: flex;
    }

    .container {
        display: none;
    }
}
