* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    padding: 30px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}
.secure {
    text-align: center;
    color: #2575fc;
    margin-bottom: 35px;
    font-size: 18px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.upload-area {
    border: 2px dashed #6a11cb;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9ff;
}

.upload-area:hover {
    background-color: #f0f2ff;
}

.upload-area.highlight {
    background-color: #e6eeff;
    border-color: #2575fc;
}

.upload-icon {
    font-size: 48px;
    color: #6a11cb;
    margin-bottom: 15px;
}

.upload-text {
    color: #555;
    margin-bottom: 10px;
}

.browse-btn {
    color: #2575fc;
    font-weight: 600;
    cursor: pointer;
}

#file-input {
    display: none;
}

.file-info {
    background-color: #f0f2ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: none;
}

.file-info.active {
    display: block;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-size {
    color: #666;
    font-size: 14px;
}

.controls {
    margin-bottom: 25px;
}

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

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

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2575fc;
    cursor: pointer;
}

.slider-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: #2575fc;
}

.size-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.size-input:focus {
    border-color: #2575fc;
    outline: none;
}

.button-group {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #2575fc;
    color: white;
}

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

.btn-secondary {
    background-color: #f0f2ff;
    color: #2575fc;
}

.btn-secondary:hover {
    background-color: #e6eeff;
}

.btn:disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
}

.progress-container {
    margin-top: 25px;
    display: none;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: #2575fc;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f0f2ff;
    display: none;
}

.result.active {
    display: block;
}

.result-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.result-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.result-item {
    text-align: center;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.result-value {
    font-weight: 600;
    color: #2575fc;
    margin-top: 5px;
}

.compression-ratio {
    font-size: 18px;
    font-weight: 700;
    color: #6a11cb;
}

.success-message {
    color: #28a745;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.error-message.active {
    display: block;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .result-info {
        flex-direction: column;
        gap: 15px;
    }
}