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

html,body{
    height: 100%;
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.desktop{
    height: 100%;
    width: 100%;
    background-image: url('./images/macos-bg.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
}

.desktop-main{
    width: 100%;
    padding: 20px;
    /* background-color: aquamarine; */
    display: flex;
    justify-content: space-between;
}

.widgets{
    background-color: green;
}

.files{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap-reverse;
    gap: 25px;
    max-height: 100vh;
}

.file{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.file-img{
    width: 80px;
}

.file-img:hover{
    background-color: rgba(0, 0, 0, 0.298);
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
}

.file-select {
    background-color: rgba(0, 0, 0, 0.298);
    border-radius: 10px;
    padding: 5px;
}

.file-select .file-text h3 {
    background-color: rgba(56, 56, 240, 0.906);
    padding: 5px;
    border-radius: 5px;
}



.file-img img{
    width: 100%;
}

.file-text h3{
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
}



.dock{
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.21);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.dock-icon {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.dock-icon:hover {
    transform: scale(1.5);
}

.dock-icon img{
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tab{
    position: fixed;
    width: 90vw;
    height: 85vh;
    max-width: 60rem;
    max-height: 45rem;
    background-color: rgba(0, 0, 0, 0.351);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    padding: 20px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: all 0.3s ease-in-out;
}

.tab-border{
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    height: 10px;
}

.tab-border .red{
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: red;
}

.tab-border .yellow{
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: yellow;
}

.tab-border .green{
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: green;
}

.right-click-menu{
    position: absolute;
    z-index: 3000;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.309);
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    display: none;
}

.right-click-menu h3{
    font-size: 12px;
    color: white;
    font-weight: 300;
    padding: 5px;
}

.right-click-menu h3:hover{
    cursor: pointer;
    background-color: rgba(43, 43, 236, 0.906);
    border-radius: 8px;
}




/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .dock {
        padding: 10px;
        gap: 15px;
        bottom: 5px;
    }
    
    .dock-icon img {
        width: 35px;
        height: 35px;
    }

    .tab {
        width: 95vw;
        height: 90vh;
        padding: 15px;
        border-radius: 20px;
    }

    .tab-border .red,
    .tab-border .yellow,
    .tab-border .green {
        height: 12px;
        width: 12px;
    }
}

@media (max-width: 480px) {
    .dock {
        padding: 8px;
        gap: 10px;
        flex-wrap: wrap;
        max-width: 90vw;
    }
    
    .dock-icon img {
        width: 30px;
        height: 30px;
    }

    .tab {
        width: 98vw;
        height: 95vh;
        padding: 10px;
        border-radius: 15px;
    }

    .tab-border {
        gap: 8px;
    }

    .tab-border .red,
    .tab-border .yellow,
    .tab-border .green {
        height: 10px;
        width: 10px;
    }
}
