/* === Functions Page === */
#functions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.functions-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.functions-menu .func-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #2c2c44;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.functions-menu .func-tab.active,
.functions-menu .func-tab:hover {
    background: #4a3f8f;
    box-shadow: 0 0 10px #6c5dd1;
}

.func-content {
    background: #1e1e2f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px #4a3f8f50;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.func-content textarea {
    resize: vertical;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #2c2c44;
    color: #fff;
    font-size: 16px;
    min-height: 120px;
}

.func-content-contener-title {
    display: flex;
    justify-content: space-between; /* текст слева, счетчик справа */
    align-items: center;
    padding: 6px 22px;
    background: #1b1f38; /* темно-синий/фиолетовый */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px #0005;
}

.func-content-text {
    width: 60%;
}

.func-content-text h2 {
    margin-bottom: 15;
    color: #fff;
    font-size: 20px;
}

.func-content-text p {
    margin-top: 10;
    color: #aaa;
    font-size: 14px;
}

.func-content-count_accounts {
    background: #6c5ce7; /* яркий фиолетовый блок */
    color: #fff;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.func-content .run-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #6c5dd1;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;
    transition: all 0.2s;
}

.func-content .run-btn:hover {
    background: #8473e3;
    box-shadow: 0 0 10px #8473e3aa;
}

.buttons-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
}


.clear-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #e74c3c; /* ярко-красная */
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #ff5c5c;
    box-shadow: 0 0 10px #ff5c5caa;
}


.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*=== Поле загризить файл === */
.file-upload input[type="file"] {
    display: none; /* скрываем стандартное поле */
}

.file-label {
    display: inline-block;
    padding: 11px 25px;
    border-radius: 10px;
    background: linear-gradient(90deg, #4a3f8f, #6c5ab5);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 63, 143, 0.4);
}

.file-label:hover {
    background: linear-gradient(90deg, #6c5ab5, #4a3f8f);
    box-shadow: 0 0 15px rgba(74, 63, 143, 0.6);
    transform: scale(1.05);
}

#file-name {
    font-size: 14px;
    color: #ccc;
    font-style: italic;
}