
@font-face {
  font-family: 'Flatiron';
  src: url('fonts/Flatiron/Flatiron Regular.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Droid Sans';
  src: url('fonts/Droid Sans/DroidSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Bubble Sans';
  src: url('fonts/Bubble Sans/BubbleSans-Regular.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
    display: block;
    margin: 0;
    background: #1a1921;
    font-family: "Sofia Sans Semi Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    color: #ffffff;
    align-items: center;
}

.p-desc {
    font-family: "Bubble Sans", sans-serif;
    font-size: 1.5em;
    margin: 0.5em;
}

.markdown-content {
    width: 90%;
    background: #25232f;
    overflow-y: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    transform: translateZ(0);
    pointer-events: auto;
    font-family: "Bubble Sans", sans-serif;
    font-size: 1.2em;
    margin-left: 2em;
    height: 85%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 8px -8px 12px 5px rgb(157 46 237 / 19%);
}

@media (max-width: 480px) {
    .main {

        margin-left: 1em;
        margin-right: 1em;
    }
    p {
        font-size: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .step {
        flex-direction: column;
    }

    .step-number {
        min-width: 100%;
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }
    .p-desc {
        font-size: 1em;
    }
    .markdown-content {
        margin-left: 0;
        font-size: 0.8em;
        width: 80%;
    }
}

/* Адаптивность для разных размеров экранов */
@media (max-height: 700px) {
    .content {
        gap: 20px;
    }

    .slide-img {
        max-height: 40vh;
    }

    .p-desc {
        font-size: clamp(14px, 1.8vw, 20px);
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 20px 15px;
    }

    .content {
        gap: 20px;
    }

    .slide-img {
        width: 95%;
    }

    .dots {
        right: 10px;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }
}



img {
  max-width: 100%;
  height: auto;
}





.main-btn {
    background: rgb(201 185 249 / 10%);
    border: 1px solid rgb(196 153 255 / 63%);
    border-radius: 10px;
    width: 200px;
    height: 50px;
    margin: 5px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(164, 120, 228, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 120, 228, 0.3);
}

/* changelog styles --------------------------------------------------------------*/
.wrapper-changelog {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    max-height: calc(100vh - 100px); /* Ограничиваем высоту */
    overflow: hidden;
}

.changelog-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    color: white;
    max-height: calc(100vh - 150px); /* Ограничиваем высоту контейнера */
    overflow: hidden; /* Скрываем скролл контейнера */
    display: flex;
    flex-direction: column;
}

.editor-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1; /* Занимает все доступное пространство */
    min-height: 400px; /* Минимальная высота */
    max-height: 600px; /* Максимальная высота */
    overflow: auto; /* Скролл внутри редактора */
    width: 100%; /* ← ФИКСИРУЕМ ШИРИНУ */
    box-sizing: border-box; /* ← ВАЖНО */
}

/* Стилизация скроллбара для редактора */
.editor-container::-webkit-scrollbar {
    width: 8px;
}

.editor-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.editor-container::-webkit-scrollbar-thumb {
    background: rgba(164, 120, 228, 0.5);
    border-radius: 4px;
}

.editor-container::-webkit-scrollbar-thumb:hover {
    background: rgba(164, 120, 228, 0.7);
}

.changelog-header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(164, 120, 228, 0.3);
}

.changelog-header h1 {
    color: #ffc3ff;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.changelog-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.save-btn {
    background: linear-gradient(135deg, #db418e, #5141db);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 65, 142, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.width-spacer {
    width: 100%;
    min-width: 1100px;
    height: 0;
    visibility: hidden;
    flex-shrink: 0;
}

/* Стилизация EasyMDE редактора */
.EasyMDEContainer {
    border-radius: 12px;
    height: 100%; /* Занимает всю высоту контейнера */
    width: 100% !important; /* ← ФИКСИРУЕМ ШИРИНУ */
    min-width: 100%; /* ← ПРЕДОТВРАЩАЕМ СЖАТИЕ */
}

.EasyMDEContainer .CodeMirror {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 14px;
    height: 100%; /* Полная высота */
    min-height: 400px; /* Минимальная высота */
    width: 100% !important; /* ← ФИКСИРУЕМ ШИРИНУ */
}

.EasyMDEContainer .CodeMirror-scroll {
    max-height: 500px; /* Максимальная высота скролла */
    overflow-y: auto !important; /* Принудительный скролл */
    overflow-x: auto !important;
}

.EasyMDEContainer .CodeMirror-cursor {
    border-left: 2px solid #ffc3ff;
}

.EasyMDEContainer .editor-toolbar {
    background: rgba(164, 120, 228, 0.2);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    width: 100% !important; /* ← ФИКСИРУЕМ ШИРИНУ */
}

.EasyMDEContainer .editor-toolbar button {
    color: #ffc3ff;
    border: none;
    background: none;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.EasyMDEContainer .editor-toolbar button:hover {
    background: rgba(255, 195, 255, 0.1);
    color: white;
}

.EasyMDEContainer .editor-toolbar button.active {
    background: rgba(219, 65, 142, 0.3);
}

.EasyMDEContainer .editor-statusbar {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 15px;
}

/* Стилизация скроллбара CodeMirror */
.EasyMDEContainer .CodeMirror-vscrollbar {
    width: 8px;
}

.EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar {
    width: 8px;
}

.EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.EasyMDEContainer .CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
    background: rgba(164, 120, 228, 0.5);
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wrapper-changelog {
        margin: 20px auto;
        padding: 0 15px;
    }

    .changelog-container {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .save-btn, .cancel-btn {
        width: 100%;
        justify-content: center;
    }

    .EasyMDEContainer .CodeMirror {
        min-height: 400px;
    }
}
/* end changelog styles ------------------------------------------------ */

header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 5px;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.header-install{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ссылки-контейнеры для иконок */
.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-icon-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(164, 120, 228, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 120, 228, 0.3);
}

/* Белые SVG иконки */
.nav-icon {
    filter: invert(1) brightness(2);
    transition: transform 0.3s ease;
}

.nav-icon-link:hover .nav-icon {
    transform: scale(1.1);
}

/* Активная иконка (для текущей страницы) */
.nav-icon-link.active {
    background: rgba(164, 120, 228, 0.2);
    border-color: rgba(164, 120, 228, 0.6);
}

.nav-avatar {
    border-radius: 50%; /* Круглая форма */
    object-fit: cover; /* Обрезаем изображение */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Рамка */
    transition: all 0.3s ease;
    filter: none !important;
}

.nav-icon-link:hover .nav-avatar {
    transform: scale(1.1);
    border-color: #a478e8; /* Фиолетовая рамка при наведении */
    box-shadow: 0 0 10px rgba(164, 120, 228, 0.5);
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 40px;
    font-family: "Droid Sans", sans;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    padding: 1em;
    margin: 0.5em;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo-header {
    font-family: "Flatiron", sans-serif;
    font-size: 30px;
}

.header .subtitle {
    color: var(--medium-gray);
    font-size: 1.2rem;
    margin-top: 10px;
}

.screenshot {
    margin: 20px 0;
    text-align: center;
}

.screenshot img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 60em;
    margin-left: 1.5em;
    margin-right: 1.5em;
}

.caption {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;

}

.feature-list i {
    color: #4bf341;
    margin-right: 10px;
}

.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(182deg, #b477cd, #9174ab, #5d41ed);
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: #22ad52;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.load-file {
    background: var(--secondary-color);
    color: var(--primary-color);
    margin: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.load-file:hover {
    background: #22ad52;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

:root {
    --primary-color: #ffffff;
    --secondary-color: linear-gradient(1deg, #2b4d41, #48e435);
    --accent-color: #ea4335;
}

/* Минимальные стили для слайдшоу */
.mini-slideshow {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.mini-slideshow-container {
    display: flex;
    transition: transform 0.3s ease;
}

.mini-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.mini-slide img {
    object-fit: contain;
}

.mini-slideshow-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.mini-slideshow-nav button {
    pointer-events: auto;
    background: rgba(164, 120, 228, 0.3);
    border: none;
    color: white;
    z-index: 2;
    padding: 30px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mini-slideshow-nav button:hover {
    background: rgba(164, 120, 228, 1);
    transform: scale(1.1);
}

/* новые стили */

/* Стили для аутентификации --------------------------------------------------------------------*/

.auth-body {
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #3a4c9b 0%, #853c9d 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.auth-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: rgba(164, 120, 228, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 0 0 0 3px rgba(164, 120, 228, 0.3);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.submit-login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #a478e8 0%, #8a5cd1 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(164, 120, 228, 0.3);
}

.submit-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(164, 120, 228, 0.4);
    background: linear-gradient(135deg, #b18dee 0%, #9670df 100%);
}

.submit-login-btn:active {
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    border-radius: 10px;
    color: white;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Эффект частиц на фоне */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .auth-header h2 {
        font-size: 1.7rem;
    }

    .form-input {
        padding: 12px 15px;
    }
}

/* Переопределение для страниц аутентификации */
main {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 60px) !important;
    padding: 20px !important;
}

/* Фикс для градиента */
body {
    background: linear-gradient(135deg, #3a4c9b 0%, #853c9d 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

.profile-container {
    max-width: 600px;
    margin: 0px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #a478e8;
    margin-bottom: 15px;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #a478e8;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(164, 120, 228, 0.3);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #a478e8;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #a478e8 0%, #8a5cd1 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(164, 120, 228, 0.4);
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 10px 20px;
    margin: 2px;
    background: linear-gradient(135deg, rgba(164, 120, 228, 0.9) 0%, rgba(138, 92, 209, 0.9) 100%);
    border-radius: 10px;
    color: white;
    text-align: center;
    font-weight: 500;
}

/* install_info styles ------------------------------------------------------------*/

.install-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.install-header {
    text-align: center;
    margin-bottom: 50px;
}

.install-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4CAF50;
}

.download-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 30px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateX(10px);
}

.step-number {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 10px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list i {
    color: #4CAF50;
    font-size: 1.2em;
}

.cta-section {
    text-align: center;
    padding: 40px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-top: 30px;
}

.cta-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4CAF50;
}

.cta-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

.step-highlight {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

/* upload styles ----------------------------------------------------------------*/

.wrapper-form {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-version {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.control-panel {
    flex: 0 0 450px; /* Фиксированная ширина */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Правый блок - растягивается */
.table-panel {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.toggle-buttons .main-btn {
    width: 100%;
    padding: 15px;
    text-align: center;
}

.main-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.main-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-btn.active {
    background: linear-gradient(135deg, #a478e8 0%, #8a5cd1 100%);
    border-color: #a478e8;
}

.version-form {
    display: none;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 50px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.version-form.active {
    display: flex;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #a478e8;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(164, 120, 228, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #a478e8 0%, #8a5cd1 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(164, 120, 228, 0.4);
}

.versions-table {
    margin-top: 5px;
}

.versions-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: auto; /* Скролл в обе стороны */
    max-height: 500px; /* Ограничиваем высоту */
    min-height: 200px; /* Минимальная высота */
}

/* Стилизация скроллбара */
.versions-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.versions-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.versions-container::-webkit-scrollbar-thumb {
    background: rgba(164, 120, 228, 0.5);
    border-radius: 4px;
}

.versions-container::-webkit-scrollbar-thumb:hover {
    background: rgba(164, 120, 228, 0.7);
}

.versions-table table {
    width: 100%;
    border-collapse: collapse;
}

.versions-table thead {
    background: rgba(164, 120, 228, 0.2);
}

.versions-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #ffc3ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.versions-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.versions-table tbody tr {
    transition: background 0.3s ease;
}

.versions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.versions-table tbody tr:last-child td {
    border-bottom: none;
}

.version-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-stable {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-experimental {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-both {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.delete-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.delete-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-1px);
}

.timestamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* download_stats styles -------------------------------------------------------------------------*/

.wrapper-stats {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.stats-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-panel {
    flex: 0 0 450px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-stats {
    color: #ffc3ff;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 2px solid rgba(164, 120, 228, 0.3);
    padding-bottom: 3px;
    margin-bottom: 3px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(164, 120, 228, 0.5);
}

.stat-card h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffc3ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.stat-row {
    display: flex;
    gap: 15px;
    justify-content: space-around;
    align-items: center;
    flex: 1;
}

.stat-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    margin: 5px 0;
    background: linear-gradient(135deg, #e878a4, #b281ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    margin: 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: auto; /* Включаем скролл */
    max-height: 600px; /* Ограничиваем высоту */
    min-height: 400px; /* Минимальная высота */
}

.stats-table thead {
    background: rgba(164, 120, 228, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #ffc3ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(164, 120, 228, 0.3); /* Для лучшей видимости при скролле */
    backdrop-filter: blur(10px);
}

.stats-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.stats-table tbody tr {
    transition: background 0.3s ease;
}

.stats-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.version-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-stable {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-exp {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-setup {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.ip-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.timestamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.user-agent {
    max-width: 400px;
    word-wrap: break-word;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.section-title {
    margin-bottom: 20px;
    color: #ffc3ff;
    font-size: 1.5em;
    border-bottom: 2px solid rgba(164, 120, 228, 0.3);
    padding-bottom: 10px;
}

/* Стилизация скроллбара */
.stats-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.stats-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.stats-table-container::-webkit-scrollbar-thumb {
    background: rgba(164, 120, 228, 0.5);
    border-radius: 4px;
}

.stats-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(164, 120, 228, 0.7);
}

/* index styles ----------------------------------------------------------------------*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #3a4c9b 0%, #853c9d 100%);
}

.slides-container {
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

.slide {
    height: calc(100vh - 60px);
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.p-desc {
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.slide-img {
    width: min(80%, 600px);
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(164, 120, 228, 0.4);
}

/* Модальное окно для полноразмерного просмотра */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
    background: rgba(164, 120, 228, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-btn:hover {
    color: #fff;
    background: rgba(164, 120, 228, 1);
    transform: scale(1.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(164, 120, 228, 0.8);
    border: none;
    width: 60px;
    height: 60px;
    z-index: 1001;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: rgba(164, 120, 228, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}


.mini-slideshow-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}



/* Навигационные точки */
.dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #a478e8;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.dot:hover {
    background: rgba(164, 120, 228, 0.7);
}

/* Контейнер для changelog */
.markdown-content {
    width: min(90%, 1000px);
    height: 70vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.markdown-content::-webkit-scrollbar {
    width: 8px;
}

.markdown-content::-webkit-scrollbar-thumb {
    background: #a478e8;
    border-radius: 4px;
}