/*
 * This file is part of the GiDiNet website (www.gidinet.com).
 * Public availability does not imply an open-source license.
 * All rights reserved. Copying, modification or reuse is prohibited
 * without prior written permission.
 */

.floating-window {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 400px;
    background-color: #ffffff;
    border: 1px solid #DCDCDC;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    resize: both;
    overflow: auto;
    font-family: Arial, sans-serif;
}

.floating-window.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 9999;
}

.floating-window.minimized {
    height: auto !important;
    width: 300px;
    resize: none;
}

.floating-window.minimized .window-body {
    display: none;
}

.floating-window.focused {
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    border: 2px solid #426184;
}

.window-header {
    background-color: #426184;
    color: white;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-title {
    font-weight: bold;
    font-size: 0.95em;
    text-transform: uppercase;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
}

.modal-button svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: currentColor;
}

.modal-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #f7c600;
}

.modal-button.close-btn:hover {
    color: #e74c3c;
}

.modal-button.max-btn:hover {
    color: #2ecc71;
}

.modal-button.min-btn:hover {
    color: #3498db;
}

.window-body {
    flex: 1;
    padding: 10px;
    overflow: auto;
    background: #fff;
    font-size: 0.9em;
}
