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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: glow 2s ease-in-out infinite alternate;
}

.header h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #ff0000, #ff6b6b, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

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

.input-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: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ff6b6b;
}

textarea {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: #888;
}

.button-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.generate-btn {
    flex-grow: 1;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

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

.reset-btn {
    background: linear-gradient(45deg, #555, #333);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.reset-btn:hover {
     transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hidden {
    display: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.simulation-area {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    min-height: 500px;
}

.desktop-frame {
    background: #2d3748;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
}

.desktop-header {
    background: #4a5568;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d3748;
}

.desktop-title {
    font-weight: 600;
    color: #e2e8f0;
}

.desktop-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.minimize { background: #ffd700; }
.maximize { background: #00ff00; }
.close { background: #ff4757; }

.desktop-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 400px;
    position: relative;
    padding: 20px;
}

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

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.icon span {
    font-size: 12px;
    text-align: center;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.start-button {
    background: #4a5568;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.running-apps {
    display: flex;
    gap: 10px;
}

.app {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.system-tray {
    font-size: 12px;
    color: #cbd5e0;
}

.effects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 15px;
    overflow: hidden;
}

.status-panel {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
}

.status-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.status-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.disclaimer {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.3); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes corrupt {
    0% { filter: hue-rotate(0deg) contrast(1); }
    25% { filter: hue-rotate(90deg) contrast(1.5); }
    50% { filter: hue-rotate(180deg) contrast(0.5); }
    75% { filter: hue-rotate(270deg) contrast(2); }
    100% { filter: hue-rotate(360deg) contrast(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Effect classes for virus animations */
.virus-glitch { animation: glitch 0.5s infinite; }
.virus-corrupt { animation: corrupt 2s infinite; }
.virus-shake { animation: shake 0.3s infinite; }
.virus-destroyed { opacity: 0.3; filter: grayscale(1) blur(2px); }

/* Responsive */
@media (max-width: 768px) {
    .header h1 { font-size: 2rem; }
    .container { padding: 15px; }
    .input-section { padding: 20px; }
    .desktop-content { height: 300px; }
    .desktop-icons { grid-template-columns: repeat(3, 1fr); }
    .button-row { flex-direction: column; gap: 10px; }
}