/**
 * PDF Suite Frontend Styles
 * Professional styling for all 30 PDF tools
 */

/* Tool Container */
.pdf-suite-tool {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Tool Header */
.pdf-suite-tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.pdf-suite-tool-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.pdf-suite-description {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* Tool Body */
.pdf-suite-tool-body {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Upload Zone */
.pdf-suite-upload-zone {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pdf-suite-upload-zone:hover,
.pdf-suite-upload-zone.drag-over {
    border-color: #CFE962;
    background: #f0f9e8;
}

.pdf-suite-upload-zone .upload-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.pdf-suite-upload-zone h3 {
    font-size: 1.5em;
    margin: 15px 0 10px;
    color: #333;
}

.pdf-suite-upload-zone .upload-hint {
    color: #666;
    font-size: 0.95em;
    margin: 10px 0;
}

.pdf-suite-file-input {
    display: none;
}

.pdf-suite-browse-btn {
    background: #CFE962;
    color: #000;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.pdf-suite-browse-btn:hover {
    background: #b8d14d;
    transform: translateY(-2px);
}

/* Selected Files */
.pdf-suite-selected-files {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.pdf-suite-selected-files h4 {
    margin: 0 0 15px;
    color: #333;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.file-icon {
    font-size: 1.5em;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

/* Options */
.pdf-suite-options {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.pdf-suite-options h4 {
    margin: 0 0 15px;
    color: #333;
}

.pdf-suite-option {
    margin-bottom: 15px;
}

.pdf-suite-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pdf-suite-option .required {
    color: #d63638;
}

.pdf-suite-input,
.pdf-suite-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.pdf-suite-input:focus,
.pdf-suite-select:focus {
    outline: none;
    border-color: #CFE962;
}

/* Progress */
.pdf-suite-progress {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #CFE962 0%, #b8d14d 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* Result */
.pdf-suite-result {
    margin: 25px 0;
    padding: 30px;
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
}

.result-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.success-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    line-height: 60px;
    font-size: 2em;
    font-weight: bold;
}

.success-message {
    font-size: 1.2em;
    font-weight: 600;
    color: #155724;
    margin: 0;
}

.pdf-suite-download-btn {
    display: inline-block;
    background: #28a745;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.pdf-suite-download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Error */
.pdf-suite-error {
    margin: 25px 0;
    padding: 20px;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
}

.error-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.error-message {
    color: #721c24;
    font-weight: 500;
    margin: 0;
}

/* Action Buttons */
.pdf-suite-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.pdf-suite-submit-btn,
.pdf-suite-reset-btn {
    padding: 14px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-suite-submit-btn {
    background: #000;
    color: #CFE962;
}

.pdf-suite-submit-btn:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
}

.pdf-suite-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pdf-suite-reset-btn {
    background: #f5f5f5;
    color: #333;
}

.pdf-suite-reset-btn:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-suite-tool-body {
        padding: 25px 20px;
    }
    
    .pdf-suite-upload-zone {
        padding: 40px 20px;
    }
    
    .pdf-suite-tool-header h2 {
        font-size: 2em;
    }
    
    .pdf-suite-actions {
        flex-direction: column;
    }
    
    .pdf-suite-submit-btn,
    .pdf-suite-reset-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-suite-result,
.pdf-suite-error {
    animation: fadeIn 0.3s ease;
}
