* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 100%);
    height: 100vh;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.screen.active {
    display: block;
}

/* Loading Screen Styles */
#loading-screen,
#lockscreen-loading {
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 100%);
}

#loading-screen,
#lockscreen-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-screen.active {
    display: flex !important;
    z-index: 10000;
}

#lockscreen-loading.active {
    display: flex !important;
    z-index: 10000;
}

.loading-container {
    text-align: center;
    color: white;
}

.os-logo-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 2.5rem;
    animation: gentlePulse 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 40px rgba(255, 107, 157, 0.6));
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}

.os-logo {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 20px rgba(255, 107, 157, 0.5));
}

.loading-bar {
    width: 450px;
    height: 8px;
    background: rgba(255, 107, 157, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b9d, #ffc3a0, #ff6b9d);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-message {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
    font-weight: 300;
    color: rgba(255, 182, 193, 0.9);
}

.loading-percentage {
    font-size: 1.8rem;
    font-weight: 300;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Screen Styles */
#login-screen {
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 100%);
}

#login-screen.active {
    display: block !important;
    z-index: 100;
}

/* Video Wallpaper */
.login-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
}

.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.7), rgba(45, 27, 61, 0.7));
    backdrop-filter: blur(10px);
    z-index: 2;
    box-shadow: inset 0 0 100px rgba(255, 107, 157, 0.1);
}

/* Lock Screen */
.lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: white;
    text-align: center;
}

.lock-screen.active {
    display: flex;
}

.lock-time {
    font-size: 8rem;
    font-weight: 200;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 8px 30px rgba(255, 107, 157, 0.6));
}

.lock-date {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 5rem;
    color: rgba(255, 182, 193, 0.95);
    text-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.lock-hint {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 182, 193, 0.8);
    padding: 0.8rem 2rem;
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 30px;
    background: rgba(255, 107, 157, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInOut 2.5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Login Panel */
.login-panel {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.95), rgba(45, 27, 61, 0.95));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: bottom;
    box-shadow: 0 -10px 50px rgba(255, 107, 157, 0.3);
}

.login-panel.active {
    bottom: 0;
}

.login-container {
    text-align: center;
    color: white;
}

.user-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 107, 157, 0.6);
    box-shadow: 0 10px 50px rgba(255, 107, 157, 0.6), 0 0 100px rgba(255, 107, 157, 0.3);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 10px 50px rgba(255, 107, 157, 0.6), 0 0 100px rgba(255, 107, 157, 0.3); }
    50% { box-shadow: 0 10px 60px rgba(255, 107, 157, 0.8), 0 0 120px rgba(255, 107, 157, 0.5); }
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 15px rgba(255, 107, 157, 0.5));
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 380px;
    padding: 1.2rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 107, 157, 0.1);
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.input-group input::placeholder {
    color: rgba(255, 182, 193, 0.6);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.7);
    box-shadow: 0 4px 30px rgba(255, 107, 157, 0.5), inset 0 0 30px rgba(255, 107, 157, 0.2);
    transform: scale(1.02);
}

.login-btn {
    margin-top: 2rem;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.4), rgba(255, 195, 160, 0.4));
    border: 3px solid rgba(255, 107, 157, 0.6);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.6), rgba(255, 195, 160, 0.6));
    border-color: rgba(255, 107, 157, 0.9);
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(255, 107, 157, 0.6);
}

.login-btn:active {
    transform: scale(1.05);
}

/* Main Screen Styles */
#main-screen {
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 100%);
}

#main-screen.active {
    display: block !important;
    z-index: 50;
}

.desktop {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Desktop Area */
.desktop-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

/* Desktop Icons */
.desktop-icons {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    grid-template-rows: repeat(2, 100px);
    gap: 1.5rem;
    padding: 1rem;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 8px;
}

.desktop-icon:hover {
    background: rgba(255, 107, 157, 0.15);
    transform: translateY(-2px);
}

.desktop-icon .icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 10px rgba(255, 107, 157, 0.3));
}

.desktop-icon span {
    color: white;
    font-weight: 400;
    font-size: 0.85rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* Windows Container */
#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Quest Bar */
.quest-bar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 300px;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.95), rgba(45, 27, 61, 0.95));
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.quest-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quest-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 195, 160, 0.2));
    border-radius: 13px 13px 0 0;
}

.quest-icon {
    font-size: 1.5rem;
}

.quest-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.quest-list {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.quest-empty {
    color: rgba(255, 182, 193, 0.6);
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
}

.quest-item {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.quest-item:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateX(-3px);
}

.quest-item.completed {
    opacity: 0;
    transform: translateX(50px);
    margin-bottom: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.quest-item-title {
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quest-item-desc {
    color: rgba(255, 182, 193, 0.8);
    font-size: 0.85rem;
}

.quest-reward {
    color: rgba(255, 195, 160, 0.9);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

#windows-container > * {
    pointer-events: all;
}

/* Windows Taskbar (Bottom) */
.taskbar {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.95), rgba(45, 27, 61, 0.95));
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 107, 157, 0.3);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 30px rgba(255, 107, 157, 0.2);
    z-index: 1000;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

/* Start Button */
.start-btn {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-btn:hover {
    background: rgba(255, 107, 157, 0.3);
}

.start-btn.active {
    background: rgba(255, 107, 157, 0.4);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    width: 300px;
}

.search-box svg {
    opacity: 0.7;
    fill: rgba(255, 182, 193, 0.8);
}

#search-input {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 182, 193, 0.95);
    font-size: 0.9rem;
    width: 100%;
}

#search-input::placeholder {
    color: rgba(255, 182, 193, 0.5);
}

/* Taskbar Apps */
.taskbar-apps {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.taskbar-app {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.taskbar-app:hover {
    background: rgba(255, 107, 157, 0.2);
}

.taskbar-app.active {
    background: rgba(255, 107, 157, 0.3);
}

.taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #ffc3a0);
    border-radius: 2px;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* System Tray */
.system-tray {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0 0.5rem;
}

.tray-icon {
    font-size: 1rem;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.tray-icon:hover {
    opacity: 1;
}

.volume-control {
    position: relative;
}

.volume-popup {
    position: absolute;
    bottom: 45px;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 27, 61, 0.98));
    border: 1px solid rgba(255, 107, 157, 0.4);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 50px;
}

.volume-control:hover .volume-popup {
    display: flex;
}

.volume-slider-vertical {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 6px;
    height: 120px;
    background: rgba(255, 107, 157, 0.2);
    outline: none;
    border-radius: 3px;
}

.volume-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    cursor: pointer;
}

.volume-popup-value {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Taskbar Clock */
.taskbar-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.taskbar-clock:hover {
    background: rgba(255, 107, 157, 0.15);
}

.taskbar-clock .time {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    line-height: 1.2;
}

.taskbar-clock .date {
    font-size: 0.7rem;
    color: rgba(255, 182, 193, 0.8);
    line-height: 1.2;
}

/* Notification Button */
.notification-btn {
    background: transparent;
    border: 1px solid rgba(255, 107, 157, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notification-btn:hover {
    background: rgba(255, 107, 157, 0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 27, 61, 0.98));
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    display: none;
    flex-direction: column;
    z-index: 10000;
}

.notification-panel.active {
    display: flex;
}

.notification-panel-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.clear-notifications {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: rgba(255, 182, 193, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-notifications:hover {
    background: rgba(255, 107, 157, 0.3);
}

.notification-list {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notification-empty {
    color: rgba(255, 182, 193, 0.6);
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-item:hover {
    background: rgba(255, 107, 157, 0.1);
}

.notification-item.unread {
    background: rgba(255, 107, 157, 0.05);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.notification-message {
    color: rgba(255, 182, 193, 0.8);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: rgba(255, 182, 193, 0.5);
    font-size: 0.75rem;
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 55px;
    left: 5px;
    width: 550px;
    height: 650px;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 27, 61, 0.98));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 107, 157, 0.4);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(255, 107, 157, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.start-menu.active {
    display: flex;
    animation: slideUpFade 0.2s ease;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 157, 0.5);
}

.user-name-small {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.start-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.pinned-apps h4 {
    color: rgba(255, 182, 193, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.app-tile {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.app-tile:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

.app-tile .app-icon {
    font-size: 2.5rem;
}

.app-tile span {
    font-size: 0.85rem;
    color: rgba(255, 182, 193, 0.95);
    text-align: center;
}

.start-menu-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    display: flex;
    justify-content: flex-end;
}

.footer-btn {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-btn:hover {
    background: rgba(255, 107, 157, 0.3);
    transform: rotate(90deg);
}

/* Window Styles */
.window {
    position: absolute;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 27, 61, 0.98));
    border: 1px solid rgba(255, 107, 157, 0.4);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 107, 157, 0.2);
    min-width: 400px;
    min-height: 300px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.window.active {
    display: flex;
}

.window-titlebar {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(255, 195, 160, 0.3));
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid rgba(255, 107, 157, 0.3);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.window-icon {
    font-size: 1.1rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 107, 157, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-btn:hover {
    background: rgba(255, 107, 157, 0.4);
}

.close-btn:hover {
    background: rgba(255, 50, 100, 0.6);
}

.window-content {
    flex: 1;
    overflow: auto;
    background: rgba(26, 10, 30, 0.5);
}

/* File Explorer Styles */
.file-explorer-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 107, 157, 0.1);
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.toolbar-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: rgba(255, 107, 157, 0.3);
}

.address-bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 157, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: rgba(255, 182, 193, 0.9);
}

.file-explorer-content {
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover {
    background: rgba(255, 107, 157, 0.1);
}

.file-item-icon {
    font-size: 3rem;
}

.file-item-name {
    color: rgba(255, 182, 193, 0.9);
    font-size: 0.9rem;
    text-align: center;
    word-break: break-word;
}

.empty-folder {
    text-align: center;
    color: rgba(255, 182, 193, 0.6);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-folder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Notepad Styles */
.notepad-menu {
    background: rgba(255, 107, 157, 0.1);
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1rem;
}

.notepad-menu-item {
    color: rgba(255, 182, 193, 0.9);
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.notepad-menu-item:hover {
    background: rgba(255, 107, 157, 0.2);
    color: white;
}

.notepad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notepad-textarea {
    flex: 1;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.notepad-status {
    background: rgba(255, 107, 157, 0.1);
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 182, 193, 0.7);
    display: flex;
    justify-content: space-between;
}

/* Settings Styles */
.settings-content {
    padding: 2rem;
}

.setting-item {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.setting-icon {
    font-size: 2rem;
}

.setting-header h3 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.setting-header p {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.85rem;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 107, 157, 0.2);
    outline: none;
    -webkit-appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    cursor: pointer;
}

#volume-value {
    color: white;
    font-weight: 500;
    min-width: 45px;
}

.battery-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.battery-bar {
    flex: 1;
    height: 30px;
    background: rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.battery-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffc3a0);
    transition: width 0.3s;
}

#battery-value {
    color: white;
    font-weight: 500;
    min-width: 45px;
}

/* Battery Tooltip */
.battery-tray {
    position: relative;
}

.battery-tooltip {
    position: absolute;
    bottom: 45px;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 27, 61, 0.98));
    border: 1px solid rgba(255, 107, 157, 0.4);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    white-space: nowrap;
}

.battery-tray:hover .battery-tooltip {
    display: block;
}

.battery-display-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.battery-bar-small {
    width: 80px;
    height: 20px;
    background: rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.battery-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffc3a0);
}

/* Music Player Styles */
.music-window {
    min-width: 900px;
    min-height: 600px;
}

.music-content {
    display: flex;
    padding: 0;
}

.music-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 107, 157, 0.2);
}

.music-nav {
    margin-bottom: 2rem;
}

.nav-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 182, 193, 0.8);
}

.nav-item:hover {
    background: rgba(255, 107, 157, 0.2);
    color: white;
}

.nav-item.active {
    background: rgba(255, 107, 157, 0.3);
    color: white;
}

.playlists h4 {
    color: rgba(255, 182, 193, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.playlist-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 182, 193, 0.8);
}

.playlist-item:hover {
    background: rgba(255, 107, 157, 0.2);
    color: white;
}

.music-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.music-main h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.playlist-card {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.playlist-card:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: translateY(-4px);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.playlist-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.playlist-card p {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.85rem;
}

.music-player {
    height: 90px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 2rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.player-cover {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.player-details {
    flex: 1;
}

.player-title {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.player-artist {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.8rem;
}

.player-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.player-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 107, 157, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.player-btn:hover {
    background: rgba(255, 107, 157, 0.4);
    transform: scale(1.1);
}

.play-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-progress .time {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.8rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffc3a0);
    width: 0%;
}

/* Messages Window Styles */
#window-messages {
    width: 700px;
    height: 550px;
}

#window-messages .window-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dm-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.dm-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 107, 157, 0.2);
    display: flex;
    flex-direction: column;
}

.dm-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.dm-header h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dm-search {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    width: 100%;
    font-size: 0.85rem;
}

.dm-list {
    flex: 1;
    overflow-y: auto;
}

.dm-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
}

.dm-item:hover {
    background: rgba(255, 107, 157, 0.1);
}

.dm-item.active {
    background: rgba(255, 107, 157, 0.2);
}

.dm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 157, 0.5);
    object-fit: cover;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dm-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.dm-info {
    flex: 1;
}

.dm-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.dm-preview {
    color: rgba(255, 182, 193, 0.6);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dm-chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
    background: rgba(255, 107, 157, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dm-chat-header .dm-avatar {
    width: 40px;
    height: 40px;
}

.dm-chat-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.dm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dm-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.dm-message.sent {
    flex-direction: row-reverse;
}

.dm-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 157, 0.4);
    object-fit: cover;
    flex-shrink: 0;
}

.dm-message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.dm-message-content {
    max-width: 60%;
}

.dm-message-bubble {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 18px;
    color: white;
    word-wrap: break-word;
}

.dm-message.sent .dm-message-bubble {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.4), rgba(255, 195, 160, 0.4));
    border-color: rgba(255, 107, 157, 0.5);
}

.dm-message-time {
    font-size: 0.7rem;
    color: rgba(255, 182, 193, 0.5);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.dm-input-container {
    padding: 1rem;
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    background: rgba(255, 107, 157, 0.05);
}

.dm-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dm-input {
    flex: 1;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.dm-input::placeholder {
    color: rgba(255, 182, 193, 0.5);
}

.dm-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5);
}

/* Typing Indicator */
.dm-typing {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dm-typing.active {
    opacity: 1;
    transform: translateY(0);
}

.dm-typing-bubble {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 18px;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.8);
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* File Message */
.dm-file-message {
    background: rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.file-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 120px;
    overflow: hidden;
}

.file-name {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-word;
    font-size: 0.9rem;
}

.file-size {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.8rem;
}

.file-download-btn {
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.file-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5);
}

/* Dialog System */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.dialog-overlay.active {
    display: flex;
}

.dialog-box {
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.98), rgba(45, 27, 61, 0.98));
    border: 2px solid rgba(255, 107, 157, 0.5);
    border-radius: 15px;
    padding: 2rem;
    min-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideInScale 0.3s ease;
}

@keyframes slideInScale {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dialog-icon {
    font-size: 2rem;
}

.dialog-header h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.dialog-content {
    margin-bottom: 1.5rem;
}

.dialog-content p {
    color: rgba(255, 182, 193, 0.9);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.dialog-filename {
    color: rgba(255, 107, 157, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.download-filename {
    color: white;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.dialog-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.dialog-btn-cancel {
    background: rgba(255, 107, 157, 0.2);
    color: rgba(255, 182, 193, 0.9);
    border: 1px solid rgba(255, 107, 157, 0.4);
}

.dialog-btn-cancel:hover {
    background: rgba(255, 107, 157, 0.3);
}

.dialog-btn-confirm {
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    color: white;
}

.dialog-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

/* Download Progress Bar */
.download-progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
}

.download-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffc3a0);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
}

.download-progress-text {
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Glitch Effects */
#glitch-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
    transition: filter 0.5s ease;
}

#glitch-container.blurred {
    filter: blur(10px);
}

.glitch-text {
    position: absolute;
    color: #ff6b9d;
    font-weight: bold;
    font-size: 2rem;
    animation: glitchMove 3s infinite;
    text-shadow: 
        2px 2px #ffc3a0,
        -2px -2px #ff6b9d,
        2px -2px #ffc3a0,
        -2px 2px #ff6b9d;
    opacity: 0;
}

.glitch-text.active {
    opacity: 1;
    animation: glitchMove 3s infinite, glitchFlicker 0.3s infinite;
}

@keyframes glitchMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(2deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(-2deg);
    }
    75% {
        transform: translate(10px, 10px) rotate(1deg);
    }
}

@keyframes glitchFlicker {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

.screen.glitching {
    animation: screenGlitch 0.2s infinite;
}

@keyframes screenGlitch {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5px, 5px);
    }
    50% {
        transform: translate(5px, -5px);
    }
    75% {
        transform: translate(-5px, -5px);
    }
}

/* Game Window Styles */
.game-window {
    width: 600px;
    height: 500px;
}

.game-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.game-screen {
    width: 100%;
    text-align: center;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.game-subtitle {
    color: rgba(255, 182, 193, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.game-warning {
    color: #ff6b9d;
    font-size: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
}

.game-start-btn,
.game-submit-btn,
.game-restart-btn {
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.game-start-btn:hover,
.game-submit-btn:hover,
.game-restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

.game-question-screen {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-progress {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.game-question {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    padding: 2rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-input-area {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.game-input {
    flex: 1;
    max-width: 300px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.game-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.game-input::placeholder {
    color: rgba(255, 182, 193, 0.5);
}

.game-submit-btn {
    margin: 0;
    padding: 0.75rem 2rem;
}

.game-feedback {
    color: #ff6b9d;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 30px;
    animation: fadeIn 0.3s ease;
}

.game-feedback.error {
    color: #ff4757;
}

.game-feedback.success {
    color: #2ed573;
}

.game-message {
    color: rgba(255, 182, 193, 0.8);
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.game-instruction {
    color: #ff6b9d;
    font-size: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 10px;
}

.game-instruction strong {
    color: #ffc3a0;
    font-weight: 700;
}

/* Maze Window Styles */
.maze-window {
    width: 800px;
    height: 750px;
}

.maze-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 10, 30, 0.95), rgba(45, 27, 61, 0.95));
}

.maze-screen {
    width: 100%;
    text-align: center;
}

.maze-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.maze-subtitle {
    color: rgba(255, 182, 193, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.maze-controls {
    color: #ffc3a0;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    font-weight: 500;
}

.maze-start-btn,
.maze-restart-btn {
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.maze-start-btn:hover,
.maze-restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

.maze-message {
    color: rgba(255, 182, 193, 0.8);
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

#maze-canvas {
    border: 3px solid rgba(255, 107, 157, 0.5);
    border-radius: 10px;
    background: #1a0a1e;
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
}

/* Photos Window Styles */
.photos-window {
    width: 750px;
    height: 600px;
}

.photos-container {
    height: 100%;
    overflow-y: auto;
}

.photos-grid-view {
    padding: 2rem;
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
}

.photos-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.photos-count {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.9rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: #ff6b9d;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-detail-view {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-back-btn {
    background: rgba(255, 107, 157, 0.2);
    color: rgba(255, 182, 193, 0.9);
    border: 1px solid rgba(255, 107, 157, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.photo-back-btn:hover {
    background: rgba(255, 107, 157, 0.3);
}

.photo-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.photo-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 450px;
}

.photo-display img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 107, 157, 0.3);
}

.photo-nav-btn {
    background: rgba(255, 107, 157, 0.2);
    color: white;
    border: 2px solid rgba(255, 107, 157, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.photo-nav-btn:hover {
    background: rgba(255, 107, 157, 0.4);
    transform: scale(1.1);
}

.photo-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.photo-scan-btn {
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.photo-scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

.photo-scan-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 15px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.scan-result-text {
    color: #ffc3a0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.scan-result-special {
    color: #ff6b9d;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    animation: pulse 1.5s infinite;
}

.open-rubux-btn {
    background: linear-gradient(135deg, #ff6b9d, #c471ed);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.open-rubux-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

/* Rubux Window Styles */
.rubux-window {
    width: 850px;
    height: 700px;
}

.rubux-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1b3d 100%);
}

.rubux-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.rubux-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.rubux-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 182, 193, 0.8);
    margin-bottom: 2rem;
}

.rubux-story {
    text-align: center;
    margin: 2rem 0;
}

.rubux-story p {
    color: rgba(255, 182, 193, 0.9);
    font-size: 1.1rem;
    margin: 0.75rem 0;
    font-style: italic;
}

.rubux-controls-info {
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.rubux-controls-info p {
    color: rgba(255, 182, 193, 0.9);
    margin: 0.5rem 0;
    font-size: 1rem;
}

.rubux-controls-info strong {
    color: #ff6b9d;
}

.rubux-start-btn {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    margin-top: 1rem;
}

.rubux-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

#rubux-canvas {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    border-radius: 10px;
}

.rubux-hud {
    position: absolute;
    top: 80px;
    left: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    min-width: 250px;
}

.rubux-player-name {
    color: #ff6b9d;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rubux-objective {
    color: rgba(255, 182, 193, 0.9);
    font-size: 0.95rem;
    font-style: italic;
}

.rubux-dialog {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff6b9d;
    border-radius: 15px;
    padding: 1.5rem;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.rubux-dialog-header {
    color: #ff6b9d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 107, 157, 0.3);
}

.rubux-dialog-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.rubux-dialog-continue {
    color: rgba(255, 182, 193, 0.6);
    font-size: 0.85rem;
    text-align: right;
    margin-top: 1rem;
    font-style: italic;
}

.rubux-gameover-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ff4757;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
}

.rubux-gameover-text {
    color: rgba(255, 182, 193, 0.9);
    font-size: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
}

.rubux-restart-btn {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    margin-top: 2rem;
}

.rubux-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-window {
        width: 90%;
    }
    
    .login-container {
        min-width: 300px;
        padding: 2rem;
    }
    
    .loading-bar {
        width: 300px;
    }
}

/* Game Window Styles */
.game-window {
    width: 600px;
    height: 500px;
}

.game-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.game-screen {
    width: 100%;
    text-align: center;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.game-subtitle {
    color: rgba(255, 182, 193, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.game-warning {
    color: #ff6b9d;
    font-size: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
}

.game-start-btn,
.game-submit-btn,
.game-restart-btn {
    background: linear-gradient(135deg, #ff6b9d, #ffc3a0);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.game-start-btn:hover,
.game-submit-btn:hover,
.game-restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

.game-question-screen {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-progress {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.game-question {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    padding: 2rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-input-area {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.game-input {
    flex: 1;
    max-width: 300px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.game-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.game-input::placeholder {
    color: rgba(255, 182, 193, 0.5);
}

.game-submit-btn {
    margin: 0;
    padding: 0.75rem 2rem;
}

.game-feedback {
    color: #ff6b9d;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 30px;
    animation: fadeIn 0.3s ease;
}

.game-feedback.error {
    color: #ff4757;
}

.game-feedback.success {
    color: #2ed573;
}

.game-message {
    color: rgba(255, 182, 193, 0.8);
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

