* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.algorithm-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.styled-select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    background-color: white;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

.styled-select:hover, .styled-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.styled-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.styled-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.process-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.process-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
}

.process-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.process-table tr:last-child td {
    border-bottom: none;
}

.process-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.quantum-input {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.process-info {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.gantt-wrapper {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#gantt-container {
    position: relative;
    height: 150px;
    margin: 20px 0;
    border-radius: 8px;
    overflow-x: auto;
    background-color: #f8f9fa;
    max-width: 100%;
}

#gantt-container::-webkit-scrollbar {
    height: 8px;
}

#gantt-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#gantt-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#gantt-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.timeline {
    position: relative;
    height: 30px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    max-width: 100%;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.gantt-block {
    position: absolute;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
}

.gantt-block:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#timeline {
    position: relative;
    height: 30px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.timeline-marker {
    position: absolute;
    font-size: 0.8rem;
    color: #666;
    transform: translateX(-50%);
}

#gantt-chart {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gantt-bar {
    height: 30px;
    margin: 5px 0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.results {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.results h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.metric:last-child {
    margin-bottom: 0;
}

.metric-label {
    font-weight: 500;
    color: #2c3e50;
}

.metric-value {
    font-weight: 600;
    color: #667eea;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}
