/* ======= PDF Compressor Styles ======= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    color: #333;
}

.tool-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.04);
}

/* Header */
.tool-header {
    text-align: center;
    margin-bottom: 35px;
}

.tool-header h1 {
    font-size: 2rem;
    color: #1d3557;
    margin-bottom: 10px;
}

.tool-header h1 i {
    color: #e63946;
    margin-right: 8px;
}

.tool-header p {
    color: #6c757d;
    font-size: 1rem;
}

/* Upload Section */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fb;
    transition: border-color 0.3s ease;
    position: relative;
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: #a0aec0;
}

.upload-icon i {
    font-size: 40px;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-area h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.upload-area p {
    font-size: 0.95rem;
    color: #555;
}

.file-restrictions {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #457b9d;
    color: #fff;
    padding: 10px 22px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary i {
    margin-right: 5px;
}

.btn-primary:hover {
    background-color: #1d3557;
}

/* Compression Options */
.compress-options {
    background-color: #f1f5f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.compress-options h3 {
    font-size: 1.2rem;
    color: #1d3557;
    margin-bottom: 20px;
}

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

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

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.radio-label strong {
    color: #1d3557;
}

#outputName {
    padding: 8px 12px;
    width: 100%;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Submit Button */
.action-buttons {
    text-align: center;
}

#compressBtn {
    background-color: #1d3557;
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#compressBtn:disabled {
    background-color: #7b8aa0;
    cursor: not-allowed;
}

#compressBtn:hover:enabled {
    background-color: #16304f;
}

/* Result Container */
.result-container {
    background-color: #e6f4ea;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    color: #155724;
}

.result-container h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.result-container h3 i {
    color: #28a745;
    margin-right: 6px;
}

.compression-stats {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #333;
}

#resultContent a {
    display: inline-block;
    background-color: #38a169;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#resultContent a:hover {
    background-color: #2f855a;
}

/* Responsive Design */
@media (max-width: 600px) {
    .upload-area {
        padding: 30px 15px;
    }

    .btn-primary, #compressBtn {
        width: 100%;
    }

    .file-restrictions {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .compress-options {
        padding: 20px 15px;
    }
}

.remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 10px;
    padding: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.file-preview {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
