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

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e6e6e6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #a5b4cb;
    margin-bottom: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.upload-section, .settings-section {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #4cc9f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.8rem;
}

.drop-area {
    border: 3px dashed #4361ee;
    border-radius: 10px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.drop-area:hover, .drop-area.dragover {
    background: rgba(67, 97, 238, 0.1);
    border-color: #4cc9f0;
}

.drop-area i {
    font-size: 4rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.drop-area p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

.browse-btn {
    background: linear-gradient(90deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.file-list {
    margin-top: 25px;
}

.file-item {
    background: rgba(40, 40, 60, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(50, 50, 70, 0.9);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 2rem;
    color: #4cc9f0;
}

.file-name {
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #a5b4cb;
    font-size: 0.9rem;
}

.remove-file {
    background: rgba(255, 75, 75, 0.2);
    color: #ff4b4b;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: rgba(255, 75, 75, 0.4);
}

.setting-group {
    margin-bottom: 25px;
}

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

.select-wrapper, .input-wrapper {
    position: relative;
}

select, input[type="range"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(40, 40, 60, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

select:focus, input[type="range"]:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.range-value {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #4361ee;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.actions-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.action-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.master-btn {
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    color: white;
}

.batch-btn {
    background: linear-gradient(90deg, #7209b7, #3a0ca3);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.output-section {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.output-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #4cc9f0;
}

.output-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.output-item {
    background: rgba(40, 40, 60, 0.7);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.output-item:hover {
    background: rgba(50, 50, 70, 0.9);
    transform: translateY(-5px);
}

.output-icon {
    font-size: 3rem;
    color: #4cc9f0;
    margin-bottom: 15px;
}

.output-name {
    font-weight: 600;
    margin-bottom: 10px;
    word-break: break-all;
}

.download-btn {
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.download-btn:hover {
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
}

.progress-container {
    margin-top: 20px;
    background: rgba(40, 40, 60, 0.7);
    border-radius: 10px;
    padding: 20px;
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    width: 0%;
    transition: width 0.5s ease;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.status-success {
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid #4cc9f0;
    color: #4cc9f0;
}

.status-error {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid #ff4b4b;
    color: #ff4b4b;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5b4cb;
    font-size: 0.9rem;
}

.icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}
