/* ===== MODERN RECIPIENT PAGE STYLES ===== */

/* Download Header */
.download-header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 500px;
    margin: 0 auto;
}

.download-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

.file-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.file-count,
.file-size,
.expiry-badge {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.file-count::after {
    content: " •";
    margin-left: 0.5rem;
    color: #d1d5db;
}

.file-size::after {
    content: " •";
    margin-left: 0.5rem;
    color: #d1d5db;
}

/* Password Section */
.password-section {
    margin-bottom: 1.5rem;
}

.password-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lock-icon {
    color: #6b7280;
    margin-bottom: 1rem;
}

.password-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.password-card p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
}

.password-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.password-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.unlock-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.unlock-btn:hover {
    background: #2563eb;
}

/* Download Section */
.download-section {
    max-width: 600px;
    margin: 0 auto;
}

.primary-download-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.primary-download-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Files List */
.files-list {
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.file-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    position: relative;
    min-height: 110px;
}

.file-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #6b7280;
    flex-shrink: 0;
}

.file-info {
    width: 100%;
}

.file-name {
    font-weight: 500;
    color: #111827;
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.625rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    width: 100%;
}

.file-details .file-size,
.file-details .file-type {
    color: #6b7280;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
}

.download-btn {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    position: absolute;
    bottom: 0.375rem;
    right: 0.375rem;
    width: 24px;
    height: 24px;
}

.download-btn:hover {
    background: #059669;
}

.download-btn svg {
    width: 14px;
    height: 14px;
}

/* Send Back Section */
.send-back-section {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.send-back-section p {
    color: #6b7280;
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
}

.secondary-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background: #e5e7eb;
}

/* Auto-delete Notice */
.auto-delete-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #92400e;
    text-align: center;
    justify-content: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .download-header {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .download-title {
        font-size: 1.5rem;
    }
    
    .file-summary {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .file-count,
    .file-size,
    .expiry-badge {
        font-size: 0.8125rem;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .password-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .primary-download-btn {
        padding: 0.875rem 1.5rem;
    }
}