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

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

.title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 10px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 20px;
}

.add-level-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.demonlist {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.demonlist h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
    color: #fff;
}

.level-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.level-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.level-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffd93d;
    min-width: 40px;
}

.level-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    flex-grow: 1;
    margin-left: 15px;
}

.level-difficulty {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-extreme {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
}

.difficulty-insane {
    background: linear-gradient(45deg, #ff6b00, #cc5500);
    color: white;
}

.difficulty-harder {
    background: linear-gradient(45deg, #ffff00, #cccc00);
    color: black;
}

.level-creator {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 5px;
}

.level-submitter {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 8px;
}

.level-description {
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 10px;
}

.level-score {
    font-size: 0.9rem;
    color: #ffd93d;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.thumbnail-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.generate-thumbnail-btn {
    background: linear-gradient(45deg, #6bcf7f, #4ecdc4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(107, 207, 127, 0.3);
    margin-bottom: 15px;
}

.generate-thumbnail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(107, 207, 127, 0.4);
}

.generate-thumbnail-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.thumbnail-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.thumbnail-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.download-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .level-name {
        margin-left: 0;
    }
    
    .container {
        padding: 15px;
    }
}