﻿.csv-secure-preview {
    position: relative;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px 16px 48px;
    background: #f9fafb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.csv-secure-preview--shielded::after {
    content: attr(data-watermark);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    font-size: 48px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.08);
    text-transform: uppercase;
    letter-spacing: 12px;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-32deg);
    z-index: 1;
}

.csv-secure-preview__shield {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.04) 0,
        rgba(15, 23, 42, 0.04) 8px,
        transparent 8px,
        transparent 16px
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: csv-secure-preview-pan 12s linear infinite;
    z-index: 2;
}

@keyframes csv-secure-preview-pan {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-32px, -32px, 0);
    }
}

.csv-secure-preview__table-wrapper {
    position: relative;
    z-index: 3;
    max-height: 420px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(1px);
    user-select: none;
    -webkit-user-select: none;
}

.csv-secure-preview--allow-copy .csv-secure-preview__table-wrapper {
    user-select: text;
    -webkit-user-select: text;
}

.csv-secure-preview__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.csv-secure-preview__table thead th {
    background: #111827;
    color: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 4;
}

.csv-secure-preview__table th,
.csv-secure-preview__table td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
}

.csv-secure-preview__table tbody tr:nth-child(2n) td {
    background: rgba(226, 232, 240, 0.45);
}

/* download button removed */

.csv-secure-preview__notice {
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.csv-secure-preview__warning {
    position: fixed;
    right: 24px;
    bottom: 24px;
    padding: 14px 18px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.35);
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.csv-secure-preview__warning.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.csv-secure-preview--blurred .csv-secure-preview__table-wrapper {
    filter: blur(6px) brightness(0.95);
}

.csv-secure-preview--obscured .csv-secure-preview__table-wrapper {
    filter: blur(18px) brightness(0.7);
}
