/* ============================================================
   PROTECT PDF — TOOL SPECIFIC STYLES
   Following Toolspot Glassmorphism Standards
   ============================================================ */

/* Single column layout for initial dropzone state */
.tool-header {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1024px;
    margin: 0 auto 40px auto;
}


.tool-layout.single-col {
    display: flex;
    justify-content: center;
    margin: 0 auto !important;
    max-width: 1024px;
    width: 100%;
}

.tool-layout.single-col .tool-left {
    width: 100%;
}

.p2w-panel {
    width: 100%;
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Standard Dropzone Styles (Matched with p2w-dropzone) */
.p2w-dropzone {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.p2w-dropzone:hover,
.p2w-dropzone.drag-over {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--red);
    transform: translateY(-2px);
}

.p2w-dropzone .drop-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.2));
}

.p2w-dropzone .drop-content {
    pointer-events: none;
}

.p2w-dropzone h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.p2w-dropzone p {
    color: var(--text-3);
    margin-bottom: 30px;
}

.privacy-badge {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
}

/* Loading View specific to dropzone container */
#loading-view.p2w-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

#loading-view.p2w-dropzone:hover {
    transform: none;
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.locked-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.shield-container {
    width: 120px;
    height: 120px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.1);
}

.shield-icon {
    font-size: 54px;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.4));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
    background-color: #ef4444;
    width: 33%;
}

.strength-medium {
    background-color: #f59e0b;
    width: 66%;
}

.strength-strong {
    background-color: #10b981;
    width: 100%;
}

/* Toggle visibility icon */
.toggle-pw {
    padding: 0 14px;
    cursor: pointer;
    color: var(--text-3);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.toggle-pw:hover {
    color: var(--text);
}

/* Locked Badge Styling (for static lock icon instead of full preview) */
.locked-badge {
    width: 80px;
    height: 80px;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.locked-badge:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
    background: rgba(249, 115, 22, 0.08);
}

/* Preview Thumbnail Styling */
.preview-wrap {
    width: 140px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.preview-wrap:hover {
    border-color: var(--red);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
}

#preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    transition: filter 0.3s;
}

.preview-wrap:hover #preview-canvas {
    filter: blur(0);
}

.preview-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
    z-index: 2;
}

.preview-overlay svg {
    width: 16px;
    height: 16px;
}

/* Premium Option Pills */
.opt-pill {
    position: relative;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: var(--text-2) !important;
    font-weight: 500;
}

.opt-pill:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--text) !important;
    transform: translateY(-1px);
}

.opt-pill:has(input:checked) {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: var(--red) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

/* Custom Checkbox Design */
.opt-pill input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    margin: 0;
}

.opt-pill input[type="checkbox"]:checked {
    background: var(--red);
    border-color: var(--red);
}

.opt-pill input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.opt-pill svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.opt-pill:has(input:checked) svg {
    opacity: 1;
}

/* Tool left/right specific tweaks */
.tool-right .panel {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Success view specific stats */
#success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.stat-lbl {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile stacking adjustment */
@media (max-width: 1024px) {
    .tool-right .panel {
        min-height: 300px;
    }
}