/* --- Unlock PDF Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.unlock-pdf-wrapper {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
    max-width: 600px;
    margin: 40px auto;
}

.updf-container {
    text-align: center;
}

.updf-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.updf-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* File Drop Area */
.updf-file-drop-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    margin-bottom: 25px;
}
.updf-file-drop-area:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.updf-file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.updf-file-dummy .fa-file-pdf {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}
.updf-file-dummy p {
    margin: 0;
    font-size: 1.2rem;
}
.updf-file-info, .updf-file-dummy span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

/* Password Section */
.updf-password-section {
    margin-bottom: 30px;
    text-align: left;
}
.updf-password-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
}
.updf-password-section label i {
    margin-right: 8px;
    opacity: 0.8;
}
.updf-password-section input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}
.updf-password-section input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.updf-password-section input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Button */
.updf-btn {
    display: inline-block;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.updf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.4);
}
.updf-btn i {
    margin-right: 10px;
}
.updf-btn.download {
    background: linear-gradient(90deg, #1d976c 0%, #93f9b9 100%);
}
.updf-btn.download:hover {
     box-shadow: 0 8px 20px rgba(29, 151, 108, 0.4);
}


/* Messages & Spinner */
.updf-message {
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
}
.updf-message.error {
    background-color: #e74c3c;
    color: #fff;
}
.updf-message.success {
    background-color: #2ecc71;
    color: #fff;
}
.updf-success-msg {
    font-size: 1.2rem;
    font-weight: 600;
    color: #93f9b9; /* light green */
    margin-bottom: 20px;
}
.updf-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .unlock-pdf-wrapper {
        padding: 20px 15px;
    }
    .updf-header h2 {
        font-size: 2rem;
    }
    .updf-header p {
        font-size: 1rem;
    }
}