/* desktop.css */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Windows-like font */
    background-color: #ffffff; /* Default background color */
    overflow: hidden; /* Prevent scrolling */
}

#desktop {
    position: relative;
    width: 100%;
    height: calc(100vh - 40px); /* Subtract height of taskbar */
    background-image: url('../assets/images/backgrounds/desktop1.jpg'); /* Background image */
    background-size: cover; /* Ensure the background covers the entire area */
    background-position: center; /* Center the background image */
    overflow: hidden; /* Hide overflow content */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    overflow: hidden;
}

#desktop {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.window {
    position: absolute;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    z-index: 1;
    overflow: hidden;
}

.window-titlebar {
    background-color: #007bff;
    color: #fff;
    padding: 5px;
    cursor: move;
    user-select: none;
}

.window-title {
    float: left;
}

.window-controls {
    float: right;
}

.window-control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    outline: none;
}

.window-content {
    padding: 10px;
    height: calc(100% - 30px);
    overflow-y: auto;
}

.resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    cursor: pointer;
}

.resize-top {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.resize-bottom {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.resize-left {
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
}

.resize-right {
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
}

.resize-top-left {
    top: -4px;
    left: -4px;
}

.resize-top-right {
    top: -4px;
    right: -4px;
}

.resize-bottom-left {
    bottom: -4px;
    left: -4px;
}

.resize-bottom-right {
    bottom: -4px;
    right: -4px;
}
