/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.pdf-proteccion-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.pdf-password-input-group {
    margin-bottom: 20px;
}

.pdf-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 500px;
}

.pdf-password-field {
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pdf-password-field:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

#pdf-toggle-password-visibility {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pdf-toggle-password-visibility:hover {
    color: #333;
}

.eye-icon {
    stroke: #666;
    transition: stroke 0.2s ease;
}

#pdf-toggle-password-visibility:hover .eye-icon {
    stroke: #333;
}

.pdf-drop-zone {
    border: 3px dashed #3498db;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 25px;
    background-color: #f7fbfe;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.pdf-drop-zone:hover {
    border-color: #2980b9;
    background-color: #eaf2fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pdf-drop-zone.dragover {
    border-color: #3498db;
    border-width: 4px;
    background-color: #eaf5ff;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.pdf-drop-zone-icon {
    margin-bottom: 15px;
}

.pdf-drop-zone-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.pdf-drop-zone-instructions {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.pdf-drop-zone-instructions svg {
    margin-right: 8px;
    stroke: #3498db;
}

.pdf-drop-zone-or {
    margin: 10px 0;
    color: #777;
    font-style: italic;
}

#pdf-select-files-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#pdf-select-files-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdf-file-list {
    margin-top: 15px;
    margin-bottom: 15px;
}

.pdf-file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.pdf-file-list li:hover {
    background-color: #f7f9fa;
}

.pdf-file-list-item:last-child {
    border-bottom: none;
}

.pdf-file-name {
    font-size: 0.9em;
}

.pdf-remove-file {
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    background: none;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pdf-remove-file:hover {
    background-color: #e74c3c;
    color: white;
}

#pdf-password-step input[type="password"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.pdf-download-links a {
    display: block;
    padding: 12px 18px;
    margin-bottom: 12px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.pdf-download-links a:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdf-download-list {
    margin: 20px 0;
    padding-left: 20px;
}

.pdf-zip-message {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.pdf-zip-message p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.pdf-download-zip-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
}

.pdf-download-zip-button:hover {
    background-color: #218838;
    text-decoration: none;
    color: white;
}

.pdf-files-separator {
    margin: 20px 0 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.pdf-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.pdf-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pdf-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pdf-messages.loading {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    text-align: center;
}

.pdf-messages.loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.pdf-password-in.pdf-step {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.pdf-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pdf-step-title {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.pdf-step-description {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

#pdf-select-files-button {
    margin-top: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#pdf-select-files-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#pdf-proteccion-app h3 {
    margin-top: 0;
}

#pdf-download-all-zip-button {
    margin-top: 15px;
    margin-bottom: 20px;
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#pdf-download-all-zip-button:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#pdf-protect-button {
    margin-top: 25px;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

#pdf-protect-button:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#pdf-protect-more-button {
    margin-top: 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#pdf-protect-more-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdf-messages-area {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pdf-message-error {
    color: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    background-color: rgba(231, 76, 60, 0.1);
}

.pdf-message-success {
    color: #27ae60;
    padding: 10px;
    border-radius: 6px;
    background-color: rgba(39, 174, 96, 0.1);
}

.pdf-message-info {
    color: #3498db;
    padding: 10px;
    border-radius: 6px;
    background-color: rgba(52, 152, 219, 0.1);
}

.cleanup-notice {
    font-size: 0.9em;
    color: #777;
    margin-top: 15px;
}
