.tool-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-desc {
    color: #6c757d;
    margin-bottom: 2rem;
}

.convert-settings {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quality-value-box {
    min-width: 60px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
}

.upload-area {
    border: 2px dashed #adb5bd;
    border-radius: 0.75rem;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.upload-area i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-area p {
    color: #6c757d;
    margin-bottom: 0;
}

.upload-input {
    display: none;
}

.folder-upload-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.file-list {
    margin: 1.5rem 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

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

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
}

.file-size-container {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
    min-width: 120px;
}

.file-size-original {
    color: #6c757d;
    font-size: 0.875rem;
}

.file-size-converted {
    color: #0d6efd;
    font-size: 0.875rem;
    font-weight: 500;
}

.remove-file {
    color: #dc3545;
    cursor: pointer;
    font-size: 0.875rem;
}

.remove-file:hover {
    color: #bb2d3b;
}

.progress-area {
    display: none;
    margin: 1.5rem 0;
}

.btn-group-custom {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-custom {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.info-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .btn-group-custom {
    flex-direction: row-reverse;
}

[lang="ar"] .form-select,
[lang="ar"] .form-range {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .file-item {
    flex-direction: row-reverse;
}

[lang="ar"] .file-name {
    margin-right: 0;
    margin-left: 1rem;
}

[lang="ar"] .file-size-container {
    margin-right: 0;
    margin-left: 1rem;
}

[lang="ar"] .quality-control {
    flex-direction: row-reverse;
}
