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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ffff;
    overflow: hidden;
    height: 100vh;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000428, #004e92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.boot-content {
    text-align: center;
    max-width: 600px;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    margin-bottom: 2rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ffff; }
    to { text-shadow: 0 0 30px #00ffff, 0 0 40px #0080ff; }
}

.boot-messages {
    margin: 2rem 0;
}

.boot-message {
    opacity: 0;
    margin: 0.5rem 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.boot-message:nth-child(1) { animation-delay: 0.5s; }
.boot-message:nth-child(2) { animation-delay: 1.5s; }
.boot-message:nth-child(3) { animation-delay: 2.5s; }
.boot-message:nth-child(4) { animation-delay: 3.5s; }

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

.boot-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    width: 0;
    animation: progress 4s ease-in-out forwards;
}

@keyframes progress {
    to { width: 100%; }
}

/* Desktop */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="stars"><stop offset="0%" stop-color="%23ffffff" stop-opacity="1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="%23000428"/><circle cx="100" cy="100" r="1" fill="url(%23stars)"/><circle cx="300" cy="200" r="1" fill="url(%23stars)"/><circle cx="500" cy="150" r="1" fill="url(%23stars)"/><circle cx="700" cy="300" r="1" fill="url(%23stars)"/><circle cx="200" cy="400" r="1" fill="url(%23stars)"/><circle cx="800" cy="250" r="1" fill="url(%23stars)"/></svg>') center/cover;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 4, 40, 0.8), rgba(0, 78, 146, 0.3));
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { background: linear-gradient(45deg, rgba(0, 4, 40, 0.8), rgba(0, 78, 146, 0.3)); }
    50% { background: linear-gradient(45deg, rgba(0, 78, 146, 0.3), rgba(0, 4, 40, 0.8)); }
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(0, 20, 40, 0.9);
    border-top: 2px solid #00ffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.start-button {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ffff;
}

.taskbar-apps {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.taskbar-app {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.taskbar-app:hover {
    background: rgba(0, 255, 255, 0.2);
}

.taskbar-app.active {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px #00ffff;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#clock {
    font-family: 'Courier New', monospace;
    color: #00ffff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#logoutBtn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 80px);
    gap: 20px;
    z-index: 100;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

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

.desktop-icon .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px #00ffff);
}

.desktop-icon .label {
    font-size: 0.8rem;
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* Windows */
.window {
    position: absolute;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 8px;
    min-width: 400px;
    min-height: 300px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 50px) !important;
    border-radius: 0;
}

.window.minimized {
    transform: scale(0);
    opacity: 0;
}

.window-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.2));
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid #00ffff;
}

.window-title {
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-control {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.minimize { background: #ffaa00; }
.maximize { background: #00ff00; }
.close { background: #ff0000; }

.window-control:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.window-content {
    padding: 1rem;
    height: calc(100% - 60px);
    overflow-y: auto;
    color: #ffffff;
}

.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
}

.window-content::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ffff;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    box-shadow: 0 0 10px #00ffff;
}

.btn {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ffff;
}

.btn-danger {
    background: linear-gradient(45deg, #ff0000, #ff4444);
    color: #fff;
}

/* Utility Classes */
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }

/* Mobile Styles */
@media (max-width: 768px) {
    .desktop { display: none; }
    .mobile-interface { display: block !important; }
    
    .mobile-interface {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #000428, #004e92);
    }
    
    .mobile-header {
        background: rgba(0, 20, 40, 0.9);
        padding: 1rem;
        border-bottom: 2px solid #00ffff;
    }
    
    .mobile-header h1 {
        color: #00ffff;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .mobile-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-btn {
        background: rgba(0, 255, 255, 0.1);
        border: 1px solid #00ffff;
        color: #00ffff;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .nav-btn.active {
        background: rgba(0, 255, 255, 0.3);
    }
    
    .mobile-content {
        padding: 1rem;
        height: calc(100% - 120px);
        overflow-y: auto;
    }
}