/* ================================== */
/* css/pdf-protect.css
/* Page-specific styles for Protect Tool
/* Theme: Slate/Zinc (Security)
/* ================================== */

/* === FIX: FORCE WHITE TEXT FOR BADGE === */
#lockBadge {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 1. Gradient Border Input Box */
.input-gradient-wrap {
    padding: 2px;
    border-radius: 0.6rem;
    background: linear-gradient(to bottom right, #64748b, #334155); 
    transition: all 0.3s ease;
}
.input-gradient-wrap:focus-within {
    box-shadow: 0 0 15px rgba(100, 116, 139, 0.5);
}

.input-gradient-wrap input {
    width: 100%;
    border: none !important;
    outline: none !important;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    padding-right: 2.5rem; /* Make space for the eye icon */
    background-color: var(--bg-primary); 
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

body.dark .input-gradient-wrap input {
     background-color: var(--bg-secondary-hover);
}

/* === FIX: HIDE BROWSER DEFAULT PASSWORD EYE === */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* 2. Preview Container Fix */
#protectPagePreview {
    background-image: 
        radial-gradient(#cbd5e1 1px, transparent 1px),
        radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Clip anything outside */
    padding: 1rem;
}

body.dark #protectPagePreview {
    background-image: 
        radial-gradient(#334155 1px, transparent 1px),
        radial-gradient(#334155 1px, transparent 1px);
    background-color: #0f172a;
}

#canvasWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the whole image is visible */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
}

/* 3. File Info Text Visibility */
#protectFileInfo p#protectFileName {
    color: var(--text-primary) !important;
    font-weight: 600;
}

#protectFileInfo p#protectPageCount {
    color: var(--text-secondary) !important;
    font-weight: 500;
}
