@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Nunito:wght@300;400&display=swap&subset=cyrillic');
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            GENERIC SETTINGS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #1E90FF);
    background-repeat: no-repeat; /* Предотвратява повтарянето на фона */
    background-size: cover;       /* Уверява се, че фонът покрива целия екран */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow:hidden;
    height: 100vh;                /* Указва височина на цял екран */
    width:100vw;
    margin: 0px;
    /* Добавяне на SVG като фон */
    background-image: 
        linear-gradient(to bottom, #87CEEB, #1E90FF),
        url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.3" d="M0,64L48,85.3C96,107,192,149,288,181.3C384,213,480,235,576,218.7C672,203,768,149,864,138.7C960,128,1056,160,1152,176C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-blend-mode: overlay; /* За да се слее SVG с градиента */
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #00264D; /* Същият тъмносин цвят като логото */
    font-weight: 500; /* Подчертаване на текста */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Лека сянка за дълбочина */
    margin:0; padding: 0;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            TABLES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/* Основен стил за таблицата */
.table {
    width: 100%;
    border-collapse: collapse; /* Обединява границите */
    margin: 20px 0;
    font-size: 1rem;
    font-family: "Poppins", sans-serif; /* Съответства на дизайна */
    color: #1e3a5f; /* Тъмен син цвят за текста */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Лека сянка */
    border-radius: 8px; /* Заоблени ъгли */
    overflow: hidden; /* Гарантира, че съдържанието ще остане в рамките */
}

/* Заглавна част на таблицата */
.table thead {
    background: linear-gradient(90deg, #3EA8DF, #1e3a5f); /* Син градиент */
    color: #ffffff; /* Бял текст */
    text-align: left; /* Подравняване на текста */
    font-size: 1.1rem; /* Малко по-голям размер на шрифта */
    font-weight: 700; /* По-голяма тежест */
    text-transform: uppercase; /* Допълнителен ефект за заглавията (опционално) */
}

/* Редове в тялото */
.table tbody tr {
    border-bottom: 1px solid #e0e7f1; /* Лека разделителна линия */
}

.table tbody tr:nth-child(even) {
    background-color: #6aa1ce; /* По-наситен светлосин цвят */
    opacity: 0.8;
}

.table tbody tr:hover {
    background-color: #3A7CAC; /* По-тъмно синьо */
    color: #ffffff;
}

/* Клетки на таблицата */
.table th, .table td {
    padding: 12px 15px; /* Отстояние за четимост */
    text-align: left; /* Подравняване на съдържанието */
}

/* Footer на таблицата */
.table tfoot {
    background-color: #eaf3ff; /* Светъл цвят за контраст */
    color: #1e3a5f; /* Тъмен текст */
    font-weight: bold;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            BUTTONS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.button {
    position: relative;
    display: inline-block;
    border: none;
    padding: 12px 24px;
    color: #F0F8FF; /* Светъл нюанс на синьо-бялото */
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden; /* Скрива псевдоелемента извън границите */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background: linear-gradient(90deg, #4A9FCF, #28567C); /* Начален градиент */
    text-align: center;
    z-index: 0; /* Основа на бутона */
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #28567C, #4A9FCF); /* Цветовете на hover */
    z-index: -1; /* Под основния бутон */
    transition: opacity 0.2s ease-in-out; /* Плавна смяна на прозрачността */
    opacity: 0; /* Скрит по подразбиране */
}

.button:hover::before {
    opacity: 1; /* Показва градиента на hover */
}

.button span {
    position: relative;
    z-index: 1; /* Текстът остава най-отгоре */
}

.scene-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.scene-actions .button {
    margin: 0;
}

th.debug-column,
td.debug-column {
    box-sizing: border-box;
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

td.debug-column .debug-icon-button {
    margin: 0 auto;
}

.debug-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(72, 190, 255, 0.75);
    border-radius: 9px;
    background: linear-gradient(145deg, #164d76, #082d4d);
    box-shadow: 0 3px 8px rgba(7, 43, 73, 0.32), inset 0 0 8px rgba(32, 169, 255, 0.12);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.debug-icon-button:hover {
    transform: translateY(-1px);
    border-color: #35c2ff;
    box-shadow: 0 5px 11px rgba(7, 43, 73, 0.4), 0 0 8px rgba(20, 173, 255, 0.32);
}

.debug-icon-button img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 174, 255, 0.7));
}



/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            FORMS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.form-group {margin-bottom: 15px;}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #00264D;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #4682B4;
    border-radius: 5px;
    font-size: 16px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                MAIN MENU
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.main-menu {
    padding: 10px 20px 10px 10px;
    width: 100%; height:80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #1E90FF 0%, #4682B4 50%, #1E90FF 100%); /* Хоризонтален градиент с тъмно синьо в средата */
}
.main-menu .user-info {
    display: flex;
    flex-direction: column;
    color:#00264d;
}
.main-menu .username {
    font-size: 1.2rem;
}
.main-menu .date-time {
    font-size: 0.9rem;
    opacity: 0.8;
}
.menu-btn {
    color: #fff;
    text-decoration: none;
    background: #00264d;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}
.menu-btn:hover {
    background: #004c99;
}
.menu-logo-wrap a {
    display: inline-flex;
    align-items: center;
}

.menu-logo{
    width:12vw;
    max-width: 300px;
    animation: float 3s ease-in-out infinite; /* Плаващо движение */
    display: inline-block; /* За по-лесно позициониране */
    transition: transform 0.2s ease-in-out;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0px); /* Нормално състояние */
    }
    50% {
        transform: translateY(-5px); /* Леко издигане */
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                LOGIN PAGE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#login-page{
    text-align: center;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                HOME PAGE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.home-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    width: 90%;
}
.panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 20px;
    flex: 1 1 calc(50% - 40px);
    max-width: 300px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    cursor:pointer;
}
.panel p {
    font-size: 1.2rem;
    color: #00509e; /* Цвят на текста, който се връзва с общата тема */
    text-align: center;
    margin: 10px 0 0 0;
    font-weight: 1000;
}
.panel img {
    width: 40%; /* По-голям размер за иконите */
    height: auto;
    background-color: #fff;
    opacity: 0.6; /* Полупрозрачност */
    border: 2px solid rgba(0, 76, 153, 0.5); /* Тънка естетична рамка */
    border-radius: 10px; /* Заоблени ъгли на иконките */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Лека сянка за иконките */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.panel img:hover {
    opacity: 1; /* Премахваме прозрачността при задържане на курсора */
    transform: scale(1.1); /* Леко уголемяване при задържане */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Подсилваме сянката */
}
.panel:nth-child(1) { animation-delay: 0.1s; }
.panel:nth-child(2) { animation-delay: 0.2s; }
.panel:nth-child(3) { animation-delay: 0.3s; }
.panel:nth-child(4) { animation-delay: 0.4s; }
.panel:nth-child(5) { animation-delay: 0.5s; }

/* Анимация за панелите */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                INTERNAL PAGES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/* Контейнер за съдържанието */
.main-container {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 60px); /* Изключва височината на header */
}
/* Странично меню */
.side-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(30, 144, 255, 0.2); /* Полупрозрачен син фон */
    padding: 6px 5px;
    width: 108px;
    min-width: 100px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Скрива елементите преди анимацията */
    border-radius: 0 7px 7px 0;
    margin: 4px 4px 4px 0;
}

.side-menu-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.2); /* Лека сива линия */
    margin: 4px 0;
}

.side-menu h1 {
    font-size: 0.82rem;
    line-height: 1.08;
    margin: 0 0 5px 0;
    text-align: center;
}

.side-menu h2,
.scene_title {
    font-size: 0.68rem;
    line-height: 1.08;
    margin: 0 0 5px 0;
    text-align: center;
    overflow-wrap: anywhere;
}
.side-menu button {
    background: linear-gradient(to bottom, #1E90FF, #3EA8DF);
    border: none;
    color: #ffffff;
    font-size: 0.68rem;
    padding: 5px 4px;
    margin: 2px 0;
    cursor: pointer;
    border-radius: 3px;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    width: 100%;
    text-align: center;
    opacity: 0.9; /* Полупрозрачни бутони */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-menu button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.35);
}

.side-menu button.active {
    
    transform: translateY(0);
    background: linear-gradient(90deg, #153E61, #256D9B);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.35);
    
}



/* Работна зона */
#work-area {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.content-area {
    flex-grow: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2); /* Полупрозрачен бял фон */
    border-radius: 10px 0 0 10px;
    margin: 6px 6px 6px 0;
    overflow-y: auto;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
    color: #333; /* Тъмен текст за четливост */
}
.content-area:has(iframe:only-child) {
    padding: 0;
}
.content-area iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.content-area h1 {
    font-size: 1.45em;
    margin-bottom: 8px;
    color: #1E90FF;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                BOTTOM COPYRIGHT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.copyright{
    font-size:10px;
    color:#000;
    position:fixed;
    bottom:0; right:0;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                LOADER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/* Уверяваме се, че контейнерът work-area е позициониран */
#work-area {
    position: relative; /* Позволява абсолютното позициониране на loader-а */
    min-height: 50vh; /* Добавяме височина за визуализация, ако е празно */
}

/* Клас за loader-а */
.loader-container {
    position: absolute; /* Позиционира се спрямо #work-area */
    top: 50%; /* Центриране по вертикала */
    left: 50%; /* Центриране по хоризонтала */
    transform: translate(-50%, -50%); /* Прецизно центриране */
    display: flex; /* Flexbox за центрирано съдържание, ако има вътрешни елементи */
    justify-content: center;
    align-items: center;
    z-index: 10; /* Уверяваме се, че е над съдържанието */
    pointer-events: none; /* Анимацията не пречи на кликовете */
}

/* Стилизиране на самия GIF (опционално) */
.loader-container img {
    width: 80px; /* Размер на GIF-а */
    height: auto; /* Пропорционално към оригиналните размери */
    opacity: 0.8; /* Леко прозрачно (може да се махне) */
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                jQuery customization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.ui-widget-overlay{opacity: 0.4 !important;}
/* Основен стил за целия диалог */
.ui-dialog {
    border: 2px solid #28567C;
    border-radius: 12px;
    background: linear-gradient(180deg, #4A9FCF, #28567C);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    color: #F0F8FF;
    font-family: "Poppins", sans-serif;
}

/* Стил за заглавната лента */
.ui-dialog-titlebar {
    background: linear-gradient(90deg, #28567C, #4A9FCF);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #1E3A5F;
}

/* Затварящ бутон в заглавната лента */
.ui-dialog-titlebar-close {
    background: #1E3A5F;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.ui-dialog-titlebar-close:hover {
    background: #4682B4;
    transform: scale(1.1);
}

/* Основен контейнер на съдържанието */
.ui-dialog-content {
    padding: 16px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
}

/* Бутоните в долната част */
.ui-dialog-buttonpane {
    background: #28567C;
    border-top: 2px solid #1E3A5F;
    padding: 8px;
    border-radius: 0 0 12px 12px;
    text-align: right;
}

.ui-dialog-buttonpane button {
    background: linear-gradient(90deg, #3EA8DF, #1E3A5F);
    border: none;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.ui-dialog-buttonpane button:hover {
    background: linear-gradient(90deg, #1E3A5F, #3EA8DF);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/*формуляри в работен екран*/
.custom-form-container {
    
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #1e3a5f; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #1e3a5f;
    font-family: Arial, sans-serif;
}
.custom-form-container::after {
    content: "";
    display: block;
    clear: both;
}
.custom-form-container h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: center;
    color: #1e3a5f;
}

.custom-form-container table {
    width: 100%;
    border-collapse: collapse;
}

.custom-form-container td {
    padding: 8px;
    vertical-align: middle;
}

.custom-form-container label {
    font-weight: bold;
}

.custom-form-container input,
.custom-form-container select,
.custom-form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.8); /* Леко прозрачен бял фон за полетата */
    color: #1e3a5f;
}

.custom-form-container textarea {
    resize: vertical;
    min-height: 60px;
}

/* Стилове за бутоните */
.custom-form-container button,
.custom-form-container input[type="submit"],
.custom-form-container input[type="button"] {
    width: auto;
    padding: 10px 20px;
    margin-top: 15px;
    border: 2px solid transparent; /* Прозрачна рамка */
    border-radius: 5px;
    background: linear-gradient(145deg, #3b82f6, #011f60); /* Градиентен фон */
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.custom-form-container button:hover,
.custom-form-container input[type="submit"]:hover,
.custom-form-container input[type="button"]:hover {
    background: linear-gradient(145deg, #2563eb, #3b82f6); /* Обратен градиент при ховър */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Лек сянка при ховър */
    transform: translateY(-2px); /* Леко повдигане на бутона при ховър */
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                HYDROSTATIC LINES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.replay-catalog-panel {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid rgba(30, 58, 95, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
}

.replay-catalog-panel[hidden] {
    display: none;
}

.replay-catalog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.replay-catalog-heading h3,
.replay-catalog-heading p {
    margin: 0 0 6px;
}

.replay-catalog-heading button {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 7px 10px;
    font-size: 0.9em;
}

.replay-catalog-status {
    margin: 10px 0;
    font-weight: bold;
}

.replay-catalog-vessels {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.replay-catalog-vessels article {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-left: 4px solid #1e3a5f;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.72);
}

.replay-catalog-vessels span {
    overflow-wrap: anywhere;
    font-size: 0.9em;
}

.replay-prepare-controls,
.replay-imports-section {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(30, 58, 95, 0.35);
}

.replay-prepare-controls label,
.replay-range-fields {
    display: grid;
    gap: 5px;
}

.replay-range-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.replay-prepare-controls select,
.replay-prepare-controls input {
    box-sizing: border-box;
    width: 100%;
}

.replay-prepare-status,
.replay-imports-status {
    font-size: 0.9em;
}

.replay-prepare-progress {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid rgba(30, 58, 95, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.62);
}

.replay-prepare-progress[hidden] {
    display: none;
}

.replay-prepare-progress > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88em;
}

.replay-prepare-progress progress {
    width: 100%;
    height: 18px;
    accent-color: #1f66c1;
}

.replay-imports-section h4 {
    margin: 0;
}

.replay-imports {
    display: grid;
    gap: 8px;
}

.replay-imports article {
    display: grid;
    gap: 4px;
    padding: 9px;
    border-left: 4px solid #2b6cb0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.72);
}

.replay-imports article span {
    overflow-wrap: anywhere;
    font-size: 0.86em;
}

.replay-imports article button {
    justify-self: start;
    margin-top: 4px;
}

.replay-preview {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(30, 58, 95, 0.35);
}

.replay-preview[hidden] {
    display: none;
}

.replay-preview-heading,
.replay-preview-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.replay-preview-heading h4 {
    margin: 0;
}

.replay-preview-heading button,
.replay-preview-controls button {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 12px;
    font-size: 0.9em;
}

.replay-preview label {
    display: grid;
    gap: 5px;
}

.replay-preview select,
.replay-preview input[type="range"] {
    box-sizing: border-box;
    width: 100%;
}

.replay-preview canvas {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    border: 1px solid rgba(30, 58, 95, 0.5);
    border-radius: 5px;
    background: #eef7ff;
}

.replay-preview-controls input[type="range"] {
    flex: 1 1 auto;
}

.replay-preview-status {
    min-height: 1.4em;
    overflow-wrap: anywhere;
    font-size: 0.86em;
}

.hydro-table-wrapper {
  max-height: 300px;            /* Ограничена височина */
  overflow-y: auto;
  overflow-x: auto;             /* Хоризонтален скрол */
  border: 1px solid #1b4f72;    /* Синкав контур */
  background: #eef7ff;          /* Много светло синьо */
  padding: 4px;
  border-radius: 4px;
}

.hydro-table {
  width: max-content;           /* Не насилвай 100% — позволи скрол */
  border-collapse: collapse;
  font-size: 12px;
  background-color: #ffffff;    /* Бял фон за добра четимост */
  color: #003366;               /* Тъмен син текст */
}

.hydro-table th {
  background-color: #0074cc;    /* Ясно синьо за заглавията */
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #005fa3;
}

.hydro-table td {
  padding: 4px 6px;
  text-align: right;
  white-space: nowrap;
  border: 1px solid #ccc;
}

/* ----------------------------------------------------
realtime monitor
------------------------------------------- */
.monitor-top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 4px;
    padding-right: 4px;
    color: #000000;
    width: 100%;
    
    background-color: rgba(106, 189, 241, 0.5);
    transition: top 0.3s ease;
}

/* Лявата част на панела с бутоните */
.panel-top-left {
    width:200px;
}
.status_btn {
    font-family: sans-serif;
    font-weight: bold;
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    transition: transform 0.1s ease-in-out;
  }
  

/* Централна част с заглавие и идентификатори */
.panel-top-center h1 {
    margin: 0;
    
}

.panel-top-center {
    margin: 2px 0;
    text-align: center;
}

/* Дясната част с таймера */
.panel-top-right {
    font-size: 16px;
}

.identifiers{
    display:none;   
}
.demo-readonly-notice {
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid rgba(89, 205, 255, 0.35);
    background: rgba(33, 116, 153, 0.12);
    color: #8edfff;
    font-size: 12px;
    letter-spacing: 0.08em;
}
