/* Desktop và Wallpaper Styling */
#desktop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30px; /* Để chỗ cho taskbar */
    background: #008080; /* Teal default wallpaper */
    background-image: url('../assets/images/wallpapers/default.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.desktop-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.desktop-icon.selected {
    background: rgba(0, 0, 255, 0.4);
    border: 1px solid rgba(0, 0, 255, 0.6);
    color: white;
}

.desktop-icon:active {
    background: rgba(0, 0, 255, 0.6);
    transform: translateY(1px);
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.desktop-icon span {
    font-size: 11px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    word-wrap: break-word;
    max-width: 72px;
    line-height: 1.2;
    margin-top: 2px;
}

/* Desktop context menu styles moved to components.css */
/*
 Desktop Icon Grid Layout */
.desktop-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-gap: 20px;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive Desktop Icons */
@media (max-width: 800px) {
    .desktop-icon {
        width: 70px;
        height: 70px;
    }
    
    .desktop-icon img {
        width: 28px;
        height: 28px;
    }
    
    .desktop-icon span {
        font-size: 10px;
        max-width: 62px;
    }
}

@media (max-width: 600px) {
    .desktop-icon {
        width: 60px;
        height: 60px;
    }
    
    .desktop-icon img {
        width: 24px;
        height: 24px;
    }
    
    .desktop-icon span {
        font-size: 9px;
        max-width: 52px;
    }
}

/* Desktop Icon Animation */
.desktop-icon {
    transition: all 0.2s ease;
}

.desktop-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.desktop-icon.selected {
    animation: iconSelect 0.3s ease;
}

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