/* =========================================
   PDF Compressor Styles
   File: /wp-content/converters/pdf-compressor.css
   ========================================= */

.ws-tool-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Header */
.ws-tool-header {
    text-align: center;
    margin-bottom: 30px;
}
.ws-tool-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

/* Drop Zone */
.ws-file-drop {
    border: 2px dashed #3b82f6;
    background: #f8fafc;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}
.ws-file-drop:hover {
    background: #eff6ff;
    border-color: #2563eb;
}
.ws-icon-large {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}
.ws-file-name {
    margin-top: 15px;
    color: #16a34a;
    font-weight: 600;
    font-size: 16px;
}

/* Compression Options (Radio Buttons) */
.ws-options-title {
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    color: #475569;
}
.ws-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}
.ws-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    font-size: 14px;
}
.ws-radio-label:hover {
    border-color: #3b82f6;
}
.ws-radio-label input {
    margin-right: 8px;
}

/* Main Button */
.ws-btn-action {
    width: 100%;
    background: #ef4444;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.ws-btn-action:hover {
    background: #dc2626;
}
.ws-btn-secondary {
    background: #64748b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
}

/* Loading State */
.ws-processing-box {
    text-align: center;
    padding: 20px;
}
.ws-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: ws-spin 1s linear infinite;
}
@keyframes ws-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.ws-progress-container {
    width: 100%;
    background: #e2e8f0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}
.ws-progress-fill {
    height: 100%;
    background: #22c55e;
    width: 0%;
    transition: width 0.3s ease;
}

/* Results Area */
.ws-result-box {
    text-align: center;
    background: #ecfdf5;
    border: 1px solid #22c55e;
    padding: 30px;
    border-radius: 8px;
}
.ws-download-link {
    display: inline-block;
    background: #16a34a;
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 15px;
}
.ws-download-link:hover {
    background: #15803d;
}
.ws-stat-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #334155;
}