
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }



body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    text-align: center;
    padding-top: 140px; /* Добавяме отстояние отгоре заради фиксирания хедър */
}



        .container {
            width: 100%;
            margin: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }





.header {
    background-image: url('images/header_background.png');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    color: white;
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Центрира съдържанието */
    height: 100px;
    z-index: 10;
}

.header-container {
    width: 80%; /* Ограничаваме съдържанието до 80% */
    display: flex;
    justify-content: space-between; /* Разпределя ляво, централно и дясно */
    align-items: center; /* Центрира по височина */
}

.left {
    width: 200px;
    text-align: left;
}

.center {
    flex-grow: 1; /* Заема останалото свободно място */
    text-align: center;
}

.right {
    width: 200px;
    text-align: right;
}

.header p {
    max-width: 80%;
    width: 100%;
    margin: 0; 
    text-align: left;
}

.header a {
    color: white;
    text-decoration: none;
}

.header a:hover {
    text-decoration: underline;
}






        .logo {
            width: 200px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 10px;
        }

        .logo img {
            height: 40px;
        }






        .menu_container {
            position: fixed;
            top: 100px; /* точно под фиксирания header */
            left: 0;
            width: 100%; /* фонът се разтяга на 100%, НО */
            display: flex;
            justify-content: center; /* центрира вътрешния контейнер */
            z-index: 9;
            background-color: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            height: 40px; /* тънка лента */
        }

        .menu_container_inner {
            width: 80%; /* като съдържанието */
            display: flex;
            justify-content: space-between;
            align-items: center;
        }






        .title-h1 {
            font-size: 1px;
            color: #ffffff;
            font-weight: 600;
            margin: 0;
            padding: 6px 0;
            text-align: center;
        }

        .menus-wrapper {
            display: flex;
            flex-direction: column;
            padding: 0;
            margin-top: 4px; /* малко разстояние под заглавието */
        }

        .menu-line {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 8px;
            font-weight: normal;
            color: #000000;
            margin: 0;
            padding: 0;
        }

        .menu-line + .menu-line {
            margin-top: 0; /* няма разстояние между меню 2 и 3 */
        }

        .menu-line a {
            color: #ffffff;
            text-decoration: none;
            font-size: 11px;
            padding: 0;
            margin: 0;
        }

        .menu-line a:hover {
            text-decoration: underline;
        }














        .content {
            width: 100%;
            max-width: 1200px; /* или 100% ако искаш */
            margin: 20px auto;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .cookie-banner {
            position: fixed;
            bottom: 0;
            width: 100%;
            background-color: #ff9800;
            color: white;
            text-align: center;
            padding: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
        }

        .cookie-banner button {
            background-color: #fff;
            color: #ff9800;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 5px;
            font-size: 16px;
        }







footer {
    background-image: url('images/footer_background.png');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    color: white;
    text-align: left;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

footer p {
    max-width: 80%;
    width: 100%;
    margin: 0; 
    text-align: left; 
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}






        input:focus, textarea:focus {
            outline: 1px solid #02699B; /* Променя дебелината и цвета */
            outline-offset: -2px; /* По избор – разстояние от елемента */
            border-radius: 4px; /* По избор – заобляне */
        }







.login-header {
    width: 720px;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    margin: 0;
}

.login-header p {
    font-size: 16px;
    color: #333;
}

.login-box {
    width: 400px;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fefefe;
}

.login-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.login-row label {
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
}

.select {
        width: calc(100%);
        padding: 10px;
        border: 1px solid #999;
        border-radius: 4px;
        font-size: 14px;
        box-sizing: border-box;
}

.submit-row {
    text-align: right;
}

.submit-row input[type="submit"] {
    background-color: #02699B;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    border-radius: 10px;
    background-color: #f0f0f0;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-container { /* Нов контейнер за полето за потребителско име */
    position: relative;
    display: flex;
    align-items: center;
    width: 100%; /* Заема пълната ширина на .login-row */
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password {
    width: calc(100% - 40px);
    padding: 10px;
    font-size: 16px;
    border-radius: 4px 0 0 4px; /* Добавяме border-radius само отляво */
}

.eyeIcon {
    font-size: 20px;
}

#email {
    width: calc(100%);
    padding: 10px;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

        .passgen-container {
            position: relative;
            display: flex;
        }

        .passgen-container input.labs-select {
            flex: 1;
            border-radius: 4px 0 0 4px; /* Заобляне само вляво */
        }

        .passgen-container .labs-btn {
            background-color: #0077aa;
            color: white;
            width: 40px;
            border: none;
            border-radius: 0 4px 4px 0; /* Заобляне само вдясно */
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }












/* Стил за бутона за изпращане */
.submit-row input {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.submit-row input:hover {
    background-color: #45a049;
}






        .button-wrapper {
            display: flex;
            justify-content: flex-start; /* Ляво подравняване */
            padding: 10px 0; /* Малко разстояние отгоре и отдолу */
        }

        /* Общ стил за лабораторната форма */
        .labs-wrapper {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            height: fit-content; /* 👈 това ще махне излишната височина */
            background-color: #f0f0f0;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }



        /* Стилизиране на самата форма */
        .labs-form {
            display: flex;
            flex-direction: column;
        }

        /* Заглавие на формата */
        .labs-header h2 {
            text-align: center;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .labs-header p {
            text-align: center;
            color: #666;
            margin-bottom: 20px;
        }

        /* Контейнер за полетата */
        .labs-box {
            display: flex;
            flex-direction: column;
        }

        /* Разстояние между редовете в формата */
        .labs-row {
            margin-bottom: 20px;
        }

        /* Стил за етикетите на полетата */
        .labs-label {
            font-size: 14px;
            color: #333;
            font-weight: bold;
            margin-bottom: 8px;
            text-align: left; /* Подравняване на етикетите вляво */
            display: inline-block; /* Задължително за да работи правилно с text-align */
            width: 100%; /* За да се подравни правилно с полето */
        }

        /* Стил за входните полета */
        .labs-row input, .labs-row textarea {
            width: 100%;
            padding: 12px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        /* Стилизиране на текстовото поле (textarea) */
        .labs-row textarea {
            resize: vertical;
        }






        /* Стил за бутоните */
        .submit-row input, .reset-row input {
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
        }

        /* Стил за бутона за запис */
        .submit-row input {
            background-color: #4CAF50;
            color: white;
        }

        .submit-row input:hover {
            background-color: #45a049;
        }

        /* Стил за бутона за изчистване */
        .reset-button {
            background-color: #007BFF; /* Син цвят */
            color: white;
        }

        .reset-button:hover {
            background-color: #0056b3; /* По-тъмен син при hover */
        }

        .labs-select {
            width: 100%;
            padding: 12px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        /* Добавяне на стил за оставащите символи */
        #char-count {
            font-size: 12px;
            color: #666;
            margin-left: 10px;
        }






        .select-field-container {
            position: relative;
            width: 100%;
        }

        .select-field {
            width: 100%;
            padding: 10px;
            padding-right: 50px; /* оставяме място за бутона */
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            background-color: white;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            cursor: pointer;
        }

        .select-field-button {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            width: 40px;
            border: none;
            background-color: #0074a6; /* синьото като при бутоните за парола */
            color: white;
            font-size: 18px;
            pointer-events: none; /* да не може да се кликва върху бутона */
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .select-field-button i {
            font-size: 18px;
        }





        .eye_btn {
            position: absolute;
            right: 0;
            background: #02699B;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 40px;
            box-sizing: border-box;
        }








        .btn-edit, .btn-delete {
            padding: 6px 10px;
            font-size: 11px;
        }

        .btn-edit {
            background-color: #1e90ff;
            color: white;
            border: none;
            border-radius: 3px;
        }

        .btn-edit:hover {
            background-color: #0f76d1;
        }

        .btn-delete {
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 3px;
        }

        .btn-delete:hover {
            background-color: #bb2d3b;
        }













        .clear-hours-btn {
            margin-left: 4px;
            background-color: transparent;
            border: none;
            color: red;
            font-size: 1rem;
            cursor: pointer;
            vertical-align: middle;
        }













        .buttons-container {
            display: flex;
            gap: 10px; /* Разстояние между бутоните */
            align-items: center;
        }

        .btnNew-hover {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            font-size: 17px;
            font-family: sans-serif;
            border-radius: 8px;
            cursor: pointer;
            border: 1px solid #d1d5db; /* Сива рамка (#d1d5db = light gray) */
            background-color: white;
            color: #374151; /* Тъмно сив текст */
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .btnNew-hover .icon {
            font-size: 20px;
            margin-right: 8px;
            line-height: 1;
        }

        /* Hover ефект */
        .btnNew-hover:hover {
            background-color: #3d8754;
            color: white;
        }




        .btnClose-hover {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            font-size: 17px;
            font-family: sans-serif;
            border-radius: 8px;
            cursor: pointer;
            border: 1px solid #dc2626;
            background-color: #d15555;
            color: white;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .btnClose-hover .icon {
            font-size: 20px;
            margin-right: 8px;
            line-height: 1;
            color: white;
            transition: color 0.2s ease;
        }

        /* Hover ефект */
        .btnClose-hover:hover {
            background-color: #b91c1c;
            border-color: #b91c1c;
            color: white;
        }

        .btnClose-hover:hover .icon {
            color: white;
        }




        .btnEdit-hover {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            font-size: 17px;
            font-family: sans-serif;
            border-radius: 8px;
            cursor: pointer;
            border: 1px solid #d1d5db;
            background-color: white;
            color: #374151;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .btnEdit-hover .icon {
            font-size: 20px;
            margin-right: 8px;
            line-height: 1;
            color: #d97706; /* топло оранжево */
            transition: color 0.2s ease;
        }

        .btnEdit-hover:hover {
            background-color: #f59e0b; /* меко оранжево */
            color: white;
            border-color: #f59e0b;
        }

        .btnEdit-hover:hover .icon {
            color: white;
        }





        .btnDelete-hover {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            font-size: 17px;
            font-family: sans-serif;
            border-radius: 8px;
            cursor: pointer;
            border: 1px solid #d1d5db;
            background-color: white;
            color: #374151;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .btnDelete-hover .icon {
            font-size: 20px;
            margin-right: 8px;
            line-height: 1;
            color: #dc2626; /* силно червено */
            transition: color 0.2s ease;
        }

        .btnDelete-hover:hover {
            background-color: #dc2626;
            color: white;
            border-color: #dc2626;
        }

        .btnDelete-hover:hover .icon {
            color: white;
        }





        .action-buttons {
            margin-bottom: 1rem;
            display: flex;
            gap: 10px;
        }

        .labs-list-header,
        .labs-list-row {
            display: grid;
            grid-template-columns: 40px 60px 150px 1fr;
            padding: 5px 10px;
            align-items: center;
            text-align: left;
        }

        .labs-list-header {
            font-weight: bold;
            background-color: #f0f0f0;
        }

        .even {
            background-color: #fafafa;
        }
        .odd {
            background-color: #ffffff;
        }





        .error {
            display: flex;
            align-items: stretch;
            background-color: #ffebee; /* Светло червено за фона */
            color: #d32f2f; /* Тъмно червено за текста */
            border-radius: 4px;
            font-size: 14px;
            margin: 20px auto;
            width: 100%;
            max-width: 90%;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .error a {
            color: inherit;
            text-decoration: none;
            font-weight: bold;
            margin-left: 4px;
        }

        .error-icon-wrapper {
            background-color: #d32f2f; /* Тъмно червено за фона на иконата */
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .error-icon {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .error-text {
            padding: 10px 12px;
            display: flex;
            align-items: center;
            line-height: 1.4;
            white-space: nowrap;
            flex-grow: 1;
            text-align: left;
        }

        .xx-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            background: transparent;
            border: none;
            color: #d32f2f;
            font-size: 26px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s ease;
        }

        .xx-btn:hover {
            color: #b71c1c; /* По-тъмно червено при hover */
        }





        .info {
            display: flex;
            align-items: stretch; /* Променяме на stretch, за да разтегнем елементите */
            background-color: #eefaf1;
            color: #2e7d32;
            border-radius: 4px;
            font-size: 14px;
            margin: 20px auto;
            width: 100%;
            max-width: 90%;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .info a {
            color: inherit;
            text-decoration: none;
            font-weight: bold;
            margin-left: 4px;
        }

        .info-icon-wrapper {
            background-color: #2e7d32;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0; /* Предотвратява свиване на иконата */
        }

        .info-icon {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .info-text {
            padding: 10px 12px;
            display: flex;
            align-items: center;
            line-height: 1.4;
            white-space: nowrap;
            flex-grow: 1;
            text-align: left;
        }

        .x-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            background: transparent;
            border: none;
            color: #2e7d32;
            font-size: 26px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s ease;
        }

        .x-btn:hover {
            color: #1b5e20;
        }




        .fas { /* Общ стил за Font Awesome икони */
            margin-right: 5px; /* Добавяне на интервал отдясно */
        }





        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);

            /* Визия */
            background-color: rgba(0, 119, 170, 0.65); /* по-прозрачен */
            color: #fff;
            padding: 24px 36px; /* по-голямо */
            border-radius: 12px;
            font-size: 18px;
            font-weight: bold;
            text-align: center;

            /* Размери и ефекти */
            min-width: 320px;
            max-width: 80vw;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);

            /* Анимация */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
            z-index: 9999;
        }

        .toast.show {
            opacity: 1;
            visibility: visible;
        }






        .user-name {
            color: white;
            font-size: 10px;
            white-space: nowrap;       /* Не пренася на нов ред */
            overflow: hidden;          /* Скрива излишния текст */
            text-overflow: ellipsis;   /* Показва "..." накрая */
            max-width: 150px;          /* Ограничаваме ширината (по твоя преценка) */
        }






        .info {
            transition: opacity 0.5s ease;
        }

        .info.hide {
            opacity: 0;
            pointer-events: none;
        }






        .title-h1 {
            font-size: 1px;
            color: #ffffff;
            font-weight: 600;
            margin: 0;
            padding: 0;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
            letter-spacing: 0.5px;
        }

        .forgot-password {
            text-align: right;
            margin-top: 10px;
            padding-right: 2px;
        }

        .forgot-password a {
            font-size: 13px;
            color: #2e7d32;
            text-decoration: none;
            transition: color 0.2s;
        }

        .forgot-password a:hover {
            color: #1b5e20;
            text-decoration: underline;
        }







        .err404-container {
            text-align: center;
            font-family: Arial, sans-serif;
            padding: 80px 20px;
            background-color: #f8fafc;
            color: #1e3a8a;
        }

        .err404-title {
            font-size: 8rem;
            margin: 0;
            color: #2563eb;
            font-weight: bold;
        }

        .err404-text {
            font-size: 1.5rem;
            margin: 20px 0 30px;
            color: #1e40af;
        }

        .err404-button {
            display: inline-block;
            padding: 12px 30px;
            background: #2563eb;
            color: #fff;
            text-decoration: none;
            border-radius: 6px;
            font-size: 1rem;
            transition: background 0.3s;
        }

        .err404-button:hover {
            background: #1d4ed8;
        }



        .truncate {
            display: block;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
        }


        .eye-button {
            width: 30px;
            height: 30px;
            background-color: #007baf;
            color: white;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .eye-button i {
            margin: 0;
            padding: 0;
            display: block; /* или inline-flex */
            width: 100%;
            text-align: center;
        }

        .eye-button:hover {
            background-color: #005f8a;
        }

        .new-pass-button {
            background-color: #2872a7; /* зелен */
            color: white;
        }

        .make-rev-button {
            background-color: #2872a7; /* ярко синьо */
            color: #ffffff;            /* бяло */
        }

        .reject-button {
            background-color: #dc3545; /* червен */
            color: white;
        }






















