/* =========================================
   Image Compressor Styles (Brand Colors)
   File: /wp-content/converters/image-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: 2px solid #000000;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
    color: #000000;
}

/* Header */
.ws-tool-header {
    text-align: center;
    margin-bottom: 30px;
}
.ws-tool-header h2 {
    margin: 0 0 10px;
    color: #000000;
    font-size: 28px;
    font-weight: 800;
}

/* Drop Zone */
.ws-file-drop {
    border: 3px dashed #000000;
    background: #fffdf0; /* Light Yellow Tint */
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}
.ws-file-drop:hover {
    background: #ffffff;
    border-color: #0a9e01; /* Green */
}
.ws-icon-large {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
    color: #ff4422; /* Red Icon */
}
.ws-file-name {
    margin-top: 15px;
    color: #0a9e01;
    font-weight: 700;
    font-size: 16px;
}

/* Options Grid */
.ws-options-title {
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
    color: #000000;
}
.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: #ffffff;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}
.ws-radio-label:hover {
    border-color: #efc71a; /* Yellow */
    background: #fffdf0;
}
.ws-radio-label input:checked + span {
    color: #0a9e01;
}

/* Main Button (Red) */
.ws-btn-action {
    width: 100%;
    background: #ff4422;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    padding: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ws-btn-action:hover {
    background: #e03b1e;
    transform: translateY(-2px);
}
.ws-btn-action:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.ws-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #efc71a;
    border-top: 5px solid #ff4422;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: ws-spin 1s linear infinite;
}
@keyframes ws-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Results */
.ws-result-box {
    text-align: center;
    background: #f0fdf4;
    border: 2px solid #0a9e01;
    padding: 30px;
    border-radius: 8px;
    display: none; /* Hidden by default */
}
.ws-download-link {
    display: inline-block;
    background: #0a9e01;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 6px;
    font-weight: 800;
    margin-top: 20px;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(10, 158, 1, 0.3);
}
.ws-download-link:hover {
    background: #088501;
}
.ws-btn-secondary {
    background: #000000;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}