/* app/apps/remnawave/templates/static/css/style.css */

/* Общий фон и выравнивание */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(
        90deg,
        rgba(17, 42, 25, 1) 0%,
        rgba(33, 39, 64, 1) 35%,
        rgba(0, 8, 51, 1) 100%
    );
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Логотип */
.logo img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

/* Заголовок */
h2 {
    color: #e7e3e3;
    font-size: 22px;
    margin-bottom: 2px;
}

h3 {
    color: #e7e3e3;
    font-size: 20px;
    margin-bottom: 2px;
}

/* Блок ключа */
.key {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Блок предупреждения */
.warning {
    background-color: rgba(252, 40, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 50px;
    border-radius: 12px;
    margin-bottom: 10px;
    color: #e7e3e3;
    font-size: 25px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.warning h1 {
    color: #ffb3b3;
    margin-bottom: 15px;
}

/* Блок информации */
.info {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    color: #e7e3e3;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.info p {
    margin: 8px 0;
}

/* Блок информации */
.info2 {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    color: #e7e3e3;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.advanced-section {
    width: min(920px, 95vw);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: #e7e3e3;
}

.advanced-section p {
    color: #e7e3e3;
}

.advanced-warning {
    margin: 0 0 12px;
    text-align: center;
}

.advanced-section .advanced-warning {
    color: #ffe2a7;
}

.load-keys-btn {
    display: block;
    margin: 0 auto 12px;
    background: #d06f17;
}

.load-keys-btn:hover {
    background: #e48936;
}

.advanced-keys-list {
    margin-top: 8px;
}

.keys-status {
    min-height: 24px;
    margin: 0 0 10px;
    text-align: center;
    font-size: 15px;
}

.advanced-section .keys-status {
    color: #d7def3;
}

.status-pending {
    color: #d7def3 !important;
}

.status-success {
    color: #8ce6a2 !important;
}

.status-error {
    color: #ffb3b3 !important;
}


.info strong {
    color: #d8dce8;
}


/* Эмодзи флага */
.flag {
    color: #ffffff;
    margin-right: 25px;
    font-size: 40px; /* флаг делаем крупнее */
}

/* Поле ввода ключа */
input {
    width: 500px;
    padding: 14px 18px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: 0.3s;
}

.main-key-input {
    width: 300px;
    padding: 10px 14px;
    font-size: 14px;
}

/* Фокус на input */
input:focus {
    transform: scale(1.025);
    box-shadow: 0 0 0 3px #2a4ca3;
}

/* Кнопка копирования */
button {
    margin-left: 12px;
    padding: 14px 22px;
    font-size: 15px;
    background: #2a4ca3;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

/* Наведение на кнопку */
button:hover {
    background: #5548c8;
    transform: scale(1.10);
}

/* Анимация кнопки после копирования */
button.copied {
    background: #28a745 !important;
}

/* Блок поддержки */
.support {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.support-btn {
    background: #2a4ca3;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.39s ease;
    display: inline-block;
}

.support-btn:hover {
    background: #5548c8;
    transform: translateY(-2px) scale(1.035);
    box-shadow: none;
}

@media (max-width: 820px) {
    .key {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    input {
        width: min(92vw, 560px);
        box-sizing: border-box;
    }

    button {
        margin-left: 0;
        width: 100%;
    }

    .flag {
        margin-right: 0;
        text-align: center;
    }
}
