@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Login Screen */
.login-screen {
    background: linear-gradient(135deg, #0055FF 0%, #00AAFF 50%, #00FFFF 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 2px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 2px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.login-box {
    background: linear-gradient(145deg, #ECE9D8, #D4D0C8);
    border: 3px solid;
    border-color: #FFFFFF #404040 #404040 #FFFFFF;
    padding: 25px;
    box-shadow: 
        0 0 30px rgba(0, 170, 255, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 10px 30px rgba(0,0,0,0.4);
    min-width: 450px;
    animation: loginBoxAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

@keyframes loginBoxAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-100px) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo h1 {
    font-size: 20px;
    color: #0055FF;
    font-weight: bold;
    text-shadow: 
        2px 2px 0 #00AAFF,
        4px 4px 10px rgba(0, 170, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            2px 2px 0 #00AAFF,
            4px 4px 10px rgba(0, 170, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% { 
        text-shadow: 
            2px 2px 0 #00AAFF,
            4px 4px 10px rgba(0, 170, 255, 0.8),
            0 0 30px rgba(0, 255, 255, 0.6);
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 8px;
    font-weight: bold;
    color: #000080;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.input-group input {
    padding: 10px;
    border: 2px solid;
    border-color: #7A96DF #0055FF #0055FF #7A96DF;
    background: white;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

.login-button {
    padding: 10px 20px;
    background: linear-gradient(180deg, #3399FF 0%, #0055FF 100%);
    border: 2px solid;
    border-color: #66BBFF #003399 #003399 #66BBFF;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: all 0.2s;
    box-shadow: 0 4px 0 #003399, 0 6px 10px rgba(0,0,0,0.3);
}

.login-button:hover {
    background: linear-gradient(180deg, #66BBFF 0%, #3399FF 100%);
    box-shadow: 0 4px 0 #003399, 0 6px 20px rgba(0, 170, 255, 0.5);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #003399, 0 3px 5px rgba(0,0,0,0.3);
}

.error-message {
    color: #FF0000;
    font-size: 8px;
    min-height: 16px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

/* Desktop */
.desktop {
    background: 
        linear-gradient(135deg, #0055FF 0%, #00AAFF 40%, #00FFFF 70%, #66BBFF 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    height: 100vh;
    position: relative;
    animation: desktopFadeIn 1.5s ease-out;
}

.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,255,255,0.1) 0%, transparent 50%);
    animation: etherealPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes etherealPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes desktopFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.hidden {
    display: none !important;
}

/* Desktop Icons */
.desktop-icons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: calc(100vh - 50px);
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.desktop-icon {
    width: 100px;
    text-align: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 4s ease-in-out infinite;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.desktop-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,255,0.4), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.desktop-icon:hover::before {
    width: 120%;
    height: 120%;
}

.desktop-icon:nth-child(1) { animation-delay: 0s; }
.desktop-icon:nth-child(2) { animation-delay: 0.6s; }
.desktop-icon:nth-child(3) { animation-delay: 1.2s; }
.desktop-icon:nth-child(4) { animation-delay: 1.8s; }
.desktop-icon:nth-child(5) { animation-delay: 2.4s; }
.desktop-icon:nth-child(6) { animation-delay: 3s; }

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotateZ(0deg);
    }
    25% {
        transform: translateY(-8px) scale(1.03) rotateZ(1deg);
    }
    50% {
        transform: translateY(-15px) scale(1.05) rotateZ(-1deg);
    }
    75% {
        transform: translateY(-8px) scale(1.03) rotateZ(1deg);
    }
}

.desktop-icon:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(0,170,255,0.2));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.5);
    transform: translateY(-10px) scale(1.15) rotateZ(0deg) !important;
    box-shadow: 
        0 15px 35px rgba(0, 170, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(255,255,255,0.2);
}

.icon-image {
    font-size: 48px;
    margin-bottom: 8px;
    filter: 
        drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.icon-image img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        filter: 
            drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
    }
    50% {
        filter: 
            drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    }
}

.desktop-icon:hover .icon-image {
    transform: scale(1.1) rotateY(5deg) rotateX(5deg);
    filter: 
        drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 25px rgba(0, 255, 255, 0.8));
}

.desktop-icon:hover .icon-image img {
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.icon-label {
    color: white;
    font-size: 8px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 170, 255, 0.5);
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.desktop-icon:hover .icon-label {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 255, 255, 0.8);
}

/* Taskbar */
.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #3399FF 0%, #0055FF 100%);
    border-top: 3px solid #66BBFF;
    display: flex;
    align-items: center;
    padding: 4px;
    box-shadow: 
        0 -2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.start-button {
    background: linear-gradient(180deg, #66FF66 0%, #00AA00 100%);
    border: 2px solid;
    border-color: #99FF99 #006600 #006600 #99FF99;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 8px;
    color: white;
    font-size: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 
        0 3px 0 #006600,
        0 5px 10px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.start-button:hover {
    background: linear-gradient(180deg, #99FF99 0%, #00CC00 100%);
    box-shadow: 
        0 3px 0 #006600,
        0 5px 15px rgba(0,255,0,0.4);
    transform: translateY(-2px);
}

.start-button:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 0 #006600,
        0 2px 5px rgba(0,0,0,0.3);
}

.start-icon {
    font-size: 16px;
    animation: startIconPulse 2s ease-in-out infinite;
}

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

.taskbar-tasks {
    flex: 1;
}

.taskbar-tray {
    border-left: 2px solid rgba(255,255,255,0.3);
    padding: 0 15px;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mute-toggle {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
    border-radius: 4px;
}

.mute-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.clock {
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Window */
.window {
    position: absolute;
    background: linear-gradient(145deg, #ECE9D8, #D4D0C8);
    border: 3px solid;
    border-color: #FFFFFF #404040 #404040 #FFFFFF;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 170, 255, 0.3);
    min-width: 450px;
    max-width: 650px;
    z-index: 10;
}

.welcome-window {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: windowBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes windowBounce {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    60% {
        transform: translate(-50%, -48%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.window-titlebar {
    background: linear-gradient(180deg, #3399FF 0%, #0055FF 100%);
    color: white;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 2px solid #66BBFF;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.window-title {
    font-weight: bold;
    font-size: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-btn {
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #E0E0E0, #C0C0C0);
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.window-btn:hover {
    background: linear-gradient(145deg, #F0F0F0, #D0D0D0);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.window-btn:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.window-btn.close:hover {
    background: linear-gradient(145deg, #FF6666, #FF0000);
    color: white;
}

.window-content {
    padding: 20px;
    background: white;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    margin: 6px;
    font-size: 10px;
    line-height: 1.6;
}

.window-content h2 {
    color: #0055FF;
    margin-bottom: 15px;
    font-size: 14px;
    text-shadow: 1px 1px 0 rgba(0,170,255,0.3);
}

.window-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.welcome-header {
    position: relative;
    margin-bottom: 15px;
}

.welcome-header h2 {
    margin: 0;
}

.welcome-header .copy-ca-btn {
    position: absolute;
    top: -8px;
    right: 85px;
}

.welcome-header .twitter-icon {
    position: absolute;
    top: -13px;
    right: 0;
}

.browser-header .copy-ca-btn {
    position: absolute;
    top: 15px;
    right: 150px;
}

.welcome-content .copy-ca-btn {
    order: 2;
}

.welcome-content .twitter-icon {
    order: 1;
}

.copy-ca-btn {
    padding: 8px 16px;
    background: linear-gradient(145deg, #00FF88, #00CC66);
    border: 2px solid;
    border-color: #66FFAA #008844 #008844 #66FFAA;
    border-radius: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #008844, 0 6px 15px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.copy-ca-btn:hover {
    background: linear-gradient(145deg, #66FFAA, #00FF88);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #008844, 0 8px 20px rgba(0, 255, 136, 0.4);
}

.copy-ca-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #008844, 0 3px 8px rgba(0, 0, 0, 0.6);
}

.copy-ca-btn.copied {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-color: #FFED4E #CC8400 #CC8400 #FFED4E;
    box-shadow: 0 4px 0 #CC8400, 0 6px 15px rgba(255, 215, 0, 0.6);
}

/* Browser Window Styles */
.browser-window {
    animation: browserSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

@keyframes browserSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    }
}

.browser-content {
    max-height: 500px;
    overflow-y: auto;
}

.browser-content::-webkit-scrollbar {
    width: 18px;
}

.browser-content::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #D4D0C8, #ECE9D8);
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.browser-content::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3399FF, #0055FF);
    border: 2px solid;
    border-color: #66BBFF #003399 #003399 #66BBFF;
}

.browser-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #66BBFF, #3399FF);
}

.browser-header {
    background: linear-gradient(135deg, #0055FF, #00AAFF);
    color: white;
    padding: 20px;
    margin: -20px -20px 20px -20px;
    border-bottom: 4px solid #00FFFF;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.browser-header h2 {
    color: white;
    margin: 0;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.twitter-icon {
    position: absolute;
    top: 5px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.twitter-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7);
}

.twitter-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.info-section {
    background: linear-gradient(145deg, #F5F5F5, #E5E5E5);
    padding: 15px;
    margin-bottom: 15px;
    border: 3px solid;
    border-color: #FFFFFF #999999 #999999 #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-section h3 {
    color: #0055FF;
    margin-bottom: 12px;
    font-size: 11px;
    border-bottom: 3px solid #00AAFF;
    padding-bottom: 6px;
    text-shadow: 1px 1px 0 rgba(0,170,255,0.2);
}

.info-section p {
    margin-bottom: 10px;
}

.info-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Control Panel Styles */
.control-panel-section {
    background: linear-gradient(145deg, #F0F0F0, #E0E0E0);
    padding: 15px;
    margin-bottom: 15px;
    border: 3px solid;
    border-color: #FFFFFF #999999 #999999 #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.control-panel-section h3 {
    color: #0055FF;
    margin-bottom: 12px;
    font-size: 11px;
    border-bottom: 3px solid #00AAFF;
    padding-bottom: 6px;
}

.control-panel-section p {
    margin-bottom: 8px;
}

/* Mail Window Styles */
.mail-content {
    max-height: 500px;
    overflow-y: auto;
}

.mail-content::-webkit-scrollbar {
    width: 18px;
}

.mail-content::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #D4D0C8, #ECE9D8);
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.mail-content::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3399FF, #0055FF);
    border: 2px solid;
    border-color: #66BBFF #003399 #003399 #66BBFF;
}

.mail-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #66BBFF, #3399FF);
}

.mail-header {
    background: linear-gradient(135deg, #0055FF, #00AAFF);
    color: white;
    padding: 20px;
    margin: -20px -20px 20px -20px;
    border-bottom: 4px solid #00FFFF;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.mail-header h2 {
    color: white;
    margin: 0;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-item {
    background: linear-gradient(145deg, #FFFFFF, #F5F5F5);
    padding: 15px;
    border: 3px solid;
    border-color: #FFFFFF #999999 #999999 #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.email-item:hover {
    background: linear-gradient(145deg, #E6F7FF, #CCF0FF);
    border-color: #66BBFF #0055FF #0055FF #66BBFF;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,170,255,0.3);
}

.email-from {
    font-size: 9px;
    color: #0055FF;
    margin-bottom: 6px;
}

.email-subject {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
}

.email-preview {
    font-size: 8px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.email-date {
    font-size: 7px;
    color: #888;
    text-align: right;
}

/* Desktop Buddy Styles */
.desktop-buddy {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 150px;
    z-index: 1000;
    animation: buddySlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: move;
}

@keyframes buddySlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px) scale(0.5) rotate(-10deg);
        margin-left: 150px;
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
        margin-left: 150px;
    }
}

.buddy-mascot {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    cursor: move;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    animation: buddyBounce 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

@keyframes buddyBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-3deg);
    }
    50% {
        transform: translateY(-18px) rotate(0deg);
    }
    75% {
        transform: translateY(-12px) rotate(3deg);
    }
}

.buddy-mascot:hover {
    transform: scale(1.1) rotate(5deg) !important;
    filter: drop-shadow(0 12px 30px rgba(0, 170, 255, 0.6));
}

.buddy-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #FF6666, #FF0000);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
    transition: all 0.2s;
    z-index: 3;
    line-height: 1;
    padding: 0;
}

.buddy-close:hover {
    background: linear-gradient(145deg, #FF3333, #CC0000);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.7);
}

.buddy-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Speech Bubbles */
.speech-bubble {
    position: absolute;
    background: white;
    border: 3px solid #0055FF;
    border-radius: 15px;
    padding: 12px 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bot-bubble {
    bottom: 190px;
    right: -20px;
    min-width: 250px;
    max-width: 350px;
    background: linear-gradient(145deg, #E6F7FF, #FFFFFF);
    border-color: #0055FF;
}

.user-bubble {
    bottom: 190px;
    right: -20px;
    min-width: 280px;
    background: linear-gradient(145deg, #F0F0F0, #FFFFFF);
    border-color: #00AA00;
    display: flex;
    gap: 8px;
    align-items: center;
}

.bubble-tail {
    position: absolute;
    bottom: -12px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #0055FF;
}

.bubble-tail::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid #E6F7FF;
}

.user-bubble .bubble-tail {
    border-top-color: #00AA00;
}

.user-bubble .bubble-tail::after {
    border-top-color: #F0F0F0;
}

.bubble-content {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #000;
}

.user-input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #808080;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: white;
}

.user-input:focus {
    outline: none;
    border-color: #0055FF;
    box-shadow: 0 0 8px rgba(0, 85, 255, 0.3);
}

.send-btn {
    padding: 8px 15px;
    background: linear-gradient(180deg, #66FF66 0%, #00AA00 100%);
    border: 2px solid;
    border-color: #99FF99 #006600 #006600 #99FF99;
    border-radius: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: all 0.2s;
    box-shadow: 0 3px 0 #006600;
}

.send-btn:hover {
    background: linear-gradient(180deg, #99FF99 0%, #00CC00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #006600;
}

.send-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #006600;
}

/* Recycle Bin Styles */
.recyclebin-content {
    text-align: center;
    padding: 30px;
}

.recyclebin-header {
    margin-bottom: 30px;
}

.recyclebin-header h2 {
    color: #0055FF;
    margin-bottom: 10px;
}

.recyclebin-header p {
    color: #555;
    font-size: 9px;
}

.empty-bin-illustration {
    padding: 40px;
}

.bin-icon {
    font-size: 80px;
    opacity: 0.3;
    animation: binFloat 3s ease-in-out infinite;
}

@keyframes binFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-message {
    font-size: 12px;
    color: #888;
    margin: 20px 0 10px;
    font-weight: bold;
}

.empty-submessage {
    font-size: 8px;
    color: #AAA;
}

/* Shutdown/Boot Overlay Styles */
.shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.shutdown-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: -1;
}

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

.shutdown-content {
    text-align: center;
    color: white;
}

.shutdown-logo {
    font-size: 32px;
    font-weight: bold;
    color: #00FFFF;
    margin-bottom: 30px;
    text-shadow: 
        0 0 20px #00FFFF,
        0 0 40px #0055FF,
        2px 2px 4px rgba(0,0,0,0.5);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px #00FFFF,
            0 0 40px #0055FF,
            2px 2px 4px rgba(0,0,0,0.5);
    }
    50% {
        text-shadow: 
            0 0 30px #00FFFF,
            0 0 60px #0055FF,
            0 0 80px #00AAFF,
            2px 2px 4px rgba(0,0,0,0.5);
    }
}

.shutdown-message {
    font-size: 16px;
    margin-bottom: 30px;
    color: #AAA;
}

.shutdown-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top-color: #00FFFF;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

.boot-logo {
    font-size: 32px;
    font-weight: bold;
    color: #00FFFF;
    margin-bottom: 30px;
    text-shadow: 
        0 0 20px #00FFFF,
        0 0 40px #0055FF,
        2px 2px 4px rgba(0,0,0,0.5);
    animation: bootPulse 1.5s ease-in-out infinite;
}

@keyframes bootPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.boot-message {
    font-size: 16px;
    margin-bottom: 30px;
    color: #AAA;
}

.boot-progress {
    width: 300px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border: 3px solid #00FFFF;
    border-radius: 15px;
    margin: 0 auto;
    padding: 3px;
    box-shadow: 
        0 0 20px rgba(0,255,255,0.3),
        inset 0 0 10px rgba(0,0,0,0.5);
}

.boot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0055FF, #00AAFF, #00FFFF);
    border-radius: 12px;
    animation: loadProgress 2.5s ease-in-out forwards;
    box-shadow: 
        0 0 15px #00FFFF,
        0 0 30px #0055FF;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* CRT Boot Screen Styles */
.crt-flicker {
    animation: crtFlicker 0.5s infinite, crtPowerOn 1s ease-out;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.8; }
    20% { opacity: 1; }
    30% { opacity: 0.9; }
    40% { opacity: 1; }
    50% { opacity: 0.95; }
    60% { opacity: 1; }
    70% { opacity: 0.85; }
    80% { opacity: 1; }
    90% { opacity: 0.9; }
}

@keyframes crtPowerOn {
    0% {
        transform: scaleY(0.001) scaleX(1);
        filter: brightness(10);
    }
    20% {
        transform: scaleY(0.05) scaleX(1);
    }
    40% {
        transform: scaleY(0.3) scaleX(1);
        filter: brightness(5);
    }
    60% {
        transform: scaleY(0.7) scaleX(1);
        filter: brightness(2);
    }
    80% {
        transform: scaleY(0.95) scaleX(1);
        filter: brightness(1.5);
    }
    100% {
        transform: scaleY(1) scaleX(1);
        filter: brightness(1);
    }
}

.boot-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crt-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.03) 0px,
        rgba(0, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.boot-text {
    font-family: 'Courier New', monospace;
    color: #00FF00;
    font-size: 16px;
    text-align: left;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #00FF00;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px #00FF00;
}

.boot-line {
    margin: 8px 0;
    opacity: 0;
    animation: bootLineAppear 0.3s ease-out forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.5s; }
.boot-line:nth-child(3) { animation-delay: 0.8s; }
.boot-line:nth-child(4) { animation-delay: 1.1s; }
.boot-line:nth-child(5) { animation-delay: 1.4s; }
.boot-line:nth-child(6) { animation-delay: 1.7s; }
.boot-line:nth-child(7) { animation-delay: 2.0s; }

@keyframes bootLineAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blink-cursor {
    animation: bootLineAppear 0.3s ease-out forwards, cursorBlink 1s step-end infinite;
    animation-delay: 2.0s, 2.3s;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Maximized Window State */
.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - 50px) !important;
    transform: none !important;
    border-radius: 0;
}

.window.maximized .window-content {
    max-height: calc(100vh - 120px);
}

.window.maximized .browser-content,
.window.maximized .mail-content {
    max-height: calc(100vh - 150px);
}
