/* Mods upload grid */
.mods-upload-grid {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 25px;
}

.mod-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mod-slot-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.merge-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    color: #999;
    padding: 0 10px;
}

/* Mod upload area */
.mod-upload-area {
    border: 2px dashed #888;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    background: #f5f5f5;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.mod-upload-area:hover {
    border-color: #5997d0;
    background: #f0f4ff;
}

.mod-upload-area.drag-over {
    border-color: #5997d0;
    background: #e8f0ff;
    transform: scale(1.02);
}

.mod-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5997d0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mod-upload-text {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mod-upload-hint {
    color: #888;
    font-size: 0.75rem;
    max-width: 180px;
}

/* Mod preview */
.mod-preview {
    background: #696969;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 160px;
    position: relative;
}

.mod-preview-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.mod-preview-info {
    flex: 1;
    overflow: hidden;
}

.mod-preview-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-preview-author {
    color: #bbb;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.mod-preview-files {
    color: #aaa;
    font-size: 0.75rem;
}

.mod-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.mod-remove-btn:hover {
    background: #c82333;
    transform: none;
    box-shadow: none;
}

/* Outdated mod warning */
.mod-preview.outdated {
    border: 2px solid #ffc107;
    background: #5a5540;
}

.mod-preview.outdated .mod-preview-files {
    color: #ffc107;
}

/* Merge result preview */
.merge-result {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e4f0;
}

.merge-result-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 14px;
}

.merge-result-item {
    margin-bottom: 12px;
}

.merge-result-item:last-child {
    margin-bottom: 0;
}

.merge-label {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.merge-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: "Courier New", monospace;
}

.include-tags-list,
.files-list,
.conflicts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.include-tag,
.file-item {
    background: #e4e8f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: "Courier New", monospace;
}

.include-tag.mod1 {
    background: #d4edda;
    color: #155724;
}

.include-tag.mod2 {
    background: #cce5ff;
    color: #004085;
}

.file-item.new {
    background: #d4edda;
    color: #155724;
}

.file-item.modified {
    background: #fff3cd;
    color: #856404;
}

.conflict-label {
    color: #856404;
}

.conflict-item {
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: "Courier New", monospace;
}

/* Log for merger */
.merger-container .log {
    display: none;
    margin-top: 20px;
}

.merger-container .log.show {
    display: block;
}
