@import url("https://fonts.googleapis.com/css?family=Rubik:300,300i,400,400i,500,500i,700,700i,900,900i&display=swap&subset=cyrillic");
.nav-box-btn {
    height: 40px;
    width: 40px;
}
.nav-box-btn2 {
    height: 40px;
}
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: #65638f;
    background-color: #f0f2f5;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #454360;
    font-family: "Rubik", sans-serif !important;
    font-weight: 700;
}

.card {
    background-color: #fefefe8b;
}

td {
    background-color: #fefefe8b !important
}

th {
    background-color: #fefefe8b !important
}

.td-right {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.mvdf {
    margin-right: -9px;
}

.content {
    flex: 1 !important;
}


h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }


main {
    flex: 1;
}

.bdr {
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 15px;
    overflow: hidden;
    margin: 5px;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.code-input {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.presentation-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.file-list {
    list-style-type: none;
    padding-left: 0;
}

.file-list li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list li:last-child {
    border-bottom: none;
}

.btn-download {
    min-width: 120px;
}

.mobile-full-width {
    width: 100%;
}

@media (max-width: 767.98px) {
    .desktop-button-container {
        display: none;
    }
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .mobile-button-container {
        display: none;
    }
}

.admin-table th {
    white-space: nowrap;
}

.presentation-preview {
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.code-display {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.hero-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-control-lg {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Стили для превью файлов */
.file-preview-item {
    transition: transform 0.2s;
}

.file-preview-item:hover {
    transform: scale(1.03);
}

.file-preview-item .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.file-preview-item .card-body {
    padding: 0.75rem;
}

.file1-name {
    font-size: 0.8rem;
    color: #495057;
}



.table-btns {
            width: 32px;
            height: 32px;
            padding: 0;
        }

.bi-file-earmark-text {
    color: #6c757d;
}

/* Адаптивные стили */
@media (max-width: 576px) {
    .file-preview-item {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* Стили для превью файлов */
.file-preview-item {
    transition: transform 0.2s;
}

.file-preview-item:hover {
    transform: scale(1.03);
}

.file-preview-item .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 120px; /* Фиксированная высота для квадратных карточек */
    width: 120px; /* Фиксированная ширина для квадратных карточек */
    margin: 0 auto;
}

.file-preview-item .card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.file-name {
    font-size: 0.8rem;
    color: #495057;
    text-align: center;
    margin-top: auto;
}


.file-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконки для разных типов файлов */
.bi-file-ppt { color: #d24726; }
.bi-file-earmark-ppt { color: #d24726; }
.bi-file-pdf { color: #b30b00; }
.bi-file-slides { color: #f48024; }
.bi-file-word { color: #2b579a; }
.bi-file-excel { color: #217346; }
.bi-file-text { color: #6c757d; }
.bi-file-code { color: #6f42c1; }
.bi-file-zip { color: #6c757d; }
.bi-file-earmark { color: #6c757d; }

/* Drag and drop зона */
.file-upload-container {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-container:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.file-upload-container.bg-light {
    background-color: #e9ecef !important;
    border-color: #0d6efd;
}

/* Адаптивные стили */
@media (max-width: 576px) {
    .file-preview-item {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .file-preview-item .card {
        height: 100px;
        width: 100px;
    }
}

/* Стили для таблицы прав доступа */
.table-permissions th {
    white-space: nowrap;
}

.table-permissions .form-check {
    display: inline-block;
    margin-right: 1rem;
}

/* Стили для квадратных кнопок */
.btn-square {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Стили для иконок в таблицах */
.table-icon {
    font-size: 1.25rem;
    vertical-align: middle;
}

/* Анимация загрузки */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Кастомные стили для toast */
.toast-container {
    z-index: 1100;
}

.toast-header {
    font-weight: 600;
}

/* Адаптивные таблицы */
@media (max-width: 768px) {
    .table-responsive table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Стили для карточек файлов */
.file-card {
    transition: all 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.file-card .card-body {
    padding: 0.75rem;
}

.file-card .btn-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.file-card .file-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-card .file-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}