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

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.6;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 2px solid #333;
}

h1 {
    font-size: 2.5rem;
    color: #e50914;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #e50914;
}

.generator-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.controls {
    flex: 1;
    min-width: 300px;
    background-color: #252525;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.preview {
    flex: 2;
    min-width: 400px;
    background-color: #252525;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #f0f0f0;
    font-size: 16px;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border-radius: 4px;
    color: #f0f0f0;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
    margin-top: 10px;
}

.generate-btn {
    background-color: #e50914;
    color: white;
}

.generate-btn:hover {
    background-color: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

.random-btn {
    background-color: #4b0082;
    color: white;
}

.random-btn:hover {
    background-color: #5e00a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(75, 0, 130, 0.3);
}

.download-btn {
    background-color: #008000;
    color: white;
}

.download-btn:hover {
    background-color: #00a000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.3);
}

.canvas-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background-color: #000;
}

.effects {
    display: flex;
    flex-direction: column;
}

.effects div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.effects input[type="checkbox"] {
    margin-right: 10px;
}

.warning-icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.warning-icon-option {
    width: 60px;
    height: 60px;
    border: 2px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    background-color: #333;
}

.warning-icon-option img {
    max-width: 100%;
    max-height: 100%;
}

.warning-icon-option.selected {
    border-color: #e50914;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.scanlines-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.control-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.tab-btn {
    background: none;
    color: #ccc;
    border: none;
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.tab-btn:hover {
    background-color: #333;
}

.tab-btn.active {
    background-color: #333;
    color: #e50914;
    border-bottom: 3px solid #e50914;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.control-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.custom-text-options {
    margin-top: 10px;
}

.custom-text-options input[type="text"] {
    margin-top: 5px;
    margin-bottom: 10px;
}

.preview-btn {
    background-color: #0066cc;
    color: white;
    padding: 8px 15px;
}

.preview-btn:hover {
    background-color: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #333;
    font-size: 14px;
    color: #888;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.footer-language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-language-selector select {
    padding: 5px;
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 4px;
}

.notification-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.notification-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.notification-icon {
    font-size: 1.5em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-content p {
    margin: 0;
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-notification {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: bold;
    line-height: 1;
}

.close-notification:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .generator-container {
        flex-direction: column;
    }
    
    .controls, .preview {
        min-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}