/* PDF FTP Replacer - Frontend Styles */

.pfr-upload-wrapper {
    max-width: 600px;
    margin: 30px auto;
}

.pfr-upload-container {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pfr-title {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    text-align: center;
}

/* Form Styles */
.pfr-form {
    margin-bottom: 20px;
}

.pfr-form-group {
    margin-bottom: 20px;
}

.pfr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.pfr-form-group select,
.pfr-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.pfr-form-group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* File Input Wrapper */
.pfr-file-input-wrapper {
    position: relative;
}

.pfr-file-input-wrapper input[type="file"] {
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pfr-file-input-wrapper input[type="file"]:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pfr-file-input-wrapper input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

.pfr-file-input-wrapper input[type="file"]::before {
    content: 'Choose PDF file or drag and drop';
    display: block;
    text-align: center;
    color: #646970;
    font-size: 14px;
}

/* File Info */
.pfr-file-info {
    margin-top: 10px;
    padding: 10px;
    background: #f0f6fc;
    border: 1px solid #b8daff;
    border-radius: 4px;
}

.pfr-file-name {
    display: block;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.pfr-file-size {
    display: block;
    font-size: 12px;
    color: #646970;
}

/* Info Box */
.pfr-info-box {
    background: #f0f6fc;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
}

.pfr-info-box strong {
    display: block;
    margin-bottom: 5px;
    color: #1d2327;
}

/* Submit Button */
.pfr-submit-button {
    width: 100%;
    padding: 12px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.pfr-submit-button:hover {
    background: #135e96;
}

.pfr-submit-button:disabled {
    background: #dcdcde;
    color: #646970;
    cursor: not-allowed;
}

.pfr-btn-text,
.pfr-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Spinner */
.pfr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pfr-spin 0.8s linear infinite;
}

@keyframes pfr-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.pfr-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

.pfr-message.success {
    background: #d5f4e6;
    border: 1px solid #68de7c;
    color: #006b3d;
}

.pfr-message.error {
    background: #ffd6d6;
    border: 1px solid #ff4d4f;
    color: #8b0000;
}

.pfr-message.info {
    background: #f0f6fc;
    border: 1px solid #b8daff;
    color: #0c5460;
}

/* Progress Bar */
.pfr-progress {
    margin: 20px 0;
}

.pfr-progress-bar {
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
}

.pfr-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pfr-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
}

/* Result Box */
.pfr-result {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pfr-result h4 {
    margin: 0 0 15px;
    color: #1d2327;
}

.pfr-result-content {
    font-size: 14px;
    line-height: 1.6;
}

.pfr-result-content strong {
    display: inline-block;
    min-width: 150px;
    color: #646970;
}

/* Error Message */
.pfr-error {
    background: #ffd6d6;
    border: 1px solid #ff4d4f;
    border-radius: 4px;
    padding: 15px;
    color: #8b0000;
    margin: 20px 0;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .pfr-upload-container {
        padding: 20px;
    }
    
    .pfr-title {
        font-size: 20px;
    }
    
    .pfr-submit-button {
        padding: 14px 20px;
    }
}

@media screen and (max-width: 600px) {
    .pfr-upload-wrapper {
        margin: 20px 10px;
    }
}
