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

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a1f 50%, #0f0a1a 100%);
    height: 100vh;
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a1f 50%, #0f0a1a 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 38, 211, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}

/* Top Panel */
.top-panel {
    height: 32px;
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.3);
}

.panel-left {
    display: flex;
    gap: 8px;
}

.menu-button {
    padding: 4px 12px;
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    display: inline-block;
    -webkit-text-stroke: 0.3px rgba(168, 85, 247, 0.5);
}

.menu-button:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    text-shadow: 0 0 15px rgba(168, 85, 247, 1);
}

a.menu-button {
    text-decoration: none;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: rgba(30, 30, 46, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
    min-width: 200px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 8px 0;
}

.menu-dropdown.show {
    display: block;
}

.menu-group {
    padding: 4px 0;
}

.menu-group-label {
    padding: 6px 16px 4px 16px;
    color: #c084fc;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #e9d5ff;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    gap: 10px;
}

.menu-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #f3e8ff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.menu-item-icon {
    font-size: 14px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
    transition: transform 0.2s;
}

.menu-item:hover .menu-item-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9));
}

.menu-item-text {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.menu-separator {
    height: 1px;
    background: rgba(168, 85, 247, 0.2);
    margin: 6px 12px;
    box-shadow: 0 0 4px rgba(168, 85, 247, 0.3);
}

/* Terminal Context Menu */
.terminal-context-menu {
    position: fixed;
    background: rgba(30, 30, 46, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
    min-width: 180px;
    backdrop-filter: blur(10px);
    padding: 8px 0;
    z-index: 10000;
}

.context-menu-group {
    padding: 4px 0;
}

.context-menu-label {
    padding: 6px 16px 4px 16px;
    color: #c084fc;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.context-menu-item {
    padding: 8px 16px;
    color: #e9d5ff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.context-menu-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #f3e8ff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.context-menu-item-text {
    flex: 1;
}

.panel-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.clock {
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 20px rgba(192, 38, 211, 0.5);
    -webkit-text-stroke: 0.3px rgba(168, 85, 247, 0.5);
}

.panel-right {
    display: flex;
    align-items: center;
}

.system-tray {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tray-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s;
    width: 18px;
    height: 18px;
}

.tray-icon svg {
    display: block;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
    transition: transform 0.2s;
}

.tray-icon:hover {
    opacity: 1;
}

.tray-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9));
}

/* APOD Box */
.apod-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 240px;
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.6);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(168, 85, 247, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.apod-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: rotate-glow 8s linear infinite;
    pointer-events: none;
}

.apod-box-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(192, 38, 211, 0.1) 100%);
    opacity: 0.5;
    pointer-events: none;
    border-radius: 12px;
}

.apod-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(168, 85, 247, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(168, 85, 247, 0.8);
}

.apod-box-content {
    position: relative;
    z-index: 1;
    padding: 12px;
}

.apod-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e9d5ff;
    font-size: 11px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    margin-bottom: 8px;
}

.apod-box-title {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apod-icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apod-icon {
    font-size: 16px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.apod-box-close {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(192, 38, 211, 0.4) 100%);
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #e9d5ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
}

.apod-box-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.apod-box-close:hover::before {
    width: 100%;
    height: 100%;
}

.apod-box-close:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(192, 38, 211, 0.6) 100%);
    box-shadow: 0 0 25px rgba(168, 85, 247, 1), 0 0 40px rgba(192, 38, 211, 0.6);
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(168, 85, 247, 0.9);
}

.apod-box-close:active {
    transform: scale(1.05) rotate(-5deg);
}

.apod-box-image-container {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.apod-box-image-container:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.apod-box-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apod-loading,
.apod-error {
    font-size: 12px;
    color: #a855f7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.apod-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.apod-popup-content {
    max-width: 900px;
    max-height: 90vh;
    background: rgba(20, 10, 30, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.apod-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(168, 85, 247, 0.1);
}

.apod-title {
    color: #e9d5ff;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    flex: 1;
    padding-right: 20px;
}

.apod-close {
    background: none;
    border: none;
    color: #e9d5ff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

.apod-close:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #f3e8ff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.apod-popup-image-container {
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.apod-popup-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.apod-popup-explanation {
    padding: 20px;
    color: #e9d5ff;
    font-size: 14px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.apod-popup-explanation::-webkit-scrollbar {
    width: 8px;
}

.apod-popup-explanation::-webkit-scrollbar-track {
    background: rgba(168, 85, 247, 0.1);
}

.apod-popup-explanation::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}

.apod-popup-explanation::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

.apod-popup-date {
    padding: 12px 20px;
    color: #c084fc;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Music Player */
.music-player {
    position: fixed;
    top: 40px;
    right: 20px;
    width: 320px;
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.6);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(168, 85, 247, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1001;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.music-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: rotate-glow 8s linear infinite;
    pointer-events: none;
}

.music-player-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(192, 38, 211, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: 12px;
}

.music-player.playing .music-player-glow {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.music-player:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(168, 85, 247, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(168, 85, 247, 0.8);
}

.music-player-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.music-player-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e9d5ff;
    font-size: 12px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    margin-bottom: 12px;
}

.music-title {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.music-nav {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(192, 38, 211, 0.4) 100%);
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #e9d5ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    padding: 0;
    line-height: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}

.music-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.music-nav:hover::before {
    width: 100%;
    height: 100%;
}

.music-nav:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(192, 38, 211, 0.6) 100%);
    box-shadow: 0 0 25px rgba(168, 85, 247, 1), 0 0 40px rgba(192, 38, 211, 0.6);
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(168, 85, 247, 0.9);
}

.music-nav:active {
    transform: scale(1.05) rotate(-5deg);
}

.music-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-icon {
    font-size: 18px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
    transition: transform 0.3s;
}

.music-player.playing .music-icon {
    animation: bounce-music 0.6s ease-in-out infinite;
}

.music-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-player.playing .music-waves {
    opacity: 1;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s ease-out infinite;
}

.wave:nth-child(1) {
    animation-delay: 0s;
}

.wave:nth-child(2) {
    animation-delay: 0.3s;
    width: 30px;
    height: 30px;
    border-color: rgba(192, 38, 211, 0.5);
}

.wave:nth-child(3) {
    animation-delay: 0.6s;
    width: 40px;
    height: 40px;
    border-color: rgba(168, 85, 247, 0.4);
}

.wave:nth-child(4) {
    animation-delay: 0.9s;
    width: 50px;
    height: 50px;
    border-color: rgba(192, 38, 211, 0.3);
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes bounce-music {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.music-title {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    -webkit-text-stroke: 0.3px rgba(168, 85, 247, 0.5);
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.music-toggle {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(192, 38, 211, 0.4) 100%);
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #e9d5ff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    padding: 0;
    line-height: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

.music-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.music-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.music-toggle:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(192, 38, 211, 0.6) 100%);
    box-shadow: 0 0 25px rgba(168, 85, 247, 1), 0 0 40px rgba(192, 38, 211, 0.6);
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(168, 85, 247, 0.9);
}

.music-toggle:active {
    transform: scale(1.05) rotate(-5deg);
}

.music-toggle.playing {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.7) 0%, rgba(192, 38, 211, 0.7) 100%);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 1),
        0 0 50px rgba(192, 38, 211, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: pulse-button 1.5s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(168, 85, 247, 1),
            0 0 50px rgba(192, 38, 211, 0.8),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(168, 85, 247, 1.2),
            0 0 70px rgba(192, 38, 211, 1),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.play-icon,
.pause-icon {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: opacity 0.3s, transform 0.3s;
}

.pause-icon {
    opacity: 0;
    transform: scale(0);
    position: absolute;
}

.music-toggle.playing .play-icon {
    opacity: 0;
    transform: scale(0);
}

.music-toggle.playing .pause-icon {
    opacity: 1;
    transform: scale(1);
}

.music-close {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(192, 38, 211, 0.4) 100%);
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #e9d5ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    padding: 0;
    line-height: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}

.music-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.music-close:hover::before {
    width: 100%;
    height: 100%;
}

.music-close:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(192, 38, 211, 0.6) 100%);
    box-shadow: 0 0 25px rgba(168, 85, 247, 1), 0 0 40px rgba(192, 38, 211, 0.6);
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(168, 85, 247, 0.9);
}

.music-close:active {
    transform: scale(1.05) rotate(-5deg);
}

.close-icon {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-weight: bold;
    line-height: 1;
}

/* Music Visualizer */
.music-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 40px;
    gap: 3px;
    margin-top: 10px;
    padding: 4px 0;
    opacity: 1;
    transition: opacity 0.3s;
}

.music-player.playing .music-visualizer {
    opacity: 1;
}

.visualizer-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(168, 85, 247, 0.8) 0%, rgba(192, 38, 211, 0.6) 100%);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    animation: visualizer 1.2s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) {
    animation-delay: 0s;
    height: 40%;
}

.visualizer-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 60%;
}

.visualizer-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 80%;
}

.visualizer-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 100%;
}

.visualizer-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 70%;
}

.visualizer-bar:nth-child(6) {
    animation-delay: 0.5s;
    height: 50%;
}

.visualizer-bar:nth-child(7) {
    animation-delay: 0.6s;
    height: 90%;
}

.visualizer-bar:nth-child(8) {
    animation-delay: 0.7s;
    height: 65%;
}

@keyframes visualizer {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Music Song List */
.music-song-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.music-song-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    font-size: 11px;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.music-song-item:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.music-song-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(192, 38, 211, 0.4) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.music-song-title {
    display: inline-block;
}

#music-audio {
    display: none;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 40px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

a.desktop-icon {
    text-decoration: none;
    color: inherit;
}

.desktop-icon:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.icon-image {
    font-size: 48px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-image svg {
    display: block;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.icon-label {
    color: #e9d5ff;
    font-size: 11px;
    text-align: center;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Windows */
.window {
    position: absolute;
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.4);
    overflow: hidden;
    z-index: 100;
}

.terminal-window {
    width: 700px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.artwork-window {
    width: 600px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wiki-window {
    width: 900px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.detective-window {
    width: 1200px;
    height: 850px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.window-header {
    height: 32px;
    background: rgba(15, 5, 25, 0.9);
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    cursor: move;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control.close {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.control.close::before,
.control.close::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 1px;
    background: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 4px rgba(168, 85, 247, 0.8);
}

.control.close::before {
    transform: rotate(45deg);
}

.control.close::after {
    transform: rotate(-45deg);
}

.control.close:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.control.close:hover::before,
.control.close:hover::after {
    background: rgba(168, 85, 247, 1);
    box-shadow: 0 0 6px rgba(168, 85, 247, 1);
}

.control.minimize {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.control.minimize::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 1px;
    background: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 4px rgba(168, 85, 247, 0.8);
}

.control.minimize:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.control.minimize:hover::before {
    background: rgba(168, 85, 247, 1);
    box-shadow: 0 0 6px rgba(168, 85, 247, 1);
}

.control.maximize {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.control.maximize:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.control:hover {
    transform: scale(1.1);
}

.window-title {
    flex: 1;
    color: #e9d5ff;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.terminal-icon, .file-icon, .home-icon, .b-bot-icon, .artwork-icon, .youtube-icon, .messaging-icon, .detective-icon {
    font-size: 12px;
}

.terminal-icon svg,
.menu-item-icon svg,
.dock-icon svg,
.file-icon svg,
.home-icon svg,
.b-bot-icon svg,
.artwork-icon svg,
.youtube-icon svg,
.messaging-icon svg,
.detective-icon svg,
.folder-icon svg,
.email-btn span svg {
    display: block;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}


.window-content {
    height: calc(100% - 32px);
    overflow: auto;
    background: rgba(10, 5, 15, 0.9);
}

/* Home Window */
.home-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Wiki Window */
.wiki-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.wiki-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Terminal */
.terminal {
    padding: 16px;
    color: #e9d5ff;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #a855f7;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    white-space: pre;
}

.command {
    color: #c084fc;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

.terminal-output {
    color: #d8b4fe;
    margin-left: 0;
    margin-bottom: 8px;
    white-space: pre-wrap;
    text-shadow: 0 0 5px rgba(216, 180, 254, 0.4);
}

.terminal-input-main {
    background: transparent;
    border: none;
    outline: none;
    color: #c084fc;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
    flex: 1;
    caret-color: #a855f7;
    margin-left: 4px;
}

.terminal-output-container {
    margin-bottom: 8px;
}


/* File Manager */
.file-manager {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.file-toolbar {
    height: 40px;
    background: rgba(15, 5, 25, 0.8);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.toolbar-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.toolbar-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    text-shadow: 0 0 12px rgba(168, 85, 247, 1);
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: rgba(168, 85, 247, 0.3);
    margin: 0 4px;
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

.path-bar {
    flex: 1;
    background: rgba(10, 5, 15, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    color: #e9d5ff;
    font-size: 11px;
    font-family: monospace;
    border: 1px solid rgba(168, 85, 247, 0.2);
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
}

.file-list {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    align-self: start;
}

a.file-item {
    text-decoration: none;
    color: inherit;
}

.file-item:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.file-icon-large {
    font-size: 48px;
    margin-bottom: 8px;
}

.file-name {
    color: #e9d5ff;
    font-size: 11px;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* Email Application */
.email-window {
    width: 800px;
    height: 550px;
    top: 50px;
    left: 150px;
    z-index: 100;
}

.home-window {
    width: 1100px;
    height: 720px;
    top: 50px;
    left: 100px;
    z-index: 100;
}


.b-bot-window {
    width: 800px;
    height: 700px;
    top: 80px;
    left: 200px;
    z-index: 100;
}

.b-bot-icon {
    font-size: 12px;
}

.email-icon {
    font-size: 12px;
}

.email-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.email-toolbar {
    height: 40px;
    background: rgba(15, 5, 25, 0.8);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.email-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.email-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    text-shadow: 0 0 12px rgba(168, 85, 247, 1);
}

.email-btn.active {
    background: rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    text-shadow: 0 0 12px rgba(168, 85, 247, 1);
}


.email-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.email-sidebar {
    width: 180px;
    background: rgba(10, 5, 15, 0.8);
    border-right: 1px solid rgba(168, 85, 247, 0.3);
    padding: 12px 0;
    overflow-y: auto;
}

.email-folder {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #d8b4fe;
    font-size: 12px;
    gap: 8px;
}

.email-folder:hover {
    background: rgba(168, 85, 247, 0.2);
}

.email-folder.active {
    background: rgba(168, 85, 247, 0.3);
    border-left: 3px solid #a855f7;
    color: #e9d5ff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.folder-icon {
    font-size: 14px;
}

.folder-name {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.folder-count {
    background: rgba(168, 85, 247, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    min-width: 20px;
    text-align: center;
}

.email-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.email-list {
    flex: 1;
    overflow-y: auto;
    background: rgba(10, 5, 15, 0.6);
}

.email-item {
    padding: 16px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(10, 5, 15, 0.4);
}

.email-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-left: 3px solid #a855f7;
    padding-left: 13px;
}

.email-item.unread {
    background: rgba(168, 85, 247, 0.1);
    font-weight: 500;
}

.email-item.unread .email-item-subject {
    font-weight: 600;
    color: #e9d5ff;
}

.email-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.email-item-from {
    color: #e9d5ff;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-replied-icon {
    font-size: 12px;
    opacity: 0.8;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

.email-item-date {
    color: #c084fc;
    font-size: 11px;
    opacity: 0.8;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.email-item-subject {
    color: #d8b4fe;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.email-item-preview {
    color: #c084fc;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.email-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c084fc;
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-text {
    font-size: 16px;
    color: #d8b4fe;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.empty-subtext {
    font-size: 12px;
    color: #c084fc;
    opacity: 0.7;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.email-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 5, 15, 0.6);
    min-height: 0;
    overflow: hidden;
}

.email-view-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(15, 5, 25, 0.8);
}

.back-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.back-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.email-view-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    color: #e9d5ff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.email-view-meta {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.email-view-field {
    margin-bottom: 8px;
    color: #d8b4fe;
    font-size: 13px;
}

.email-view-field strong {
    color: #e9d5ff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.email-view-body {
    color: #d8b4fe;
    line-height: 1.8;
}

.email-view-body p {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Todo Application */
.todo-window {
    width: 500px;
    height: 630px;
    top: 80px;
    left: 200px;
    z-index: 100;
}

.todo-icon {
    font-size: 12px;
}

.todo-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(10, 5, 15, 0.9);
}

.todo-input-container {
    padding: 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(15, 5, 25, 0.6);
}

.todo-input {
    flex: 1;
    background: rgba(10, 5, 15, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    padding: 10px 12px;
    color: #e9d5ff;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    outline: none;
    transition: all 0.2s;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
}

.todo-input::placeholder {
    color: #c084fc;
    opacity: 0.6;
}

.todo-input:focus {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    background: rgba(10, 5, 15, 0.95);
}

.todo-add-btn {
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 44px;
}

.todo-add-btn:hover {
    background: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    text-shadow: 0 0 15px rgba(168, 85, 247, 1);
    transform: scale(1.05);
}

.todo-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    background: rgba(10, 5, 15, 0.6);
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(15, 5, 25, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}

.todo-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #c084fc;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 4px;
    background: rgba(10, 5, 15, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.todo-checkbox:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.todo-checkbox.checked {
    background: rgba(168, 85, 247, 0.6);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.todo-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e9d5ff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.todo-text {
    flex: 1;
    color: #e9d5ff;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
    word-break: break-word;
}

.todo-delete-btn {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    opacity: 0;
    flex-shrink: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.todo-item:hover .todo-delete-btn {
    opacity: 1;
}

.todo-delete-btn:hover {
    background: rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.6);
    transform: scale(1.1);
}

.todo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c084fc;
    text-align: center;
    padding: 40px;
}

.todo-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(15, 5, 25, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-count {
    color: #d8b4fe;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}


/* Diary Application */
.diary-window {
    width: 600px;
    height: 800px;
    top: 60px;
    left: 150px;
    z-index: 100;
}

.diary-icon {
    font-size: 12px;
}

.diary-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(10, 5, 15, 0.9);
    overflow-y: auto;
}


.diary-entries-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: rgba(10, 5, 15, 0.6);
}

.diary-entry {
    background: rgba(15, 5, 25, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.diary-entry:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.diary-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.diary-entry-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diary-date {
    color: #d8b4fe;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}


.diary-updated {
    color: #c084fc;
    font-size: 10px;
    font-style: italic;
    opacity: 0.7;
}


.diary-entry-title {
    color: #e9d5ff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
    margin-bottom: 8px;
    word-break: break-word;
}

.diary-entry-content {
    color: #d8b4fe;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
    white-space: pre-wrap;
    word-break: break-word;
}

.diary-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c084fc;
    text-align: center;
    padding: 40px;
}

.diary-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.diary-empty .empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.diary-empty .empty-subtext {
    font-size: 12px;
    opacity: 0.7;
}

.diary-date-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    color: #e9d5ff;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.diary-date-item:hover {
    background: rgba(168, 85, 247, 0.15);
    padding-left: 24px;
}

.diary-read-indicator {
    font-size: 20px;
    font-weight: bold;
    color: #a855f7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.diary-date-text {
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
    font-weight: 500;
}

/* Diary Letter Window */
.diary-letter-window {
    width: 700px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.letter-container {
    height: 100%;
    padding: 20px;
    background: rgba(10, 5, 15, 0.9);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.letter-paper {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: rgba(15, 5, 25, 0.6);
    padding: 24px 32px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.letter-paper::before {
    display: none;
}

.letter-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.letter-date {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #c084fc;
    font-size: 16px;
    font-style: normal;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.letter-body {
    line-height: 1.6;
    color: #e9d5ff;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 100%;
}

.letter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #d8b4fe;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.letter-text {
    font-size: 13px;
    white-space: pre-wrap;
    color: #ddd6fe;
    line-height: 1.6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

.letter-icon {
    font-size: 12px;
}

/* B-Bot Application */
.b-bot-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(10, 5, 15, 0.9);
}

.b-bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.b-bot-message {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-items: flex-end;
}

.bot-message {
    align-items: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    position: relative;
}

.user-message .message-content {
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.bot-message .message-content {
    background: rgba(15, 5, 25, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.message-text {
    color: #e9d5ff;
    font-size: 12px;
    line-height: 1.5;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
    word-wrap: break-word;
    margin-bottom: 4px;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a855f7;
    opacity: 0.6;
    animation: thinking-pulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.thinking-dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.message-time {
    color: #c084fc;
    font-size: 10px;
    opacity: 0.7;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-top: 4px;
}

.b-bot-input-container {
    padding: 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(15, 5, 25, 0.8);
}

.b-bot-input {
    flex: 1;
    background: rgba(10, 5, 15, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: #e9d5ff;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    outline: none;
    transition: all 0.2s;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
}

.b-bot-input::placeholder {
    color: #c084fc;
    opacity: 0.6;
}

.b-bot-input:focus {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    background: rgba(10, 5, 15, 0.95);
}

.b-bot-send-btn {
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    white-space: nowrap;
}

.b-bot-send-btn:hover {
    background: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    text-shadow: 0 0 15px rgba(168, 85, 247, 1);
    transform: scale(1.05);
}

.b-bot-send-btn:active {
    transform: scale(0.98);
}

.b-bot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.b-bot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.8);
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Messaging Application (Signal-style) */
.messaging-window {
    width: 900px;
    height: 600px;
}

.messaging-icon svg,
.messaging-icon {
    width: 16px;
    height: 16px;
}

.messaging-window {
    top: 80px;
    left: 200px;
    z-index: 100;
}

.messaging-app {
    height: 100%;
    display: flex;
    background: rgba(10, 5, 15, 0.95);
    overflow: hidden;
}

.messaging-sidebar {
    width: 280px;
    border-right: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(15, 5, 25, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messaging-conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.messaging-conversation-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.messaging-conversation-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.messaging-conversation-item.active {
    background: rgba(168, 85, 247, 0.2);
    border-left: 3px solid #a855f7;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-name {
    font-size: 14px;
    font-weight: 600;
    color: #e9d5ff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 11px;
    color: #c084fc;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 8px;
}

.conversation-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.conversation-last-message {
    font-size: 12px;
    color: #d8b4fe;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.conversation-unread {
    background: #a855f7;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.messaging-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 5, 15, 0.9);
    position: relative;
}

.messaging-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messaging-chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messaging-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(15, 5, 25, 0.8);
    display: flex;
    align-items: center;
}

.messaging-chat-header-info {
    flex: 1;
}

.messaging-chat-header-name {
    font-size: 16px;
    font-weight: 600;
    color: #e9d5ff;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.messaging-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(10, 5, 15, 0.95);
}

.messaging-date-separator {
    text-align: center;
    padding: 12px 0;
    font-size: 11px;
    color: #c084fc;
    opacity: 0.7;
    text-transform: capitalize;
}

.messaging-message {
    display: flex;
    animation: fadeInMessage 0.3s ease-in;
}

.messaging-message.sent {
    justify-content: flex-end;
}

.messaging-message.received {
    justify-content: flex-start;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.messaging-message.sent .message-bubble {
    background: #9333ea;
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

.messaging-message.received .message-bubble {
    background: rgba(30, 30, 46, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.message-text {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.messaging-message.received .message-text {
    color: #e9d5ff;
    text-shadow: 0 0 6px rgba(168, 85, 247, 0.3);
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.messaging-message.received .message-time {
    color: #c084fc;
    opacity: 0.6;
}

.messaging-input-container {
    padding: 16px 20px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(15, 5, 25, 0.9);
    display: flex;
    gap: 12px;
    align-items: center;
}

.messaging-input {
    flex: 1;
    background: rgba(10, 5, 15, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 10px 16px;
    min-height: 44px;
    color: #e9d5ff;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    outline: none;
    transition: all 0.2s;
}

.messaging-input::placeholder {
    color: #c084fc;
    opacity: 0.6;
}

.messaging-input:focus {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    background: rgba(10, 5, 15, 0.95);
}

.messaging-send-btn {
    background: #9333ea;
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

.messaging-send-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.6);
    transform: translateY(-1px);
}

.messaging-send-btn:active {
    transform: translateY(0);
}

.messaging-empty-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    opacity: 0.6;
}

/* Detective App */
.detective-app {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 5, 15, 0.98) 0%, rgba(20, 10, 30, 0.98) 100%);
    position: relative;
}

.detective-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(192, 38, 211, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.detective-panel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
}

.detective-board {
    width: 95%;
    max-width: 1100px;
    min-height: auto;
    height: calc(100% - 40px);
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(192, 38, 211, 0.2) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(168, 85, 247, 0.06) 30px, rgba(168, 85, 247, 0.06) 31px),
        repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(168, 85, 247, 0.06) 30px, rgba(168, 85, 247, 0.06) 31px),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.25) 0%, transparent 75%);
    border: 4px solid rgba(168, 85, 247, 0.6);
    border-radius: 20px;
    padding: 30px 40px;
    position: relative;
    box-shadow: 
        inset 0 0 80px rgba(168, 85, 247, 0.2),
        0 0 100px rgba(168, 85, 247, 0.4),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.detective-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(192, 38, 211, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 16px;
    opacity: 0.8;
}

.detective-board::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.1);
}

.detective-criminals {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    flex-shrink: 0;
}

.detective-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.connection-line {
    display: none;
}

.detective-row {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.detective-row.top-row {
    justify-content: center;
}

.detective-row.bottom-row {
    justify-content: center;
}

.detective-criminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.detective-criminal:hover {
    transform: translateY(-4px) scale(1.05);
}

.detective-criminal:hover .criminal-photo {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(168, 85, 247, 0.7),
        inset 0 0 30px rgba(168, 85, 247, 0.3);
}

.detective-criminal.main:hover .criminal-photo {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 69, 0, 0.8),
        inset 0 0 35px rgba(255, 69, 0, 0.4);
}

.criminal-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 5, 15, 0.95) 0%, rgba(20, 10, 25, 0.95) 100%);
    border: 2px solid rgba(168, 85, 247, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(168, 85, 247, 0.4),
        inset 0 0 25px rgba(168, 85, 247, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.criminal-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    animation: rotate-shine 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate-shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.detective-criminal.main .criminal-photo {
    border-color: rgba(255, 69, 0, 0.8);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(255, 69, 0, 0.6),
        inset 0 0 30px rgba(255, 69, 0, 0.25);
}

.detective-criminal.main .criminal-photo::before {
    background: radial-gradient(circle, rgba(255, 69, 0, 0.3) 0%, transparent 70%);
}

.photo-placeholder {
    font-size: 60px;
    color: rgba(168, 85, 247, 0.7);
    text-shadow: 
        0 0 20px rgba(168, 85, 247, 0.9),
        0 0 40px rgba(168, 85, 247, 0.6);
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.7));
    transition: all 0.3s ease;
    z-index: 1;
}

.detective-criminal.main .photo-placeholder {
    font-size: 65px;
    color: rgba(255, 69, 0, 0.85);
    text-shadow: 
        0 0 25px rgba(255, 69, 0, 1),
        0 0 50px rgba(255, 69, 0, 0.7);
    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.8));
}

.criminal-name {
    font-size: 16px;
    font-weight: 600;
    color: #e9d5ff;
    text-transform: lowercase;
    text-shadow: 
        0 0 10px rgba(168, 85, 247, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 4px;
}

.detective-criminal.main .criminal-name {
    color: #ff8c69;
    text-shadow: 
        0 0 15px rgba(255, 69, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    font-weight: 700;
}

.detective-icon {
    font-size: 12px;
}

.detective-icon svg {
    display: block;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

.detective-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: visible;
    min-height: 0;
}

.city-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 6px 6px 16px 6px;
    border-radius: 4px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 110px;
    overflow: visible;
    flex-shrink: 0;
}

.city-photo:hover {
    transform: translateY(-8px) scale(1.05) rotate(2deg);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(168, 85, 247, 0.3);
}

.city-photo img {
    width: 98px;
    height: 98px;
    object-fit: cover;
    border-radius: 2px;
    border: none;
    box-shadow: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    display: block;
}

.city-photo:hover img {
    box-shadow: none;
    border: none;
}

.city-photo::before {
    display: none;
}

.city-name {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    text-transform: lowercase;
    text-shadow: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.city-photo:hover .city-name {
    color: #000;
    text-shadow: none;
}

/* Bottom Dock */
.bottom-dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.5);
    z-index: 1000;
}

.dock-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

a.dock-item {
    text-decoration: none;
    color: inherit;
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.dock-item.active {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
}

.dock-item.active::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 1);
}

.dock-icon {
    font-size: 24px;
}

.email-count-badge,
.todo-count-badge,
.messaging-count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #c9c1ca;
    color: #000;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.8);
    border: 2px solid rgba(20, 10, 30, 0.95);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.dock-separator {
    width: 1px;
    height: 32px;
    background: rgba(168, 85, 247, 0.4);
    margin: 0 4px;
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.6);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 5, 15, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    /* Desktop container padding for fixed top panel */
    .desktop {
        padding-top: 40px;
    }
    
    /* Top Panel */
    .top-panel {
        height: 40px;
        padding: 0 8px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .menu-button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .clock {
        font-size: 11px;
    }
    
    .tray-icon {
        width: 20px;
        height: 20px;
    }
    
    .apod-box {
        width: calc(100% - 40px);
        max-width: 240px;
        bottom: 20px;
        right: 20px;
    }
    
    .apod-box-image-container {
        height: 130px;
    }
    
    .apod-box-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
        min-width: 28px;
        flex-shrink: 0;
    }
    
    .apod-popup-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .apod-popup-image-container {
        max-height: 50vh;
    }
    
    .apod-popup-image {
        max-height: 50vh;
    }
    
    .apod-title {
        font-size: 16px;
    }
    
    .apod-popup-explanation {
        font-size: 13px;
        padding: 16px;
        max-height: 150px;
    }
    
    /* Music Player */
    .music-player {
        width: calc(100% - 40px);
        max-width: 360px;
        top: 20px;
        right: 20px;
    }
    
    .music-player-header {
        gap: 8px;
    }
    
    .music-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
        min-width: 28px;
        flex-shrink: 0;
    }
    
    .music-toggle {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    /* Windows */
    .terminal-window {
        width: 95%;
        height: 60vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .email-window {
        width: 95%;
        height: 70vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .email-layout {
        flex-direction: column;
    }
    
    .email-sidebar {
        width: 100%;
        max-height: 120px;
        border-right: none;
        border-bottom: 1px solid rgba(168, 85, 247, 0.3);
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
    }
    
    .email-folder {
        flex-shrink: 0;
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .email-toolbar {
        flex-wrap: wrap;
        height: auto;
        padding: 8px;
        gap: 6px;
    }
    
    .email-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .todo-window {
        width: 95%;
        height: 70vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .diary-window {
        width: 95%;
        height: 75vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .diary-letter-window {
        width: 95%;
        height: 70vh;
    }
    
    
    .home-window {
        width: 95%;
        height: 70vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .b-bot-window {
        width: 95%;
        height: 70vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .artwork-window {
        width: 95%;
        height: 60vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .messaging-window {
        width: 95%;
        height: 70vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .messaging-app {
        flex-direction: column;
    }
    
    .messaging-sidebar {
        width: 100%;
        max-height: 40%;
        border-right: none;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .messaging-main {
        flex: 1;
        min-height: 0;
    }
    
    .messaging-conversation-item {
        padding: 10px 12px;
    }
    
    .conversation-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 10px;
    }
    
    .conversation-name {
        font-size: 13px;
    }
    
    .conversation-time {
        font-size: 10px;
    }
    
    .conversation-last-message {
        font-size: 11px;
    }
    
    .messaging-chat-header {
        padding: 12px 16px;
    }
    
    .messaging-chat-header-name {
        font-size: 14px;
    }
    
    .messaging-messages {
        padding: 12px 16px;
        gap: 6px;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 8px 12px;
    }
    
    .message-text {
        font-size: 12px;
    }
    
    .message-time {
        font-size: 9px;
    }
    
    .messaging-input-container {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .messaging-input {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .messaging-send-btn {
        padding: 10px 18px;
        font-size: 11px;
        min-width: 60px;
    }
    
    /* Window Header */
    .window-header {
        height: 40px;
        padding: 0 8px;
    }
    
    .window-title {
        font-size: 10px;
    }
    
    .control {
        width: 16px;
        height: 16px;
    }
    
    /* Bottom Dock */
    .bottom-dock {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 8px;
        gap: 4px;
        max-width: calc(100% - 20px);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .bottom-dock::-webkit-scrollbar {
        height: 4px;
    }
    
    .dock-item {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .dock-icon {
        font-size: 20px;
    }
    
    /* Desktop Icons */
    .desktop-icons {
        display: none;
    }
    
    /* Terminal */
    .terminal {
        padding: 12px;
        font-size: 12px;
    }
    
    .prompt {
        font-size: 12px;
    }
    
    .terminal-input-main {
        font-size: 12px;
    }
    
    /* File Manager */
    .file-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .file-icon-large {
        font-size: 36px;
    }
    
    .file-name {
        font-size: 10px;
    }
    
    /* Todo */
    .todo-input-container {
        padding: 12px;
    }
    
    .todo-input {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .todo-add-btn {
        padding: 8px 16px;
        font-size: 16px;
        min-width: 40px;
    }
    
    .todo-item {
        padding: 10px;
    }
    
    .todo-text {
        font-size: 12px;
    }
    
    /* Diary */
    .diary-input-container {
        padding: 12px;
    }
    
    .diary-title-input,
    .diary-content-input {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .diary-content-input {
        min-height: 80px;
    }
    
    .diary-save-btn,
    .diary-cancel-btn,
    .diary-new-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .diary-entry {
        padding: 12px;
    }
    
    .diary-entry-title {
        font-size: 14px;
    }
    
    .diary-entry-content {
        font-size: 12px;
    }
    
    /* B-Bot */
    .b-bot-input-container {
        padding: 12px;
    }
    
    .b-bot-input {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .b-bot-send-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 8px 12px;
    }
    
    .message-text {
        font-size: 12px;
    }
    
    /* Email */
    .email-item {
        padding: 12px;
    }
    
    .email-item-from {
        font-size: 12px;
    }
    
    .email-item-subject {
        font-size: 13px;
    }
    
    .email-item-preview {
        font-size: 11px;
    }
    
    .email-view-content {
        padding: 16px;
        font-size: 12px;
    }
    
    /* Letter */
    .letter-container {
        padding: 12px;
    }
    
    .letter-paper {
        padding: 16px 20px;
    }
    
    .letter-title {
        font-size: 16px;
    }
    
    .letter-text {
        font-size: 12px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Desktop container padding for fixed top panel */
    .desktop {
        padding-top: 44px;
    }
    
    .top-panel {
        height: 44px;
        padding: 0 6px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .menu-button {
        padding: 8px 8px;
        font-size: 10px;
    }
    
    .clock {
        font-size: 10px;
    }
    
    .music-player {
        width: calc(100% - 12px);
        max-width: none;
        top: 54px;
        right: 6px;
    }
    
    .apod-box {
        width: calc(100% - 12px);
        max-width: 240px;
        bottom: 6px;
        right: 6px;
    }
    
    .apod-box-content {
        padding: 10px;
    }
    
    .apod-box-image-container {
        height: 100px;
    }
    
    .apod-box-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .music-player-content {
        padding: 10px;
    }
    
    .music-title {
        font-size: 10px;
    }
    
    .music-toggle {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }
    
    .terminal-window,
    .email-window,
    .todo-window,
    .diary-window,
    .home-window,
    .b-bot-window,
    .artwork-window,
    .messaging-window {
        width: 100%;
        height: calc(100vh - 44px);
        top: 44px;
        left: 0;
        transform: none;
        border-radius: 0;
        max-height: calc(100vh - 44px);
    }
    
    .messaging-app {
        flex-direction: column;
    }
    
    .messaging-sidebar {
        width: 100%;
        max-height: 35%;
        border-right: none;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }
    
    .messaging-conversation-list {
        overflow-y: auto;
        overflow-x: hidden;
        padding: 4px 0;
    }
    
    .messaging-conversation-item {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(168, 85, 247, 0.1);
        border-right: none;
        min-width: auto;
    }
    
    .conversation-avatar {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    .conversation-name {
        font-size: 13px;
    }
    
    .conversation-time {
        font-size: 9px;
    }
    
    .conversation-last-message {
        font-size: 11px;
    }
    
    .conversation-unread {
        font-size: 10px;
        padding: 2px 5px;
        min-width: 16px;
    }
    
    .messaging-main {
        flex: 1;
        min-height: 0;
    }
    
    .messaging-chat-header {
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .messaging-chat-header-name {
        font-size: 14px;
    }
    
    .messaging-messages {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 8px 12px;
        border-radius: 16px;
    }
    
    .messaging-message.sent .message-bubble {
        border-bottom-right-radius: 4px;
    }
    
    .messaging-message.received .message-bubble {
        border-bottom-left-radius: 4px;
    }
    
    .message-text {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .message-time {
        font-size: 9px;
        margin-top: 3px;
    }
    
    .messaging-date-separator {
        padding: 8px 0;
        font-size: 10px;
    }
    
    .messaging-input-container {
        padding: 10px 12px;
        gap: 8px;
        min-height: 60px;
    }
    
    .messaging-input {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .messaging-send-btn {
        padding: 10px 16px;
        font-size: 11px;
        min-width: 60px;
        border-radius: 20px;
    }
    
    .messaging-empty-messages {
        padding: 20px;
    }
    
    .messaging-empty-messages .empty-icon {
        font-size: 48px;
    }
    
    .messaging-empty-messages .empty-text {
        font-size: 14px;
    }
    
    .diary-letter-window {
        width: 100%;
        height: calc(100vh - 100px);
        top: 50px;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    
    .window-header {
        height: 44px;
        padding: 0 6px;
    }
    
    .control {
        width: 18px;
        height: 18px;
    }
    
    .bottom-dock {
        bottom: 8px;
        padding: 6px;
        gap: 3px;
        max-width: calc(100% - 16px);
    }
    
    .dock-item {
        width: 40px;
        height: 40px;
    }
    
    .dock-icon {
        font-size: 18px;
    }
    
    .email-sidebar {
        max-height: 100px;
        padding: 6px;
    }
    
    .email-folder {
        padding: 6px 10px;
        min-width: 70px;
        font-size: 11px;
    }
    
    .email-toolbar {
        padding: 6px;
    }
    
    .email-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .todo-input-container {
        padding: 10px;
    }
    
    .diary-input-container {
        padding: 10px;
    }
    
    .b-bot-input-container {
        padding: 10px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 6px 10px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    /* Desktop container padding for fixed top panel */
    .desktop {
        padding-top: 36px;
    }
    
    .top-panel {
        height: 36px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .music-player {
        top: 46px;
        width: 200px;
    }
    
    .apod-box {
        bottom: 8px;
        right: 8px;
        width: 220px;
    }
    
    .apod-box-image-container {
        height: 120px;
    }
    
    .apod-box-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .terminal-window,
    .email-window,
    .todo-window,
    .diary-window,
    .home-window,
    .b-bot-window,
    .artwork-window,
    .messaging-window {
        height: calc(100vh - 80px);
    }
    
    .messaging-sidebar {
        max-height: 30%;
    }
    
    .messaging-conversation-item {
        padding: 8px 10px;
    }
    
    .conversation-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .messaging-messages {
        padding: 8px 12px;
    }
    
    .message-bubble {
        max-width: 80%;
        padding: 6px 10px;
    }
    
    .messaging-input-container {
        padding: 8px 12px;
    }
    
    .diary-letter-window {
        height: calc(100vh - 80px);
    }
    
    .bottom-dock {
        bottom: 8px;
        padding: 4px 6px;
    }
    
    .dock-item {
        width: 36px;
        height: 36px;
    }
}

/* Touch Target Improvements */
@media (max-width: 768px) {
    /* Ensure minimum touch target size of 44x44px */
    .menu-button,
    .tray-icon,
    .apod-box-close,
    .control,
    .toolbar-btn,
    .email-btn,
    .todo-add-btn,
    .todo-checkbox,
    .todo-delete-btn,
    .diary-save-btn,
    .diary-cancel-btn,
    .diary-new-btn,
    .diary-edit-btn,
    .diary-delete-btn,
    .b-bot-send-btn,
    .back-btn,
    .messaging-send-btn,
    .messaging-conversation-item {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Messaging specific touch improvements */
    .messaging-conversation-item {
        min-height: 60px;
        -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
        -webkit-touch-callout: none;
    }
    
    .messaging-input-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .messaging-messages {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .messaging-conversation-list {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Prevent text selection on interactive elements */
    .menu-button,
    .dock-item,
    .desktop-icon,
    .file-item,
    .email-item,
    .todo-item,
    .diary-entry,
    .messaging-conversation-item {
        -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
        -webkit-touch-callout: none;
        user-select: none;
    }
    
    /* Allow text selection in message bubbles */
    .message-text {
        user-select: text;
        -webkit-user-select: text;
    }
    
    .kaboom-text {
        font-size: 60px;
        -webkit-text-stroke: 1px #000;
        text-stroke: 1px #000;
        text-shadow: 
            0 0 5px rgba(168, 85, 247, 0.8),
            0 0 10px rgba(168, 85, 247, 0.8),
            0 0 15px rgba(168, 85, 247, 1),
            0 0 20px rgba(192, 38, 211, 0.6),
            2px 2px 0px #000,
            -2px -2px 0px #000,
            2px -2px 0px #000,
            -2px 2px 0px #000,
            0 0 0 2px #000;
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 25px rgba(192, 38, 211, 0.5));
    }
}




/* Kamikaze Explosion Effect */
@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-10px, -10px) rotate(-5deg); }
    20% { transform: translate(10px, 10px) rotate(5deg); }
    30% { transform: translate(-10px, 10px) rotate(-5deg); }
    40% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-10px, -10px) rotate(-5deg); }
    60% { transform: translate(10px, 10px) rotate(5deg); }
    70% { transform: translate(-10px, 10px) rotate(-5deg); }
    80% { transform: translate(10px, -10px) rotate(5deg); }
    90% { transform: translate(-10px, -10px) rotate(-5deg); }
}

@keyframes explode {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(3) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(5) rotate(360deg);
        opacity: 0;
    }
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    90% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes kaboom-text {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(1) rotate(10deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

.explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
}

.explosion-particle {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    filter: drop-shadow(0 0 4px rgba(255, 105, 180, 0.8));
}

.kaboom-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    font-size: 80px;
    font-weight: 900;
    color: #a855f7;
    white-space: nowrap;
    text-shadow: 
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.8),
        0 0 30px rgba(168, 85, 247, 1),
        0 0 40px rgba(192, 38, 211, 0.6),
        3px 3px 0px #000,
        -3px -3px 0px #000,
        3px -3px 0px #000,
        -3px 3px 0px #000,
        0 0 0 4px #000;
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    pointer-events: none;
    z-index: 10001;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    animation: kaboom-text 3s ease-out forwards;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 50px rgba(192, 38, 211, 0.5));
}

.desktop.shaking {
    animation: shake 0.5s ease-in-out;
}

