/* WordPress PDF Customizer Frontend Styles v3.0 */

#wpdf-customizer-form {
    max-width: 800px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wpdf-customizer-form h3 {
    color: #23282d;
    margin-bottom: 15px;
    font-size: 24px;
}

#wpdf-customizer-form h4 {
    color: #23282d;
    margin-bottom: 10px;
    margin-top: 25px;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

/* PDF Selection Section */
.pdf-selection-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
}

.pdf-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.pdf-option {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-option:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.pdf-option label {
    cursor: pointer;
    display: block;
    margin: 0;
}

.pdf-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.pdf-option.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.pdf-info strong {
    color: #23282d;
    font-size: 16px;
}

.pdf-info small {
    color: #666;
    font-style: italic;
}

#selection-summary {
    background: #e7f3ff;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
    margin-top: 15px;
}

#selection-summary p {
    margin: 0;
    color: #0073aa;
    font-weight: 600;
}

/* Customization Section */
.customization-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-group input[type="file"] {
    padding: 8px;
    background: #f9f9f9;
}

#logo-preview {
    margin-top: 10px;
}

#logo-preview img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.button-primary {
    background: #0073aa;
    font-size: 16px;
    padding: 12px 24px;
}

.button-secondary {
    background: #666;
    margin: 5px 5px 5px 0;
}

.button-secondary:hover {
    background: #444;
}

.selection-notice {
    color: #666;
    font-style: italic;
    margin: 10px 0 0 0;
    font-size: 14px;
}

/* Results Section */
#pdf-results {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #4caf50;
    margin-top: 20px;
}

#pdf-results h4 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #4caf50;
}

.download-item {
    margin-bottom: 10px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Loading and Error Messages */
#loading-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    margin-top: 15px;
    text-align: center;
}

#loading-message p {
    margin: 0;
    font-weight: 600;
}

#error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
}

#error-message p {
    margin: 0;
    font-weight: 600;
}

.wpdf-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.wpdf-error p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #wpdf-customizer-form {
        margin: 10px;
    }
    
    .pdf-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="file"] {
        max-width: 100%;
    }
    
    .download-btn {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Animation for smooth transitions */
.pdf-option {
    animation: fadeIn 0.3s ease-in;
}

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

/* Checkbox styling improvements */
.pdf-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    vertical-align: middle;
}

.pdf-option input[type="checkbox"]:checked {
    background: #0073aa;
    border-color: #0073aa;
}

.pdf-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

