/**
 * Secure PDF Email Download - Admin Styles
 * Styles for WordPress admin pages
 * 
 * HOW TO CUSTOMIZE:
 * 1. Edit this file directly for permanent changes
 * 2. Or add CSS to your theme's admin area using:
 *    add_action('admin_head', function() {
 *        echo '<style>
 *            .spdfed-migration-options { background: #f0f0f0; }
 *        </style>';
 *    });
 * 3. Or create a child plugin to override specific styles
 * 
 * MAIN SECTIONS:
 * - .spdfed-migration-options     Migration grid layout
 * - .spdfed-premium-welcome      Welcome message styling  
 * - .spdfed-free-file-section    Free user file upload area
 * - .spdfed-shortcode-display    Shortcode copy/paste area
 * - .spdfed-help-panel           Collapsible help sections
 * - .spdfed-logs-section         Download logs table area
 */

/* ===== MIGRATION SECTION STYLES ===== */
.spdfed-migration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.migration-option {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.migration-option:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.migration-option h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.1em;
}

.migration-option .button {
    margin-top: 10px;
}

/* ===== PREMIUM WELCOME SECTION ===== */
.spdfed-premium-welcome h2 {
    color: #0073aa;
    margin-bottom: 10px;
}

.spdfed-premium-welcome .notice {
    margin-bottom: 20px;
}

.spdfed-premium-welcome .button {
    margin-right: 10px;
    margin-top: 5px;
}

/* ===== POST-MIGRATION SECTION ===== */
.spdfed-post-migration .notice p {
    margin: 0.5em 0;
}

.spdfed-post-migration a {
    text-decoration: none;
    font-weight: 500;
}

/* ===== FREE FILE SECTION ===== */
.spdfed-free-file-section {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.spdfed-free-file-section h2 {
    margin-top: 0;
    color: #23282d;
}

.spdfed-shortcode-display {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.spdfed-shortcode-display h4 {
    margin-top: 0;
    color: #0073aa;
}

.spdfed-shortcode-copy {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.spdfed-shortcode-copy input[type="text"] {
    flex: 1;
    font-family: monospace;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 3px;
}

.spdfed-shortcode-copy .button {
    flex-shrink: 0;
}

/* ===== HELP PANELS ===== */
.spdfed-help-panel {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.spdfed-help-panel summary {
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-weight: 600;
    color: #0073aa;
}

.spdfed-help-panel[open] summary {
    border-bottom: 1px solid #ddd;
}

.spdfed-help-content {
    padding: 20px;
}

.spdfed-code-example {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
    margin: 10px 0;
    overflow-x: auto;
}

.spdfed-variable-list {
    columns: 2;
    column-gap: 30px;
    margin: 15px 0;
}

.spdfed-variable-list li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.spdfed-variable-list code {
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.9em;
}

/* ===== DOWNLOAD LOGS SECTION ===== */
.spdfed-logs-section {
    margin-top: 40px;
}

.spdfed-logs-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.spdfed-logs-filters select {
    min-width: 150px;
}

.spdfed-logs-filters .button {
    white-space: nowrap;
}

.spdfed-logs-pagination {
    margin-top: 15px;
    font-size: 18px;
}

.spdfed-logs-pagination .page-numbers {
    margin-left: 20px;
}

.spdfed-logs-pagination .tablenav-pages {
    justify-content: center;
}

/* ===== FORM IMPROVEMENTS ===== */
.form-table th {
    padding-left: 0;
}

.form-table td label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.form-table td label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 782px) {
    .spdfed-migration-options {
        grid-template-columns: 1fr;
    }
    
    .spdfed-shortcode-copy {
        flex-direction: column;
        align-items: stretch;
    }
    
    .spdfed-logs-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .spdfed-logs-filters select,
    .spdfed-logs-filters .button {
        width: 100%;
    }
    
    .spdfed-variable-list {
        columns: 1;
    }
}

/* ===== UTILITY CLASSES ===== */
.spdfed-text-muted {
    color: #666;
    font-size: 0.9em;
}

.spdfed-text-success {
    color: #46b450;
}

.spdfed-text-warning {
    color: #ffb900;
}

.spdfed-text-error {
    color: #dc3232;
}

.spdfed-mt-0 { margin-top: 0 !important; }
.spdfed-mb-0 { margin-bottom: 0 !important; }
.spdfed-mt-10 { margin-top: 10px; }
.spdfed-mb-10 { margin-bottom: 10px; }
.spdfed-mt-20 { margin-top: 20px; }
.spdfed-mb-20 { margin-bottom: 20px; }
