.window {
border: 2px dotted #ccc;
position: absolute;
border-radius: 10px;
box-sizing: border-box;
transform: scale(1);
transition: transform 0.2s, width 0.2s, height 0.2s;
z-index: 100;
}

.window:not(.window_no_animation):not(.window_moving) {
    transition: transform 0.2s, width 0.1s, height 0.1s;
}

.window * {
    position: relative;
    box-sizing: border-box;
}

.window_alway_on_top {
    z-index: 101;
}

.window_selected {
    z-index: 1000 !important;
}

.window_alway_on_top.window_selected {
    z-index: 1001 !important;
}

.window .window_bar {
    background: rgba(25, 130, 196,0.95);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
    height: 2em;
}

.window .window_bar, .text_not_selectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .window .window_bar > * {
        display: inline-block;
    }

    .window .window_bar * {
        transition: all 0.2s;
    }

    .window .window_bar .window_icon {
        margin: 0 10px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
    }

    .window .window_bar .window_title {
        cursor: default;
        padding: 5px;
        overflow: hidden;
        max-width: calc(100% - 70px);
        vertical-align: middle;
        font-size:.9rem;
        font-weight:700;

    }

    .window .window_bar .window_toggle_buttons {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        vertical-align: top;
        margin-left: 10px;
        z-index: 2;
    }

        .window .window_bar .window_toggle_buttons:after {
            clear: both;
        }

        .window .window_bar .window_toggle_buttons > * {
            padding-top: 2px;
            padding-bottom: 5px;
            width: 2em;
            text-align: center;
            cursor: pointer;
            height: 100%;
            overflow: hidden;
            display: inline-block;
        }

            .window .window_bar .window_toggle_buttons > *:hover {
                background-color: #ccc;
            }

.window.window_not_maximizable .window_button_toggle_maximize, .window.window_not_minimizable .window_button_minimize {
    display: none;
}

.window .window_bar .window_toggle_buttons .window_button_close:hover {
    background-color: #ccc;
}

.window .window_content {
    overflow: auto;
    /*color: white;*/
    background: rgba(245, 246, 250,0.95);
    position: absolute;
    top: 2em;
    right: 0;
    left: 0;
    bottom: 0;
}

.window.window_maximized:not(.window_minimized) {
    top: 55px !important;
    left: 5px !important;
    right: 0 !important;
    bottom: 0 !important;
    width: calc(100% - 10px) !important;
    height: calc(100% - 100px) !important;
}

/* MINIMIZED STYLES - Modified to hide completely when minimized */
.window.window_minimized {
    display: none !important;
}

.window.window_hidden {
    display: none;
}

.window.window_selected {
    -webkit-box-shadow: 0px 0px 17px -4px rgba(0,0,0,0.73);
    -moz-box-shadow: 0px 0px 17px -4px rgba(0,0,0,0.73);
    box-shadow: 0px 0px 17px -4px rgba(0,0,0,0.73);
}

    .window.window_selected .window_bar {
        background-color: #ddd;
    }

        .window.window_selected .window_bar .window_toggle_buttons .window_button_close:hover {
            background-color: #f12;
            color: #fff;
        }

.window.window_maximized .window_resize_handle,
.window.window_not_resizable .window_resize_handle,
.window.window_resizing .window_resize_handle {
    display: none;
}

.window .window_resize_handle {
    position: absolute;
    display: block;
    opacity: 0;
}

.window .window_resize_handle_n, .window_resize_handle_s {
    height: 3px;
    left: 0;
    right: 0;
}

.window .window_resize_handle_w, .window .window_resize_handle_e {
    width: 3px;
    top: 0;
    bottom: 0;
}

.window .window_resize_handle_n,
.window .window_resize_handle_ne,
.window .window_resize_handle_nw {
    top: -3px;
}

.window .window_resize_handle_s,
.window .window_resize_handle_se,
.window .window_resize_handle_sw {
    bottom: -3px;
}

.window .window_resize_handle_w,
.window .window_resize_handle_sw,
.window .window_resize_handle_nw {
    left: -3px;
}

.window .window_resize_handle_e,
.window .window_resize_handle_ne,
.window .window_resize_handle_se {
    right: -3px;
}

.window .window_resize_handle_ne,
.window .window_resize_handle_se,
.window .window_resize_handle_sw,
.window .window_resize_handle_nw {
    width: 3px;
    height: 3px;
}

.window.window_bar_hidden .window_bar {
    display: none;
}

.window.window_bar_hidden .window_content {
    top: 0;
}

/* TASKBAR STYLES - Updated with new color scheme */
#MainFooter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background-color: #1982c4;
    border-top: 1px solid #ccc;
    height: 45px;
    align-items: center;
    overflow-x :hidden;
    overflow-y:auto
}

.taskbar_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #f5f6fa;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    max-width: 200px;
    height: 24px;
}

    .taskbar_item:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
        background: white;
    }

    .taskbar_item:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.taskbar_item_minimized {
    opacity: 0.7;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

    .taskbar_item_minimized:hover {
        opacity: 1;
        background: linear-gradient(135deg, #a8b8b9 0%, #8d9a9b 100%);
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }

.taskbar_item_icon {
    font-size: 14px;
    flex-shrink: 0;
}

.taskbar_item_title {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .taskbar_item {
        min-width: 100px;
        max-width: 150px;
        padding: 4px 8px;
        height: 22px;
    }

    .taskbar_item_title {
        font-size: 10px;
    }

    .taskbar_item_icon {
        font-size: 12px;
    }

    #MainFooter {
        height: 28px;
    }
}

/* Animation for taskbar items appearing/disappearing */
@keyframes taskbarItemAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.taskbar_item {
    animation: taskbarItemAppear 0.3s ease-out;
}

 