/**
 * File to PDF Converter Styles
 */

/* Main container */
.fpc-converter-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* File input styling */
.fpc-file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.fpc-file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.fpc-file-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

.fpc-file-selected {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fpc-browse-button {
    padding: 6px 12px;
    background-color: #6c757d;
    color: white;
    border-radius: 3px;
    margin-left: 10px;
}

/* Progress bar */
.fpc-progress {
    margin: 20px 0;
}

.fpc-progress-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.fpc-progress-bar-inner {
    height: 100%;
    background-color: #28a745;
    width: 0;
    transition: width 0.3s ease;
}

.fpc-progress-status {
    margin-top: 5px;
    text-align: center;
    color: #6c757d;
}

/* Buttons */
.fpc-convert-button, 
.fpc-download-button,
.fpc-try-again-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.fpc-download-button {
    background-color: #28a745;
}

.fpc-try-again-button {
    background-color: #dc3545;
}

.fpc-convert-button:hover, 
.fpc-download-button:hover,
.fpc-try-again-button:hover {
    opacity: 0.9;
}

/* Results */
.fpc-result-success, 
.fpc-result-error {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
}

.fpc-result-success {
    background-color: #d4edda;
    color: #155724;
}

.fpc-result-error {
    background-color: #f8d7da;
    color: #721c24;
}

.fpc-submit-wrapper {
    margin-top: 15px;
    text-align: center;
}

.fpc-download-wrapper {
    margin-top: 15px;
    text-align: center;
}

.fpc-allowed-types {
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.fpc-file-size-info {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Debug information styling */
.fpc-debug-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.fpc-debug-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
}

.fpc-debug-info pre {
    background-color: #e9ecef;
    padding: 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #212529;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .fpc-converter-container {
        padding: 15px;
    }
    
    .fpc-browse-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .fpc-convert-button {
        padding: 10px 20px;
        font-size: 15px;
    }
} 