/* Mobile gate modal — hidden on desktop, shown on mobile */
.mobile-gate-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-gate-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }

    .mobile-gate-overlay.hidden {
        display: none;
    }
}

.mobile-gate-modal {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 320px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-gate-modal p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.mobile-gate-modal button {
    padding: 10px 30px;
    border: 2px solid #ddd;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: black;
}

.mobile-gate-modal button:hover {
    background: #e0e0e0;
}

/* Received file list for transfer mode */
.transfer-file-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
}

.transfer-file-item .file-icon {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    font-size: 18px;
}

.transfer-file-item .file-name {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.transfer-file-item .file-size {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    min-width: 65px;
    text-align: right;
}

.transfer-file-item .file-progress {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    min-width: 45px;
    text-align: right;
}

.transfer-file-item .file-status {
    font-size: 12px;
    color: #4CAF50;
    margin-left: 10px;
    min-width: 20px;
}
