/* Application Window */
.appWindow {
    position: absolute;

    display: flex;
    flex-direction: column;

    z-index: 5;
    background-color: #efecde;
    /* Allow resize handles to be visible outside window edges */
    overflow: visible;

    transition: all 0.1s;
}
/* Resize handle for window resizing */
/* Base style for resize handles */
.appWindow .resize-handle {
    position: absolute;
    z-index: 25; /* ensure handles are above content */
}
/* Directional resize handles (full edge length, placed outside) */
.appWindow:not(.fullscreen) .resize-handle.n {
    top: -8px;
    left: 0;
    width: 100%;
    height: 16px;
    cursor: n-resize;
}
.appWindow:not(.fullscreen) .resize-handle.s {
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 16px;
    cursor: s-resize;
}
.appWindow:not(.fullscreen) .resize-handle.e {
    right: -8px;
    top: 0;
    width: 16px;
    height: 100%;
    cursor: e-resize;
}
.appWindow:not(.fullscreen) .resize-handle.w {
    left: -8px;
    top: 0;
    width: 16px;
    height: 100%;
    cursor: w-resize;
}
/* Corners (outside) */
.appWindow:not(.fullscreen) .resize-handle.ne {
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    cursor: ne-resize;
}
.appWindow:not(.fullscreen) .resize-handle.nw {
    top: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    cursor: nw-resize;
}
.appWindow:not(.fullscreen) .resize-handle.se {
    bottom: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    cursor: se-resize;
}
.appWindow:not(.fullscreen) .resize-handle.sw {
    bottom: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    cursor: sw-resize;
}
.appwindow.fullscreen .resize-handle {
    cursor: default !important;
}
/* Overlay during drag/resize */
.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: move;
    background: transparent;
}
/* Prevent selecting iframe content when dragging */
.appWindow .appContent {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.appHeader {
    width: 100%;
    height: 40px;

    position: relative;
    background-image: linear-gradient(to top, #005ef9, #0055e5, #0055e5, #3790fd);

    display: flex;
    align-items: center;

    user-select: none;
}
.headerUnfocus {
    background-image: linear-gradient(to top, #2e7af5, #2b6de0, #3777e6, #7ab1f5);
}

.appIcon {
    height: 70%;
    pointer-events: none;
}
.appName {
    width: 100%;
    height: 100%;
    
    display: flex;
    align-items: center;
    padding-left: 5px;
}

.selectBox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 160px;
    height: 100%;
}
.selectBtns {
    height: 30px;
    width: 30px;

    border: 2px solid white;
    border-radius: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: none;

   cursor: url("../../assets/cursor/cursor.cur");
}
.screenImg {
    max-width: 100%;
    max-height: 100%;
    padding: 5px;
}
.appClose {
    background-image: linear-gradient(to bottom right, #efa693, #e07358, #e3523f, #d64418, #d13707);
}

.appMain {
    width: 100%;
    height: 100%;

    border-color: #005ef9;
    border-style: solid;
    border-top: 0;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mainUnfocus {
    border-color: #2e7af5;
}

.appContent, .appOverlay {
    height: 100%;
    width: 100%;

    padding: 0;
    margin: 0;
    border: none;
}
.appOverlay {
    position: absolute;
}