/* --- Protect PDF Styles (Light & Fresh Theme) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Main wrapper for the entire tool */
.protect-pdf-wrapper {
    font-family: 'Poppins', sans-serif;
    /* Light, soft blue-gray background for the page */
    background-color: #f7f9fc; 
    /* The tool itself will be white, this is the surrounding color */
    padding: 40px 20px;
    border-radius: 24px;
    /* Soft, professional shadow */
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1); 
    /* Main text color (dark, but not black) */
    color: #2d3436; 
    max-width: 550px;
    margin: 40px auto;
    /* Card background is now white */
    background: #ffffff;
}

.ppdf-container {
    text-align: center;
}

/* Header Text */
.ppdf-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    /* Dark slate color for heading */
    color: #2c3e50; 
    margin: 0 0 8px;
}

.ppdf-header p {
    font-size: 1.1rem;
    /* Muted gray for subtitles */
    color: #636e72; 
    margin-bottom: 35px;
}

/* File Drop Area */
.ppdf-file-drop-area {
    position: relative;
    /* Light dashed border */
    border: 2px dashed #d0d9e4; 
    border-radius: 16px;
    padding: 30px 20px;
    /* Very light background for the drop area */
    background-color: #f9fafc; 
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 25px;
}
.ppdf-file-drop-area:hover {
    background-color: #f0f4f8;
    /* Accent color on hover */
    border-color: #3498db; 
}
.ppdf-file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.ppdf-file-dummy .fa-file-pdf {
    font-size: 2.5rem;
    /* Vibrant blue accent color for the icon */
    color: #3498db; 
    margin-bottom: 12px;
}
.ppdf-file-dummy p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    /* Dark text color */
    color: #2c3e50; 
}
.ppdf-file-info {
    font-size: 0.85rem;
    /* Muted gray for file info */
    color: #95a5a6; 
    margin-top: 5px;
    display: block;
}

/* Password Section */
.ppdf-password-section {
    margin-bottom: 30px;
    text-align: left;
}
.ppdf-password-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1rem;
    /* Dark text for label */
    color: #2c3e50; 
}
.ppdf-password-section label i {
    margin-right: 8px;
    /* A nice golden color for the key icon */
    color: #f39c12; 
}
.ppdf-password-section input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    /* Light gray border */
    border: 1px solid #d0d9e4; 
    background-color: #ffffff; /* White background */
    color: #2d3436; /* Dark text color */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ppdf-password-section input::placeholder {
    color: #b0bec5; /* Lighter placeholder text */
}
.ppdf-password-section input:focus {
    outline: none;
    /* Accent color for border and shadow on focus */
    border-color: #3498db; 
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Main Button */
.ppdf-btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    /* White text on the button */
    color: #ffffff; 
    /* Vibrant blue background */
    background: #3498db; 
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.ppdf-btn:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
.ppdf-btn i {
    margin-right: 10px;
}
.ppdf-btn.download {
    /* Green for success download button */
    background: #2ecc71; 
    color: #fff;
}
.ppdf-btn.download:hover {
    background: #27ae60;
}

/* Spinner & Messages */
.ppdf-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3); /* Lighter spinner track */
    border-radius: 50%;
    /* White spinner for contrast on colored button */
    border-top: 3px solid #ffffff; 
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ppdf-message {
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
    /* Standard red for error */
    background-color: #e74c3c; 
    color: #fff;
}

/* Output Block After Success */
#ppdf-output-block {
    padding: 20px;
}
#ppdf-output-block h3 {
    font-size: 1.5rem;
    color: #2c3e50; /* Dark text color */
    margin: 15px 0 8px;
}
#ppdf-output-block p {
    color: #636e72; /* Muted gray text */
    margin-bottom: 25px;
}
.ppdf-success-icon {
    font-size: 3rem;
    /* Standard green for success */
    color: #2ecc71; 
}

/* Responsive */
@media (max-width: 600px) {
    .protect-pdf-wrapper {
        padding: 25px 15px;
        margin: 20px;
    }
    .ppdf-header h2 {
        font-size: 1.8rem;
    }
}