﻿.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* Кастомизация кнопки */
.btn-custom-login {
    color: black; /* Черный текст */
    background-color: white; /* Белый фон */
    border: 2px solid #4CAF50; /* Зеленая граница */
    padding: 10px 20px; /* Отступы */
    font-size: 16px; /* Размер шрифта */
    border-radius: 25px; /* Закругленные углы */
    transition: all 0.3s ease; /* Плавное изменение */
}

    .btn-custom-login:hover {
        background-color: #f1f1f1; /* Светлый фон при наведении */
        border-color: #45a049; /* Тёмная граница */
        color: #1877F2; /* Зеленый текст при наведении */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Легкая тень */
    }

.transparent-panel {
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон */
    backdrop-filter: blur(15px); /* Размытие для стеклянного эффекта */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px; /* Закругленные углы */
    padding: 40px; /* Увеличенные отступы */
    max-width: 1200px; /* Сделал шире */
    width: 95%; /* Почти на всю ширину */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Лёгкая тень */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Тонкая белая граница */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .transparent-panel {
        width: 98%;
        padding: 30px;
        border-radius: 15px;
    }
}


.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.video-loading {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #555;
}

.active-video {
    background-color: darkgray !important;
}

.video-table th, .video-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.video-row:hover {
    background-color: #f1f1f1;
}

.video-wrapper {
    max-width: 80%; /* Уменьшаем максимальную ширину видео */
    margin: 0 auto; /* Центрируем видео */
}

    .video-wrapper video {
        width: 100%; /* Видео будет адаптироваться по ширине */
        max-width: 800px; /* Максимальная ширина видео */
        max-height: 450px; /* Максимальная высота видео */
        margin: 0 auto; /* Центрируем видео */
        display: block;
    }

.armenian-text {
    font-family: 'Noto Sans Armenian', 'Sylfaen', sans-serif;
    white-space: nowrap; /* Запрещает перенос */
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
    font-size: 24px; /* Исходный размер */
    text-align: center;
    /* Магия уменьшения текста */
    transform-origin: left;
    transform: scale(1);
}

/* Когда текста слишком много */
.armenian-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Родительский контейнер */
}

    .armenian-text-container span {
        font-size: 24px;
        flex-shrink: 1; /* Позволяет уменьшаться, но не переноситься */
    }

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
}

/* Нижняя панель */
.footer {
    background-color: #333; /* Тёмный фон */
    color: white; /* Белый текст */
    padding: 10px 0; /* Отступы */
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%; /* Занимает всю ширину */
    text-align: center; /* Центрируем текст */
    font-size: 14px; /* Размер шрифта */
    z-index: 0; /* Чтобы футер не перекрывал элементы */
}

.footer-text {
    margin: 0;
    white-space: nowrap; /* Запрещаем перенос текста */
    overflow: hidden; /* Скрываем текст, если он выходит за пределы */
    text-overflow: ellipsis; /* Добавляем многоточие, если текст слишком длинный */
}

@media (max-width: 767px) {
    .footer-text {
        font-size: 12px; /* Уменьшаем размер шрифта на мобильных */
    }
}








:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-color-light: white;
    --text-color-dark: black;
}

/* Общие стили */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Адаптивная настройка шрифта */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Формы и кнопки */
.form-floating > .form-control::placeholder,
.form-floating > .form-control-plaintext::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext:focus::placeholder {
    text-align: start;
}

.btn-green {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    min-width: 100px;
    color: green;
}

    .btn-green:focus,
    .btn-green:active:focus,
    .btn-green.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
    }

.btn-red {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    min-width: 100px;
    color: red;
}

    .btn-red:focus,
    .btn-red:active:focus,
    .btn-red.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
    }



.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    min-width: 100px;
}

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
    }

.primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.success {
    background-color: var(--success-color);
    color: var(--text-color-light);
}

.danger {
    background-color: var(--danger-color);
    color: var(--text-color-light);
}

.warning {
    background-color: var(--warning-color);
    color: var(--text-color-dark);
}

.btn:hover {
    opacity: 0.8;
}


/* Форма фильтрации */
.filter-form {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 90px;
    min-width: 70px;
    margin-bottom: 2px;
}

.input-field, .select-field, .btn {
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
}

.filter-form .btn {
    align-self: flex-end;
    margin-top: auto;
}

/* Кнопки на дашборде */
.logout-button {
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .logout-button:hover {
        background-color: black;
        color: white;
    }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 100%; /* Гарантирует, что таблица будет использовать всю доступную ширину */
}

.video-table {
    width: 100%;
    table-layout: fixed; /* Это позволит всем ячейкам быть одинаковой ширины */
    margin: 0 auto;
}

    .video-table th, .video-table td {
        padding: 12px;
        text-align: left;
        overflow: hidden; /* Скрываем лишний контент, если что-то выходит за рамки */
        text-overflow: ellipsis; /* Показываем многоточие, если текст не помещается */
    }

.empty-table-message {
    text-align: center;
    font-size: 16px;
    color: #888;
    padding: 20px;
}

@media (max-width: 768px) {
    .video-wrapper {
        max-width: 95%; /* Видео будет занимать до 95% от ширины на мобильных устройствах */
    }

        .video-wrapper video {
            max-width: 100%; /* На мобильных устройствах видео будет максимально широким, но в пределах контейнера */
            max-height: 300px; /* Уменьшаем высоту для мобильных устройств */
        }
}

.video-table td {
    vertical-align: middle;
}

.dashboard-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-button img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
}

.dashboard-button span {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color-light);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 8px;
}

.dashboard-button:hover img {
    transform: scale(1.1);
}

/* Заголовки */
.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1px;
    }

    .btn {
        width: 100%;
        margin-top: 2px;
        margin-block: 2px;
        margin: auto;
        margin-bottom: 10px;
    }

    .video-table {
        width: 100%;
        table-layout: fixed;
    }

        .video-table th,
        .video-table td {
            padding: 8px;
        }
}

/* Теги */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.remove-tag {
    background: transparent;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.input-field {
    border: none;
    outline: none;
    flex-grow: 1;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag button {
    background: none;
    border: none;
    margin-left: 5px;
    cursor: pointer;
    color: #666;
}

    .tag button:hover {
        color: #000;
    }

.tag-input {
    width: 100%;
    padding: 5px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Стили для кнопки удаления */
.remove-tag {
    color: red;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

    .remove-tag:hover {
        color: darkred;
        transform: scale(1.2);
    }

@media (max-width: 768px) {
    .tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .remove-tag {
        font-size: 16px;
    }
}


@media (max-width: 768px) {
    .video-table th, .video-table td {
        font-size: 14px;
        padding: 10px; /* Уменьшаем отступы */
    }

    .btn {
        font-size: 12px; /* Уменьшаем размер шрифта на мобильных устройствах */
        padding: 6px 10px; /* Уменьшаем отступы кнопок */
    }
}

.video-actions {
    display: flex;
    gap: 10px; /* расстояние между кнопками */
}

    .video-actions .btn {
        padding: 10px 15px;
    }

.button-group {
    display: flex;
    gap: 10px; /* Отступ между кнопками */
}

.action-block {
    position: relative; /* Для позиционирования overlay */
}

.action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn {
    white-space: nowrap; /* Предотвращаем перенос текста внутри кнопки */
    overflow: hidden; /* Скрываем лишний текст */
    text-overflow: ellipsis; /* Добавляем многоточие в случае переполнения */
    padding: 8px 12px; /* Добавляем отступы для кнопки */
    font-size: 14px; /* Устанавливаем размер шрифта */
    display: inline-block;
    border: 1px solid #ccc; /* Добавляем рамку */
    background-color: #007bff; /* Синий фон */
    color: #fff; /* Белый текст */
    cursor: pointer; /* Курсор при наведении */
    border-radius: 4px; /* Округлые углы */
    transition: background-color 0.3s ease; /* Плавное изменение фона */
}

.btn:hover {
    background-color: #0056b3; /* Изменение цвета кнопки при наведении */
}

.video-program-select {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.form-group {
    margin-bottom: 15px;
}

.user-settings-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

    .user-settings-section h3 {
        margin-top: 0;
        color: #495057;
    }

    .user-settings-section .form-group {
        margin-bottom: 0;
    }



.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .pagination a.btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        border: 1px solid #007bff;
        border-radius: 4px;
        background-color: #ffffff;
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

        .pagination a.btn:hover {
            background-color: #007bff;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            text-decoration: none;
        }

        .pagination a.btn.active {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
            font-weight: 600;
        }

    .pagination .btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.pagination-info {
    margin-left: 15px;
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.pagination a.btn.active {
    background-color: #0056b3;
    border-color: #004085;
    box-shadow: 0 0 0 2px rgba(0,86,179,0.25);
}

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }

        .pagination a.btn {
            min-width: 30px;
            height: 30px;
            font-size: 0.85rem;
        }

    .pagination-info {
        margin-left: 8px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

.pagination a.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}