/* Стиль строки списка */
.sent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #333;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;

    font-size: 15px;
}

/* Текст слева */
.sent-item b {
    color: #fff;
}

.sent-item span {
    color: #ccc;
}

/* Кнопка справа */
.sent-item .btn.small {
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
}

/* Чтобы кнопка не растягивалась */
.sent-item a.btn {
    flex-shrink: 0;
}

/* Чтобы текст не прилипал к кнопке */
.sent-item-text {
    flex-grow: 1;
    margin-right: 12px;
}

.qr {
    background-color: #333;
    padding: 10px;
    transform: translate(-50%,0%);
    margin-left: 50%;
    border-radius: 10px;
}

.qr-block {
    display: none;
}

.qr-block.visible {
    display: block;
}

#copy-link-btn {
    transition: background-color 0.5s ease, color 0.25s ease;
}


.text-result {
    text-align: left;
    background: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.file-stats {
    text-align: left;
    margin-top: 10px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

p {
    margin-left: 10px;
    text-align: left;
}

/* Кнопка-панель */
.file-toggle {
    width: 100%;
    background: #1e1e1e;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s;
}

.file-toggle:hover {
    background: #161616;
}

/* Обёртка списка — скрыта по умолчанию */
.file-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #1e1e1e;
    margin-top: 10px;
    padding: 0 16px;
    border-radius: 6px;
}

/* Когда открыто */
.file-list-wrapper.open {
    padding: 16px;
}

/* Заголовок */
.file-list-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #ccc;
}

/* Список файлов */
.file-list {
    text-align: left;
    padding-left: 10px;
    margin: 0;
}

.file-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.code-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.code-label {
    font-size: 22px;
    font-weight: 600;
}

.code-hidden {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    cursor: pointer;
    user-select: none;
    filter: blur(8px);
    transition: filter .25s ease;
}

.code-hidden.revealed {
    filter: blur(0);
}

.copy-btn {
    width: 37px;
    height: 37px;
    background: #444;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s;
}

.copy-btn:hover {
    background: #666;
}

/* --- МОДАЛКА УДАЛЕНИЯ --- */

#delete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.delete-box {
    width: 80%;
    max-width: 360px;
    background: #222;
    padding: 26px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.delete-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.delete-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Красная кнопка удаления */
.delete-red {
    background: #b32020 !important;
}

.delete-red:hover {
    background: #d62828 !important;
}

/* --- КНОПКИ В СПИСКЕ --- */
.sent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.sent-item-left {
    display: flex;
    flex-direction: column;
}

.sent-code-hidden {
    font-weight: bold;
    font-size: 18px;
    filter: blur(6px);
    cursor: pointer;
    transition: 0.25s;
    user-select: none;
}

.sent-code-hidden.revealed {
    filter: blur(0);
}

.sent-meta {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.sent-actions {
    display: flex;
    gap: 8px;
}

.sent-btn {
    width: 38px;
    height: 38px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: #fff;
    text-decoration: none;
}

.sent-btn:hover {
    background: #3a3a3a;
}

/* одинаковый размер для всех */
.sent-btn.open-btn {
    width: 36px;
    height: 36px;
    padding: 0;
}

/* красная кнопка удаления */
.sent-btn.delete-btn {
    background: #7a1a1a;
    border-color: #aa2a2a;
}

.sent-btn.delete-btn:hover {
    background: #b32020;
}