/* PDF Shrink Tool Styles */
.pdf-shrink-tool {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pdf-shrink-tool h2 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.pdf-shrink-tool > p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Styles */
.dpdf-form {
    margin-top: 20px;
}

.dpdf-upload-section {
    margin-bottom: 20px;
}

.dpdf-email-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.dpdf-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.dpdf-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.dpdf-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.dpdf-email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.dpdf-email-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.dpdf-file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dpdf-file-input:hover {
    border-color: #3182ce;
    background: #eff6ff;
}

.dpdf-file-info {
    margin-top: 10px;
    padding: 10px;
    background: #e6f3ff;
    border-left: 4px solid #3182ce;
    border-radius: 4px;
    color: #2c5282;
}

.dpdf-file-info.error {
    background: #fed7d7;
    border-left-color: #f56565;
    color: #742a2a;
}

.dpdf-file-info:empty {
    display: none;
}

/* Button Styles */
.dpdf-button-section {
    text-align: center;
    margin-top: 20px;
}

.dpdf-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #3182ce;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.dpdf-button:hover {
    background: #2c5282;
}

.dpdf-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.dpdf-download-button {
    background: #48bb78;
    margin-right: 10px;
}

.dpdf-download-button:hover {
    background: #38a169;
}

.dpdf-new-button {
    background: #667eea;
}

.dpdf-new-button:hover {
    background: #5a67d8;
}

/* Progress Section */
.dpdf-progress {
    text-align: center;
    padding: 30px 0;
}

.dpdf-progress-text {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 20px;
}

.dpdf-progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.dpdf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #667eea);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Result Section */
.dpdf-result {
    text-align: center;
    padding: 20px;
    background: #f0fff4;
    border-radius: 8px;
    border: 1px solid #9ae6b4;
}

.dpdf-result h3 {
    color: #22543d;
    margin-bottom: 20px;
}

.dpdf-size-info {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.dpdf-size-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dpdf-size-item:last-child {
    border-bottom: none;
}

.dpdf-size-item .label {
    font-weight: 600;
    color: #4a5568;
}

.dpdf-size-item .value {
    color: #2d3748;
    font-weight: 500;
}

/* Email Confirmation */
.dpdf-email-confirmation {
    margin-top: 15px;
    padding: 12px;
    background: #d4f8e8;
    border-radius: 6px;
    border: 1px solid #48bb78;
}

.dpdf-email-confirmation .success-message {
    color: #22543d;
    font-weight: 500;
    margin: 0;
}

/* Error Section */
.dpdf-error {
    padding: 15px;
    background: #fed7d7;
    border-left: 4px solid #f56565;
    border-radius: 4px;
    margin-top: 20px;
}

.dpdf-error-message {
    color: #742a2a;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 600px) {
    .pdf-shrink-tool {
        margin: 20px;
        padding: 20px;
    }
    
    .dpdf-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dpdf-download-button {
        margin-right: 0;
    }
    
    .dpdf-email-section {
        padding: 12px;
    }
    
    .dpdf-email-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}