﻿/*
 * 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.
 */

.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.modal-backdrop {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 6px;
    border: 1px solid #DCDCDC;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1;
    min-width: 320px;
    max-width: 600px;
    color: #00457c;
    font-size: 0.95em;
}

.modal-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00457c;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #909090;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.modal-buttons {
    margin-top: 1.5rem;
    text-align: right;
}

.modal-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #426184;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

    .modal-button:hover {
        background-color: #4a6aa5;
    }

    .modal-button:hover {
        background-color: #2e4865;
    }

/* Toasts */

.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    font-family: Arial, sans-serif;
}

.toast-container-local {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    opacity: 0.95;
    animation: fadeInOut 4s ease forwards;
}

/* Toast Theme Variants */

.toast-info {
    background-color: #426184;
}

.toast-success {
    background-color: #2ecc71;
}

.toast-error {
    background-color: #e74c3c;
}

.toast-warning {
    background-color: #fff3cd;
    color: #00457c;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 0.95;
        transform: translateY(0);
    }

    90% {
        opacity: 0.95;
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}


.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;
}

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

.window-controls button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    margin-left: 5px;
    cursor: pointer;
}

.window-body {
    padding: 10px;
    overflow: auto;
}

.modal-button svg {
    vertical-align: middle;
    width: 14px;
    height: 14px;
}

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

.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;
}

.window-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    background-color: transparent;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

    .window-icon svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: currentColor;
    }

    .window-icon:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: #f7c600; /* hover color (yellow) */
    }

    .window-icon.close-btn:hover {
        color: #e74c3c; /* red for close */
    }

    .window-icon.max-btn:hover {
        color: #2ecc71; /* green for maximize */
    }

    .window-icon.min-btn:hover {
        color: #3498db; /* blue for minimize */
    }


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

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

#siblingsPopup {
    background-color: #ffffff;
    border: 1px solid #DCDCDC;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 6px 0;
    z-index: 1000;
    display: none;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    min-width: 160px;
}

#subSiblingsPopup a {
    display: block;
    padding: 8px 16px;
    color: #426184;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

    #subSiblingsPopup a:hover {
        background-color: #e6eef6;
        color: #3e5a91;
    }

    #subSiblingsPopup a:visited {
        color: #426184;
    }

    #subSiblingsPopup a.current {
        font-weight: bold;
        background-color: #f0f4ff;
        color: #00457c;
        cursor: default;
    }