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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2e3192 0%, #1bffff 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.brand-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.youtube-badge {
    background: #ff0000;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.youtube-badge:hover {
    transform: scale(1.05);
}

main {
    padding: 40px;
}

section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #2e3192;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #1bffff;
    padding-bottom: 10px;
}

.quantum-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

#quantumCanvas {
    width: 100%;
    height: 300px;
    border: 2px solid #2e3192;
    border-radius: 10px;
    background: #000;
}

.quantum-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    color: white;
}

.stat .label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat .value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2e3192;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #2e3192;
}

.btn-primary {
    background: linear-gradient(135deg, #2e3192 0%, #1bffff 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 49, 146, 0.3);
}

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

.output-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 100px;
    border-left: 4px solid #2e3192;
    display: none;
}

.output-box.visible {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.control-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.control-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2e3192;
}

input[type="range"] {
    width: 100%;
    margin-right: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.status-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.log-box {
    background: #1e1e1e;
    color: #0f0;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9em;
}

.log-entry {
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

footer {
    background: #2e3192;
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .quantum-display {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
    
    section {
        padding: 20px;
    }
}
