.tool-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-direction: row;
}

@media (max-width: 1024px) {
    .tool-container {
        flex-direction: column;
    }
    .options-section {
        width: 100%;
        order: 2;
    }
    .upload-area {
        order: 1;
        margin-bottom: 1.5rem;
    }
}

.upload-area {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    transition: var(--transition);
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary);
}

.upload-area.drag-over {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.batch-container {
    width: 100%;
}

.upload-area .btn-gradient{
    margin:16px;
}
.upload-area .btn-gradient svg{
    vertical-align: sub;
}
.batch-header{
    margin: 20px;
}
.batch-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.batch-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border);
    position: relative;
}

.batch-item-preview {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: var(--bg);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.batch-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.batch-item-info {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-item-info div {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.options-section {
    box-shadow: var(--shadow);
    min-width: 320px;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.dimension-controls {
    display: block;
    margin-bottom: 1rem;
}


.dimension-input {
    flex: 1;
    min-width: 120px;
}

.dimension-input input {
    width: 96%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
}

.preset-sizes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    text-align: center;
}

.preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.preset-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #151414;
    border: 1px solid #4b57f0;
}

.format-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.format-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    text-align: center;
}

.format-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #151414;
    border: 1px solid #4b57f0;
}


.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}
.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(67, 97, 238, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.upload-area.drag-over .drag-overlay {
    display: flex;
}

.conversion-complete {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.conversion-complete.show {
    transform: translateY(0);
    opacity: 1;
}

.batch-item-size-change {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.batch-item-size-change .old {
    text-decoration: line-through;
    color: var(--text-light);
}

.batch-item-size-change .new {
    color: var(--primary);
    font-weight: 500;
}
.rotation-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.rotation-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.rotation-btn:hover {
    border-color: var(--primary);
}
.rotation-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #151414;
    border: 1px solid #4b57f0;
}
.rotation-btn svg {
    display: block;
    margin: 0 auto 0.5rem;
}
