.win-d402cca1-workspace {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: transparent;
    overflow: hidden;
}

.win-d402cca1-box {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

/* Retro Themes 95 */
.win-d402cca1-theme-95 .win-d402cca1-box {
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 2px;
}

.win-d402cca1-theme-95 .win-d402cca1-header {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px;
    cursor: move;
    font-family: "Courier New", monospace, sans-serif;
    font-weight: bold;
    font-size: 13px;
    user-select: none;
}

.win-d402cca1-theme-95 .win-d402cca1-header-title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.win-d402cca1-theme-95 .win-d402cca1-icon i,
.win-d402cca1-theme-95 .win-d402cca1-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    font-size: 14px;
}

.win-d402cca1-theme-95 .win-d402cca1-controls {
    display: flex;
    gap: 3px;
}

.win-d402cca1-theme-95 .win-d402cca1-btn {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000000;
    font-size: 10px;
    width: 16px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-weight: bold;
}

.win-d402cca1-theme-95 .win-d402cca1-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    padding-top: 1px;
    padding-left: 1px;
}

.win-d402cca1-theme-95 .win-d402cca1-body {
    background-color: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 10px;
    margin-top: 2px;
    flex-grow: 1;
    color: #000000;
    font-family: "Courier New", monospace, sans-serif;
    min-height: 100px;
    overflow-y: auto;
}

/* XP Theme */
.win-d402cca1-theme-xp .win-d402cca1-box {
    background-color: #ece9d8;
    border: 3px solid #0054e3;
    border-top-width: 0;
    border-radius: 5px 5px 0 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.win-d402cca1-theme-xp .win-d402cca1-header {
    background: linear-gradient(to bottom, #0058e6 0%, #2480ff 50%, #0058e6 100%);
    border-radius: 5px 5px 0 0;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    cursor: move;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 1px #000;
}

.win-d402cca1-theme-xp .win-d402cca1-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.win-d402cca1-theme-xp .win-d402cca1-icon i,
.win-d402cca1-theme-xp .win-d402cca1-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.win-d402cca1-theme-xp .win-d402cca1-controls {
    display: flex;
    gap: 4px;
}

.win-d402cca1-theme-xp .win-d402cca1-btn {
    background-color: #0054e3;
    border: 1px solid #ffffff;
    border-radius: 3px;
    color: #ffffff;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.4);
}

.win-d402cca1-theme-xp .win-d402cca1-btn-close {
    background-color: #e04313;
}

.win-d402cca1-theme-xp .win-d402cca1-body {
    background-color: #ffffff;
    padding: 12px;
    flex-grow: 1;
    font-family: "Tahoma", sans-serif;
    font-size: 13px;
    color: #000000;
    min-height: 100px;
    overflow-y: auto;
}

/* Dark Theme */
.win-d402cca1-theme-dark .win-d402cca1-box {
    background-color: #1e1e1e;
    border: 1px solid #3c3c3c;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 6px;
}

.win-d402cca1-theme-dark .win-d402cca1-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #3c3c3c;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: move;
    font-family: sans-serif;
    font-size: 12px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.win-d402cca1-theme-dark .win-d402cca1-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-d402cca1-theme-dark .win-d402cca1-icon i,
.win-d402cca1-theme-dark .win-d402cca1-icon svg {
    width: 14px;
    height: 14px;
    fill: #aaaaaa;
}

.win-d402cca1-theme-dark .win-d402cca1-controls {
    display: flex;
    gap: 8px;
}

.win-d402cca1-theme-dark .win-d402cca1-btn {
    background: transparent;
    border: none;
    color: #aaaaaa;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
}

.win-d402cca1-theme-dark .win-d402cca1-btn:hover {
    background-color: #3e3e3e;
    color: #ffffff;
}

.win-d402cca1-theme-dark .win-d402cca1-btn-close:hover {
    background-color: #e81123;
    color: #ffffff;
}

.win-d402cca1-theme-dark .win-d402cca1-body {
    padding: 15px;
    color: #e0e0e0;
    font-family: sans-serif;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100px;
    overflow-y: auto;
}

/* Maximized Window Styles */
.win-d402cca1-box.maximized {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

/* Minimized State */
.win-d402cca1-box.minimized {
    height: auto !important;
}
.win-d402cca1-box.minimized .win-d402cca1-body {
    display: none !important;
}

/* Dragging visual hint */
.win-d402cca1-box:active {
    opacity: 0.95;
}
